CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 7 of 7
  1. #1
    Join Date
    Apr 2009
    Posts
    116

    How to reposition Menu Bar for Dialog Box?

    Normally, menu bar resides below the title bar. See attachment MenuBarOriginal.JPG
    Is there a way that we can position the menu bar? For example,place it on the side or anywhere on the dialog box?

    MenuBarModified.JPG is some sample of menu bar positions that I want to place.

    I want to do this on a dialog box.
    Attached Images Attached Images   

  2. #2
    Join Date
    Nov 2000
    Location
    Voronezh, Russia
    Posts
    6,620

    Re: How to reposition Menu Bar for Dialog Box?

    Not with standard menu. I believe what you might need is Rebar.
    Best regards,
    Igor

  3. #3
    Join Date
    Apr 2009
    Posts
    116

    Re: How to reposition Menu Bar for Dialog Box?

    Thanks for the info.
    I am thinking of using the combo box dropdown menu to replace the functions in menu bar.
    Please see attached file dropdownmenu.jpg for more details.
    I have 2 questions here:
    1. How to set default value for combo box dropdown menu selections?
    2. How to make it prompt out a dialog box if user select one of the menus?
    Attached Images Attached Images  

  4. #4
    Join Date
    Nov 2000
    Location
    Voronezh, Russia
    Posts
    6,620

    Re: How to reposition Menu Bar for Dialog Box?

    CComboBox Class

    Quote Originally Posted by PHChang
    I am thinking of using the combo box dropdown menu to replace the functions in menu bar.
    A really bad idea, as for me.
    Best regards,
    Igor

  5. #5
    Join Date
    Apr 2009
    Posts
    116

    Re: How to reposition Menu Bar for Dialog Box?

    Thanks Igor. Is fine. Just want to know is there any better tutorial or sample for me to refer on how to do this?

  6. #6
    Join Date
    Apr 2009
    Posts
    116

    Re: How to reposition Menu Bar for Dialog Box?

    After 2nd thought, I think I will try out the Rebar you suggested first and see how it goes. Any nice tutorial on Rebar?

  7. #7
    Join Date
    Nov 2000
    Location
    Voronezh, Russia
    Posts
    6,620

    Re: How to reposition Menu Bar for Dialog Box?

    Never did Rebar. And I was always fine with MSDN samples and google search.

    As for the essense of the issue, if you need menu, you implement menu (classic menu or toolbar). But in case you use controls, it's more like settings dialog, not menu.
    Best regards,
    Igor

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

Featured