Results 1 to 9 of 9

Thread: Display one dialog in second

  1. #1
    amac
    Guest
    Can I ask why? If I know what you are trying to accomplish I may be able to help you a bit better...

  2. #2
    New Member
    Join Date
    May 2002
    Location
    Bosnia
    Posts
    9
    I need it for tab kontrol. I know how to show dialog with:

    CDialog* pDialog = new CDialog;

    pDialog->Create( NULL,this);
    pDialog->MoveWindow(CRect(10,10,100,100),TRUE);
    pDialog->ShowWindow(TRUE);
    pDialog->UpdateWindow();

    But I have problems with scroll bars. How to activate that.

  3. #3
    New Member
    Join Date
    May 2002
    Location
    Bosnia
    Posts
    9
    The problem is that I need to show tab control on one part of Dialog (dialog1 for example). For "tabs" I use other dialogs (dialog2, dialog3 etc.).
    Well dialog2 is bigger than area where I need to show it, so I need to use scroll bars of dialog2.

  4. #4
    New Member
    Join Date
    May 2002
    Location
    Bosnia
    Posts
    9

    Unhappy

    Nobody?

    Ok, anyone know some good forum for c++, like vbforums.com is for Visual Basic?

  5. #5
    Kitten CornedBee's Avatar
    Join Date
    Aug 2001
    Location
    In a microchip!
    Posts
    11,594
    I think the tab control has native support for this, try CTabCtrl.
    You might want to use the CPropertySheet class...
    You can also activate scroll bars in the dialog properties...
    I don't really get what you want to do.
    All the buzzt
    CornedBee

    "Writing specifications is like writing a novel. Writing code is like writing poetry."
    - Anonymous, published by Raymond Chen

    Don't PM me with your problems, I scan most of the forums daily. If you do PM me, I will not answer your question.

  6. #6
    New Member
    Join Date
    May 2002
    Location
    Bosnia
    Posts
    9
    Originally posted by CornedBee

    You can also activate scroll bars in the dialog properties...
    How to activate scroll bars?
    I could create Dialog like a child of some control, and show scrolls, but scroll bars do nothing.

    I need to separate dialog window "show" size and dialog window "real" size. (Like when you need to show large picture (larger then picture box), you have it "real" size, and have a "show" size (size of picture box).
    I need exactly the same the same thing, not for picture, but for one dialog in another dialog ( anybody understand? )

  7. #7
    Kitten CornedBee's Avatar
    Join Date
    Aug 2001
    Location
    In a microchip!
    Posts
    11,594
    I think if I saw scroll bars to scroll a dialog I'd immediatly uninstall the app...


    In the MSVC dialog editor go to the dialog properties and select both Horizontal Scroll and Vertical Scroll. Is this what you want? (You'd need to handle the scroll messages, but that isn't that much of a problem)
    All the buzzt
    CornedBee

    "Writing specifications is like writing a novel. Writing code is like writing poetry."
    - Anonymous, published by Raymond Chen

    Don't PM me with your problems, I scan most of the forums daily. If you do PM me, I will not answer your question.

  8. #8
    New Member
    Join Date
    May 2002
    Location
    Bosnia
    Posts
    9
    OK, maybe I dont need dialog,
    I just need to show about 20 edit boxes in one area of the dialog. That area is small, so I need to use scroll bars. I thought that is simple to do. Anyone know how to do it, or have some example about it?

  9. #9
    Kitten CornedBee's Avatar
    Join Date
    Aug 2001
    Location
    In a microchip!
    Posts
    11,594
    As I said, reconsider that approach. It wouldn't be a sign of good style.

    You can place scroll bar controls on the dialog and handle the messages with MoveWindow calls to the edit boxes...
    All the buzzt
    CornedBee

    "Writing specifications is like writing a novel. Writing code is like writing poetry."
    - Anonymous, published by Raymond Chen

    Don't PM me with your problems, I scan most of the forums daily. If you do PM me, I will not answer your question.

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