About Store Forum Documentation Contact



Post Reply 
gui handling
Author Message
Rabishan Offline
Member

Post: #1
gui handling
hi everyone,

i created a gobj. which include buttons ok and cancel. what i want to do is to close the gobj with the help of these buttons instead of using keyboard. i couldn't find tutorials for that.

also i could have used something like

Window *window=T.findWindow(CNULL);
if(window->visible()) {window->hide();}
else {window->show();}

but event handling function is static

eg static void setExit (Ptr) {}

so this pointer is not allowed inside it.and not only that non static member function findWindow(CNULL) is also not allowed inside the static function. so is there any other way of event handling instead of using static functions.
06-24-2011 09:12 AM
Find all posts by this user Quote this message in a reply
Driklyn Offline
Member

Post: #2
RE: gui handling
Use Gui.kb() to get the pressed button.
06-24-2011 09:47 AM
Find all posts by this user Quote this message in a reply
Rabishan Offline
Member

Post: #3
RE: gui handling
thnks. i'll give it a try
06-24-2011 10:10 AM
Find all posts by this user Quote this message in a reply
Post Reply