a gui question

From: Mike Williams <williams_at_ernest.phys.cmu.edu>
Date: Thu, 19 May 2005 11:42:18 -0400 (EDT)


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++){



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 - 17:42:25 MEST

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