Indigo Rose Software

Professional Software Development Tools

 
+ Reply to Thread
Results 1 to 11 of 11
  1. #1
    Join Date
    Feb 2004
    Posts
    131

    Dialog jump within DialogEx

    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.

  2. #2
    Join Date
    May 2006
    Posts
    5,380
    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

    Code:
    Window.Hide(DialogEX.GetWndHandle());
    dlgRet = DialogEx.Show("dlgTemplates", true, nil, nil);
    Window.Restore(DialogEX.GetWndHandle());
    Open your eyes to Narcissism, Don't let her destroy your life!!

  3. #3
    Join Date
    Feb 2004
    Posts
    131
    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.

  4. #4
    Join Date
    Feb 2005
    Location
    Germany
    Posts
    135
    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.

  5. #5
    Join Date
    Apr 2004
    Location
    Vancouver, Canada
    Posts
    1,790
    Just do it from the page you are opening the first dialog from.

    Code:
    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
    Dermot

    I am so out of here

  6. #6
    Join Date
    Feb 2005
    Location
    Germany
    Posts
    135
    I insert it on my page where I call the first dialog, but I can't see any changes. The same problem like before :(.

  7. #7
    Join Date
    Apr 2004
    Location
    Vancouver, Canada
    Posts
    1,790
    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.
    Last edited by Dermot; 11-14-2009 at 09:33 PM.
    Dermot

    I am so out of here

  8. #8
    Join Date
    Feb 2005
    Location
    Germany
    Posts
    135
    Ah, great... thanks for example .

  9. #9
    Join Date
    Feb 2004
    Posts
    131

    Thumbs up

    Hey Dermot, that's the best solution I've seen so far.
    I think IR forgot to include the DialogEx.Jump action.

  10. #10
    Join Date
    Apr 2004
    Location
    Vancouver, Canada
    Posts
    1,790
    Quote Originally Posted by Stephen G. View Post
    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.
    Dermot

    I am so out of here

  11. #11
    Join Date
    Oct 2007
    Location
    Gensokyo
    Posts
    1,324
    Now we just need.

    Code:
    DialogEx.SetWindowStyle(DialogEx.GetWndHandle(), WNDTYPE_TOOLWINDOW);

  12. #12
    Join Date
    May 2006
    Posts
    5,380
    heres what i use

    Code:
    WinApi.SetWindowLong(DialogEx.GetWndHandle(), GWL_EXSTYLE, WS_EX_WINDOWEDGE.."|"..WS_EX_TOOLWINDOW.."|"..WS_EX_TOPMOST, true);
    Open your eyes to Narcissism, Don't let her destroy your life!!

Similar Threads

  1. New Version Available: 1.1.1017
    By Brett in forum MSI Factory 2.0 Discussion
    Replies: 4
    Last Post: 11-23-2007, 03:03 PM
  2. Displaying a Save As Dialog
    By Desmond in forum AutoPlay Media Studio 5.0 Examples
    Replies: 0
    Last Post: 10-01-2003, 03:53 PM
  3. Using the Status Dialog Window
    By Desmond in forum AutoPlay Media Studio 5.0 Examples
    Replies: 0
    Last Post: 09-22-2003, 02:52 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts