| View previous topic :: View next topic |
| Author |
Message |
Nemesa
Joined: 24 Aug 2006 Posts: 2
|
Posted: Thu Aug 24, 2006 12:12 pm Post subject: Window onload event with gladeXML |
|
|
Hi!
I would like to call a function when I start my app. Which signal is suite for this event?
I'm using gladeXML class:
| Code: |
class EventHandler {
public function CallMeOnload() {
echo "Opened!!\n";
}
}
$glade = new GladeXML('serial_handler.glade');
$evntHandler = new EventHandler();
$glade->signal_autoconnect_instance($evntHandler);
Gtk::main();
|
Please help me...
Thanks:
Andras Nemeseri |
|
| Back to top |
|
 |
scott
Joined: 16 Feb 2006 Posts: 35
|
Posted: Thu Aug 24, 2006 2:25 pm Post subject: |
|
|
| You can use "expose-event" or "show". |
|
| Back to top |
|
 |
Nemesa
Joined: 24 Aug 2006 Posts: 2
|
Posted: Thu Aug 24, 2006 3:05 pm Post subject: |
|
|
After the application opened nothing happen if I use "show".
The "expose-event" called right after, when the application opened, but also every time I hover on a button. So this event is useable, but not perfect...
Do you have any clue on what can be the problem with the "show" event???
Thanks |
|
| Back to top |
|
 |
|