Modal Windows - Printable Version -Shoutbox (https://shoutbox.menthix.net) +-- Forum: MsgHelp Archive (/forumdisplay.php?fid=58) +--- Forum: Messenger Plus! for Live Messenger (/forumdisplay.php?fid=4) +---- Forum: Scripting (/forumdisplay.php?fid=39) +----- Thread: Modal Windows (/showthread.php?tid=79119) Modal Windows by Dempsey on 11-17-2007 at 07:30 PM
Is it possible to open a modal window in front of an existing window? RE: Modal Windows by Deco on 11-17-2007 at 09:29 PM
Catch the API message that brings the main window back to front? RE: Modal Windows by vikke on 11-17-2007 at 09:57 PM
Try using the SetParent API to set the small window a child of your Preferences-window. The small window will now be inside the small window, so it will only appear when the actual window appears. You might need to set the TOP_MOST attribute on the window, so it doesn't hide behind various controls, use the SetWindowPos API. RE: Modal Windows by markee on 11-18-2007 at 10:04 AM It would be nice if we had the opportunity to have pop-up windows as well as the dialog and child types. I was looking into this a while ago and a childwindow doesnt work exactly how you want. You can always use a timer to check for the forground window and if it matches the one you wanted then you can just use the user32 function to forground the window you wanted infront. RE: Modal Windows by Patchou on 11-18-2007 at 11:17 PM
what you need to do is modal windows and currently, scripts are only allowed to do modeless. That's a technical limitation designed to prevent stack overflows and other similar problems. Plus! rarely uses modal windows (although, in the case of the "downloading..." window, yes, it is one). |