I'm clearing button off a GUI so I can add other options. Don't want to destroy GUI as it causes an annoy flicker, and this is run on a timer.
The code below hides the buttons and shows only the titlebar - as expected, removes 5 buttons
Code: Select all
Loop, Parse, CList, `n
{
hid++
guicontrol, mygui:Hide, %A_LoopField%
}
Gui, mygui:Show, Autosize
But when I add an new single button and Show as below the GUI shows blank/empty spaces where the 5 buttons were hidden + the new button.
Code: Select all
gui, mygui:add, button, gthis_link , %A_Loopfield%
Gui, mygui:Show, Autosize
Why ? How do I stop the "old" hidden buttons from taking space on the GUI ?