View Full Version : can i open a Dialog and the Dialog dont be always on top
can i open a DialogEx.Show and the Dialog dont be always on top???
if i open a new DialogEx.Show the Dialog is always on top and i cannot push on button in other pages or dialogs.
i mean the DialogEx object
longedge
06-16-2009, 06:05 AM
If you read the help file, the answers are in there -
dialogs are separate windows that can be opened on top of your application window.
and
Note: You cannot navigate pages when a dialog is visible
The dialog is a modal (http://msdn.microsoft.com/en-us/library/bb226821(VS.85).aspx#GlossaryM) pop-up i.e. it *must* be dealt with before you continue normal use of your application.
That's how I think of it anyway (and it ceratinly acts in this way).
reteset
06-16-2009, 09:16 AM
there is a workaround solution to it
i did it many times , but did not tried with AMS dialogs
i am going to try it with WinApi plugin
if it works then , i'll show you a sample :yes
reteset
06-16-2009, 10:01 AM
Here it is
it was easiest than i thought,
you can open mutiple dialogs
you can jump to another page during dialog(s) is up
you can get return value from dialogs , if you are on the page that dialog was opened
Note : in order to run this sample , you will need to WinApi action plugin
Click Here (http://www.amsplugins.com/details.asp?ID=80&CID=4) To Download Sample
http://www.amsplugins.com/screenshots/WinApiMultiDialogs.jpg
ShadowUK
06-16-2009, 10:19 AM
Here it is
it was easiest than i thought,
you can open mutiple dialogs
you can jump to another page during dialog(s) is up
you can get return value from dialogs , if you are on the page that dialog was opened
Note : in order to run this sample , you will need to WinApi action plugin
Click Here (http://www.amsplugins.com/details.asp?ID=80&CID=4) To Download Sample
http://www.amsplugins.com/screenshots/WinApiMultiDialogs.jpg
A lot of people will find that useful, Nice one reteset!
longedge
06-17-2009, 02:14 PM
When I try navigating to the next page, it doesn't work although the label reacts to being in the 'over state' i.e. the text goes red.
I *can* open other dialogs from the main window though even when one is already open.
The dialogs remain on top of the main window.
Knowing nothing at all about the technicalities, I wonder whether it would be possible to have an attribute for the dialog to toggle modal/modeless window.
MicroByte
06-18-2009, 03:01 AM
iv had to do this a few times, AMS dialogs are designed to be modal child windows and altho you can reenable the window and set the z order of the dialog AMS still does not like and not respond properly when resetting dialog window properties as AMS is designed to wait for the return from the dialog.
iv done this myself with "EnableWindow" API call in AMS and it leaves the same buggy results as WinAPI plugin, dialogs open but the main window sometimes becomes unresponsive, dialogs not returning values till all dialogs are closed, the z order issue does not bother me as i hardly ever make a window that isent a child of the main window
all this being said, there is a child window system in the works, a few weeks back, fed-up with buggy workarounds, i decided to code my own window system for AMS, its about 60% till a beta, but already its looking pretty good, i shall post some details nearer the time of release.
vBulletin® v3.8.4, Copyright ©2000-2009, Jelsoft Enterprises Ltd.