Rabishan
Member
|
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 |
|
Driklyn
Member
|
RE: gui handling
Use Gui.kb() to get the pressed button.
|
|
06-24-2011 09:47 AM |
|
Rabishan
Member
|
RE: gui handling
thnks. i'll give it a try
|
|
06-24-2011 10:10 AM |
|