MaxGUI Hide/Show problem
BlitzMax Forums/BlitzMax Programming/MaxGUI Hide/Show problem
| ||
This one's a bit weird. I have in my program the line: SelectGadgetItem(SectionWindow.SectionType, OldSecData.SectionType) In the main loop of the program, I also have the small snippet: Select EventID() Case EVENT_GADGETACTION Select EventSource() Case SectionWindow.SectionType HideGadget SectionInfoCurrent SectionInfoCurrent = SectionInfoPanel[EventData()] ShowGadget SectionInfoCurrent So whenever the first line is reached, it will run that bit of code and thus swap a panel out and show another panel. However, for some bizarre reason it runs the code, with the correct EventData but the panel doesn't change - it just remains the same. When I change the SectionType ComboBox manually, it works fine and instantly. Curiously, when I put those three lines of code directly underneath the SelectGadgetItem line (and changed EventData to read OldSecData.SectionType) it also works as it should. Why won't it work in the initial sense? All the data is right, it just won't change the display. |