Re: gtk - changing buttons depending on the selection

From: Date: Tue, 19 Sep 2006 16:41:31 +0000
Subject: Re: gtk - changing buttons depending on the selection
References: 1  Groups: php.gtk.general 
Request: Send a blank email to php-gtk-general+get-7256@lists.php.net to get a copy of this message
Creating buttons on the fly will consume memory over time, you would be better off to create all the buttons you require prior to calling the gtk main loop then use $button->show() and $button->hide() as the user interacts with you list. On Tue, 19 Sep 2006, jerik wrote: > > Hi, > > I have to use php-gtk1 for my development. At the moment I have a list with > some items. When the user chooses a Item of the list, it should be displayed > some buttons. The displaying of the buttons depends of the choosed list-item > - so the buttons must be flexible. > > At the moment I dont know how I should realize that with buttons. The only > possibilty which came up to my mind was to create a second list, wich I > create everytime new when a list-item (of the first list) is choosen and > append the needed item (buttons) to the second list. But this is an ugly > workaround. > > Any Ideas how to solve this? > > Cheers -- Jerik > -- a8888b. Brian A. Stumm d888888b. bs@bs-linux.com 8P"YP"Y88 http://www.bs-linux.com 8|o||o|88 The Choice of a Gnu Generation 8' .88 8`._.' Y8. # d/ `8b. #### ### .dP . Y8b. ## # d8:' " `::88b. ## ### ### ### ### ### ### ### d8" `Y88b ## # ## ### ## ## ## ## ## :8P ' :888 ## # ## ## ## ## ## ### 8a. : _a88P ## ### ## ## ## ## ### ._/"Yaa_ : .| 88P| ## # ### ## ## ## ## ## ## \ YP" | 8P . ## ## ### # ## ## ### ### ## ## / \._____.d| .' ######### ### #### #### ### ### ### ### --..__)888888P._.'

« previous php.gtk.general (#7256) next »