Re: a gui question

From: Ilka Antcheva <>
Date: Thu, 19 May 2005 18:25:42 +0200

Hi Mike,

To redraw the list box use:

Cheers, Ilka

Mike Williams wrote:

>i have a quick gui question. i have a gui with a TGListBox *_List and a
>TGCheckButton *_SelectAllButton that when checked selects all the entries
>in the list, and when clicked to uncheck deselects all the entries.
>_SelectAllButton is connected to a member function of the class it's in
>called SelectAll(), which is simply:
>void FitWBW::SelectAll(){
> for(int i = 0; i < _List->GetNumberOfEntries(); i++){
> _List->Select(i,_SelectAllButton->GetState());
> }
>The function works, when i click the select all button all the entries are
>selected and when i uncheck it none are selected. however, visually the
>gui doesn't update the list box selections unless i click on it. so, for
>example, if none of the entries are selected and i click on the select all
>button, then none of the list entries become highlighted. if i then click
>on the scroll bar for the list box, they all become highlighted. so i'm
>missing some command to visually update the list box selections which is
>being called when i click on it. so i guess my question is, is there a
>command that forces a frame to visually update?
>mike williams
Received on Thu May 19 2005 - 18:25:50 MEST

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