The enclosed macro “guiTestGroups1.C” shows my problem.
When I select tab “Group Test” then I see TGGroupFrame “Group 2”
below “Group 1” although it should be hidden! Only after selecting
“Group 2” from TGComboBox, is Group 2 displayed correctly.
The current macro is a slightly more complex version of macro
“guiTestGroups.C” where I had exactly the same problem, see:
In the case of the earlier macro, Ilka Antcheva thankfully could
provide a simple solution. Although I did not quite understand
the reason for this solution, it did solve my problem, see:
Sorrowly, for the current macro this simple solution no longer
I have tried different options, as you can see from the lines,
which I have commented out. Uncommenting these lines in any
combination will always result in even more strange behavior.
For this reason I have two questions:
Does anybody know where the mistake may be hidden, and how
this problem can be solved?
Does there exist a general rule to follow, how to hide/show
certain subframes? I must admit, that even after writing
more than 30,000 lines of GUI code, I still could not figure
out a general rule. Often, a trial and error approach solves
my problems, but sometimes this does not help either.
Thank you in advance.
My system is ROOT 4.00/04 (28.Apr 04) on MacOS X 10.3.1.
guiTestGroups1.C (14.8 KB)