Indigo Rose Software

Professional Software Development Tools

 
+ Reply to Thread
Results 1 to 3 of 3
  1. #1
    Join Date
    Apr 2006
    Posts
    5

    Dialog box - help with closing and opening

    I'm trying to close and open one dialog box from another and can't seem to figure it out. Is there any way this can be achieved.

    I've tried using on a text link...

    result = DialogEx.Show("Participant commercial", true, nil, nil);
    result = DialogEx.Close(0);

    but it closes the current dialog box and will not open up the other dialog box.

  2. #2
    Join Date
    Apr 2007
    Location
    Raalte, OV, Netherlands
    Posts
    3,287
    In the dialog you want to close, place the next:
    On Show
    Code:
    DialogToClosehWnd = DialogEx.GetWndHandle();
    From the place you want to close it from, place the next:

    Code:
    if(DialogToClosehWnd)then
        Window.Close(DialogToClosehWnd, CLOSEWND_SENDMESSAGE);
    end
    Bas Groothedde
    Imagine Programming :: Blog :: Familiar people here

    My AMS Plugins:

  3. #3
    Join Date
    Apr 2006
    Posts
    5

    Thanks

    It worked like a charm.

Posting Permissions

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