[VB6] vbModeless? - 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) +----- Forum: Plug-Ins (/forumdisplay.php?fid=28) +------ Thread: [VB6] vbModeless? (/showthread.php?tid=51622) [VB6] vbModeless? by eSouL on 10-10-2005 at 05:02 PM
Hi, another one from me, sorry for the never-ending questions.. RE: [VB6] vbModeless? by Mike on 10-10-2005 at 05:08 PM
The variable "vbModeless" is actually unknown in VB, and I guess you get a compile error saying "Variable Not Defined" when trying to compile your plugin. RE: [VB6] vbModeless? by matty on 10-10-2005 at 06:51 PM
The .Show function on a form accepts 2 values for the type of Display. Those values are 0 and 1. 0 would, in essence vbModaless which doesn't technically exist as a Visual Basic Constant. And 1 is vbModal (showing ontop of all other windows. RE: [VB6] vbModeless? by CookieRevised on 10-10-2005 at 11:21 PM
quote:No, vbModeless _does_ exist and is a perfect valid constant... Show parameters: Constant Value Description vbModal 1 Modal form vbModeless 0 Modeless form See VB help files, or MSDN Library: Form constants quote:Indeed you don't, as "Modeless" is the opposite of "Modal". It would be wrong to put "vbModeless" if you mean "vbModal" (or vice versa) quote:Although it indeed shows on top of other windows, that isn't exactly the true meaning of it. Modal vs. Modeless: The definition of a modal form is that it must be closed (hidden or unloaded) before you can continue working with the rest of the application (hence it is also shown on top; but this is rather a "side effect" so to speak). For example, a dialog box is modal if it requires you to click OK or Cancel before you can switch to another form or dialog box. Modeless dialog boxes let you shift the focus between the dialog box and another form without having to close the dialog box. You can continue to work elsewhere in the current application while the dialog box is displayed. Modeless dialog boxes are rare. From the Edit menu, the Find dialog box in Visual Basic is an example of a modeless dialog box. (snipped taken from the MSDN library) ---------------------- From the MSDN Library: PRB: Modeless Forms in VB ActiveX DLL's Don't Display in VC++ Clients INFO: Non-Modal Form Support in Visual Basic DLLs ---------------------- did I ever mention you can find everything on the MSDN library? No? hmmm... well... you can find everything on the MSDN library ) RE: [VB6] vbModeless? by matty on 10-10-2005 at 11:46 PM
quote:Showing ontop of all windows in your application making them inaccessible until you close the window... hows that Cook? RE: [VB6] vbModeless? by CookieRevised on 10-11-2005 at 02:11 AM
quote:hehehe , yep, correct RE: [VB6] vbModeless? by eSouL on 10-28-2005 at 07:14 AM
Hi, RE: [VB6] vbModeless? by CookieRevised on 10-28-2005 at 05:17 PM
There nothing odd about it though... RE: [VB6] vbModeless? by eSouL on 10-28-2005 at 07:53 PM Cookie, when I use the exact same code in a normal exe project to call up a new form, the bahaviour was everything as expected, ie. you click the form, it gets its focus and becomes highlighted in the taskbar. But when the same piece of code is used in a plugin dll to call up new forms, these forms don't appear as highlighted in the taskbar. I tested on the vanilla sample plugin. RE: [VB6] vbModeless? by matty on 10-28-2005 at 08:00 PM
Why not use the BringWindowToTop API function. Or SetForeGround API Function. RE: [VB6] vbModeless? by CookieRevised on 10-29-2005 at 01:54 AM
quote:As said before, it depends on the environment you're in as all those states are not automatically linked to eachother (in a stand alone app it just seems that way because there are no other threads for the same process for example). Look at the pages from the MSDN Library I listed in my first post. |