Computer Science Canada

GUI - small nitpicky problem

Author:  plainjane [ Sat Jan 10, 2004 10:15 pm ]
Post subject:  GUI - small nitpicky problem

i am writing an email program (due Monday! me procrastinator Razz), and in my login screen i use two GUI text fields to get the username and password and then i have two buttons, OK(goes on) and Cancel (exits).

when u finish typing ur name/ pass, u click on either button.

just wondering if there's a way to select OK by pressing enter (without clicking) after u finish typing...

and no, GUI.CreateButtonFull (x, y, ...etc..., true) does NOT work

Author:  Tony [ Sat Jan 10, 2004 10:24 pm ]
Post subject: 

ask KK - he's in your class (I think) Wink seeing as he got same assignment

now if shortcuts dont work (you might have to have Alt or Ctrl as part of it) then you can check for it yourself in the driver loop


exit when GUI.ProcessEvent
end loop

if you dont know how to use Input.KeysDown, read a tutorail on it (we have tutorails on everything Laughing ). This will basically allow you to have your own shortcuts

Author:  plainjane [ Sun Jan 11, 2004 1:01 am ]
Post subject: 

thank you! The bad news: my version of turing doesnt have that, nor doesthe one at school... but thanks anyway...

and yes, kk sits beside me Razz. and i solved her problem... in a sumwut simpler (but uglier) way involving loops... (heh i know that's vague, but i gotta get to work soon... maybe i post l8r)