Re: TGMainFrame / TGListBox / TGComboBox refresh

From: Ilka Antcheva <Ilka.Antcheva_at_cern.ch>
Date: Wed, 26 Jan 2005 10:32:57 +0100


Hi Costas,

I cannot reproduce reported case with the example you have sent. The 'experiment' list-box behaves as the other list boxes when I use the check button to select/deselect all list box entries.

My environment is SLC3, root 4.03/01, gcc version 3.2.3.

Cheers, Ilka
Costas Andreopoulos wrote:

>Hi Ilka,
>
>
>
>>Can you send as simple as possible macro showing the effect of
>>TGMainFrame::Layout that makes all listbox entries disappeared?
>>
>>
>
>ok, that was not so easy - the project has few dozen packages
>and lots of inter- and external dependencies.
>
>I have a very small, masively commented out and
>modified extract, in
>http://hepunx.rl.ac.uk/~candreop/outbox/for_ilka/
>
>You need to
>
>% mv example.tar.gz <your-work-dir>
>% cd <your-work-dir>
>% tar xzvf example.tar.gz
>% cd example/lib
>% make <-- produces libVldGui.so
>% cd ../test/
>% make <-- produces nuvld_gui executable
>% ./nuvld_gui &
>
>Before the last step add <your-work-dir>/example/lib
>to the LD_LIBRARY_PATH
>
>I hope that the Makefiles will work for you and there
>is no residual dependency on all the stuff that is not
>included here.
>
>Running the nuvld_gui, you should see that the listboxes
>titled 'cross section', 'initial state' behave correctly
>when you press the 'select all' check-button.
>(they use gClient->NeedRedraw(mylistbox->GetContainer());)
>
>The 'experiment' list-box behaves in a flaky way and
>makes all listbox entries to momentarily dissaper.
>(It uses TGMainFrame's Layout() )
>
>
>Brett,
>
>
>
>>I've found this refresh issue to be a continual problem when using >the
>>
>>
>TG gui classes.
>
>
>>Try sprinkling some gClient->ForceRedraw() calls around.
>>
>>
>
>thanks - I was just looking for something like this.
>
>cheers,
> Costas
>
>
>
Received on Wed Jan 26 2005 - 10:33:12 MET

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