View Full Version : Dialog jump within DialogEx
Stephen G.
11-01-2008, 04:31 PM
Is there a way to jump from one dialogEx window into another dialogEx window while closing the window behind you? I tried several different ways but nothing seems to be smooth.
Example:
DialogEx1 - click next button (DialogEx1 closes and DialogEx2 opens)
DialogEx2 - Back button is clicked (DialogEx2 closes and DialogEx1 opens)
It seems the window will not close while another opens.
RizlaUK
11-01-2008, 04:46 PM
dont close it, hide it
i have done this lots in my current project and i found that hideing the dialog instead of closeing it works better!
closeing a dialog while its waiting for the return from another dialog is not a wize idea and i could see that causeing errors
Window.Hide(DialogEX.GetWndHandle());
dlgRet = DialogEx.Show("dlgTemplates", true, nil, nil);
Window.Restore(DialogEX.GetWndHandle());
Stephen G.
11-02-2008, 12:20 PM
I tried using the window hide instead, but it is still not smooth. The window dissapears and the new one pops open. Not a smooth transition like project pages. It will have to do for now.
I think AMS should add a Page.Jump action for DialogEx.
Thanks again R.
nrgyzer
11-28-2008, 01:41 PM
I have the same problem. I can hide the window but if I want restore or show the dialog I can't see it or I see it not as complete dialog (no close button). It would be better if DialogEx.Jump can be added.
Dermot
11-28-2008, 03:33 PM
Just do it from the page you are opening the first dialog from.
local result1 = DialogEx.Show("Dialog1")
if result1 == 1 then
local result2 = DialogEx.Show("Dialog2")
end
if result2 == 1 then
local result3 = DialogEx.Show("Dialog3")
end
nrgyzer
11-28-2008, 04:13 PM
I insert it on my page where I call the first dialog, but I can't see any changes. The same problem like before :(.
Dermot
11-28-2008, 06:03 PM
Here is an example that uses two simple functions to handle the jumping. Just modify the ProcessRes function to match your dialogs. The important part is the return values when you close a dialog.
nrgyzer
11-29-2008, 03:49 AM
Ah, great... thanks for example :).
Stephen G.
11-29-2008, 07:11 PM
Hey Dermot, that's the best solution I've seen so far.
I think IR forgot to include the DialogEx.Jump action.
Dermot
11-29-2008, 07:37 PM
Hey Dermot, that's the best solution I've seen so far.
I think IR forgot to include the DialogEx.Jump action.
I don't think they forgot it. You have to understand that dialogs are different from pages. They were never really intended for that kind of use. That's what regular pages are for.
ShadowUK
01-12-2009, 10:37 AM
Now we just need.
DialogEx.SetWindowStyle(DialogEx.GetWndHandle(), WNDTYPE_TOOLWINDOW);
:lol
RizlaUK
01-12-2009, 11:11 AM
heres what i use
WinApi.SetWindowLong(DialogEx.GetWndHandle(), GWL_EXSTYLE, WS_EX_WINDOWEDGE.."|"..WS_EX_TOOLWINDOW.."|"..WS_EX_TOPMOST, true);
Powered by vBulletin™ Version 4.0.6 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.