|
From: Julia D. (Contractor) <jul...@un...> - 2017-01-20 15:19:13
|
Hi I set up a FXDataTarget with 2 toggle buttons. When a toggle button is pressed the interface needs to hide a group of widgets in a FXMatrix. When the other toggle button is pressed, the widgets show again. I update the interface (hide or show) this group of widgets in my FXMainWindow update function. This works great. The problem I have is that when the widgets are hidden, the interface window is not updating to get rid of the extra space. So you see a blank section on the interface where the widgets used to be. If I maximize the window, then the interface window updates and you no longer see the blank section. It moves the widgets beneath the hidden ones upward and the window size adjusts to account for it. I have the same problem when I show the group of widgets, after previously hiding them. 1.) In my update function for my FXMainWindow, how can I force the window to repaint itself and re-collaborate its size so it can get rid of the space where the widgets were hidden? I have tried calling the following functions in my update function for the FXMainWindow (none of them have worked)-> recalc(), repaint(), forceRefresh(). Is it because it is being called from the update function? Please help. Thanks Julia |