Results 1 to 5 of 5

Thread: Open another dialog

  1. #1
    Ragnar
    Guest

    Open another dialog

    What's the code for opening another dialog with a buttonclick?

    Code:
    OnOK
    {
       // code for opening AboutDialog
    }

  2. #2
    Monday Morning Lunatic parksie's Avatar
    Join Date
    Mar 2000
    Location
    Mashin' on the motorway
    Posts
    8,169
    Use the DialogBox function Actually it's a macro but I'm not quibbling...
    I refuse to tie my hands behind my back and hear somebody say "Bend Over, Boy, Because You Have It Coming To You".
    -- Linus Torvalds

  3. #3
    PowerPoster Chris's Avatar
    Join Date
    Jan 1999
    Location
    K-PAX
    Posts
    3,238
    use the CreateDialog API function call, but you need to have the CALLBACK for this dialog ready first.


  4. #4
    PowerPoster abdul's Avatar
    Join Date
    Dec 2000
    Location
    Ontario,Canada
    Posts
    2,827
    I just noticed that you can't show two dialog boxes at the same time using "DialogBox"

    So use "CreateDialog" and create modaless dialog box. You also need to handle the messages for that manually
    Baaaaaaaaah

  5. #5
    Monday Morning Lunatic parksie's Avatar
    Join Date
    Mar 2000
    Location
    Mashin' on the motorway
    Posts
    8,169
    Umm...you can, but one will be modal relative to the other

    See my dialogue box example for how to show one...
    I refuse to tie my hands behind my back and hear somebody say "Bend Over, Boy, Because You Have It Coming To You".
    -- Linus Torvalds

Posting Permissions

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



Click Here to Expand Forum to Full Width