HideGadget needs the gadget to have already been created. Doing this:
causes the window to flash on the screen depending on when it appears and when redraw kicks in. It's easier to just set the window 'very very small' or 'off-screen'...
window = CreateWindow("Invisible Window", 0,0,100,100) HideGadget window
causes the window to flash on the screen depending on when it appears and when redraw kicks in. It's easier to just set the window 'very very small' or 'off-screen'...
window=CreateWindow("UltraTiny",0,0,1,1) HideGadget window window2=CreateWindow("OffScreen",-10,-10,10,10) ; then later on ShowGadget window ;and SetGadgetShape window2,0,0,100,100