Re: Key Press to have Window "reappear ??
- Posted by DerekParnell (admin) Feb 23, 2011
- 1596 views
Ok, the problem is that when the last (or only) Window is hidden, the library also closes it. And once it is closed, it no longer receives Windows messages.
So, to get around this, use these tricks-of-the-trade ...
-- To hide a window, move to somewhere off the screen. if self = Win then setCtlPosition(Win, -1000, -1000) -- Hide it end if -- To reshow it, move it back to the screen. if self = Win then setCtlPosition(Win, 220, 150) -- Display it end if -- Also, you might like to create the window with the 'palette' style. -- This prevents it showing up in the Start Bar. constant Win = createEx(Window,"",0,220,150,690,45, {WS_POPUP, WS_DLGFRAME},WS_EX_PALETTEWINDOW)