Re: Statusbar?
| From: | Markus Fischer | Date: | Mon, 16 Apr 2001 16:48:29 +0000 |
| Subject: | Re: Statusbar? | ||
| References: | 1 | Groups: | php.gtk |
| Request: | Send a blank email to php-gtk+get-1423@lists.php.net to get a copy of this message | ||
On Mon, Apr 16, 2001 at 10:55:18AM +0200, Adam Rambousek wrote :
> does anyone has some example of statusbar, please?
> I've managed to display message in statusbar, but I can't find out how to change
> the message accordingly to the menu item which is highlighted.
The trick is to use the 'select' event and connect a
handler to it which changes the Statusbar content. Example
attached.
Though I haven't found a documentation for 'select' event on the
menuitem I just tested it ... ;)
m.
ps: this example uses a Popupmenu which won't work under win32 with the
current binary release from gtk.php.net . You can download a
newer one from http://josefine.ben.tuwien.ac.at/~mfischer/php/win32/
Attachment: [application/x-httpd-php] popmenu.php
Attachment: [application/x-httpd-php] popmenu.php