Hi Ilka,
> to select all combo box entries? This should be possible only for list
> boxes.
yes, sorry for my confusing statement - I had something diffenent into my mind.
> Please see the example at
> http://root.cern.ch/phpBB2/viewtopic.php?t=1485
> Did you get an error executing the following line?
> ((TGMainFrame*)GetMainFrame())->Layout();
No, I do not get an error but the resulting behaviour is not any better. Now, pressing the TGCheckButton to select all entries in a single listbox affects, in a strange way, all the listboxes in the TGMainFrame:
Normally, they have white background with black letters and the selected entries have blue background with white letters. But, If I use TGMainFrame's Layout(), when I am trying to select/un-select all entries the listboxes become all-blue or all-white making the actual entries dissapear.
The correct layout of each listbox is restored with some additional action like before (eg a mouse click on the listbox).
Thanks for pointing out this thread to me. What seems to solve my problem is:
gClient->NeedRedraw(mylistbox->GetContainer());
Thanks,
Costas
-- Dr. Constantinos Andreopoulos, CCLRC - Rutherford Lab. http://hepunx.rl.ac.uk/~candreopReceived on Tue Jan 25 2005 - 16:01:26 MET
This archive was generated by hypermail 2.2.0 : Tue Jan 02 2007 - 14:45:04 MET