Re: TGMainFrame / TGListBox / TGComboBox refresh

From: Costas Andreopoulos <>
Date: Tue, 25 Jan 2005 16:31:10 +0000

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

You need to

% mv example.tar.gz <your-work-dir>
% cd <your-work-dir>
% tar xzvf example.tar.gz
% cd example/lib
% make <-- produces
% 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() )


>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.



Dr. Constantinos Andreopoulos, CCLRC - Rutherford Lab.
Received on Tue Jan 25 2005 - 17:31:23 MET

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