Re: TGMainFrame / TGListBox / TGComboBox refresh

From: Ilka Antcheva <Ilka.Antcheva_at_cern.ch>
Date: Tue, 25 Jan 2005 16:19:45 +0100


Hi Costas,

Can you send as simple as possible macro showing the effect of TGMainFrame::Layout that makes all listbox entries disappeared?

Thank you, Ilka

Costas Andreopoulos wrote:

>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
>
>
Received on Tue Jan 25 2005 - 16:19:51 MET

This archive was generated by hypermail 2.2.0 : Tue Jan 02 2007 - 14:45:04 MET