CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 6 of 6

Thread: MenuStrip

  1. #1
    Join Date
    Feb 2001
    Posts
    2,455

    MenuStrip

    Is there a was to get a menu strip to show the selected item always?

    Mike B

  2. #2
    Join Date
    Mar 2002
    Location
    St. Petersburg, Florida, USA
    Posts
    12,125

    Re: MenuStrip

    Quote Originally Posted by MikeB View Post
    Is there a was to get a menu strip to show the selected item always?

    Mike B
    Please no talking about "strip"ing...there are
    young ones about...

    OK, seriously... I do not know of any way "out of the box". In general this would seem to give a "bad" user experience (ie one that is not expected).

    The choices I can think of....

    1) Derive your own classes and implement the functionallity. This will probably be difficult to get 100%

    2) Dont use an actual "Selected item". Instead float a window (that is independant of the menu itself from a hieracrhical point of view) with the desired information.

    [I would opt for #2....if I could ever think of wanting such behaviour.....
    TheCPUWizard is a registered trademark, all rights reserved. (If this post was helpful, please RATE it!)
    2008, 2009,2010
    In theory, there is no difference between theory and practice; in practice there is.

    * Join the fight, refuse to respond to posts that contain code outside of [code] ... [/code] tags. See here for instructions
    * How NOT to post a question here
    * Of course you read this carefully before you posted
    * Need homework help? Read this first

  3. #3
    Join Date
    Feb 2001
    Posts
    2,455

    Re: MenuStrip

    Quote Originally Posted by TheCPUWizard View Post
    Please no talking about "strip"ing...there are
    young ones about...

    OK, seriously... I do not know of any way "out of the box". In general this would seem to give a "bad" user experience (ie one that is not expected).

    The choices I can think of....

    1) Derive your own classes and implement the functionallity. This will probably be difficult to get 100%

    2) Dont use an actual "Selected item". Instead float a window (that is independant of the menu itself from a hieracrhical point of view) with the desired information.

    [I would opt for #2....if I could ever think of wanting such behaviour.....
    I am designing my system to be a little out of the norm... The menu strip only has top-level buttons, each describing a domain. On the main form, all the actual menus/menu items are in a tool box docked on the left. By clicking one of the menu strip buttons, the tool box is updated with all the necessary "tools" to work in the "Current Domain". By showing the menu button as always selected, the user will always know what domain they are in. Not sure if domain is the correct word, but you may get the idea!

    Hopefully this makes sence.

    Mike B

  4. #4
    Join Date
    Mar 2002
    Location
    St. Petersburg, Florida, USA
    Posts
    12,125

    Re: MenuStrip

    Why not use a Button Bar instead???
    TheCPUWizard is a registered trademark, all rights reserved. (If this post was helpful, please RATE it!)
    2008, 2009,2010
    In theory, there is no difference between theory and practice; in practice there is.

    * Join the fight, refuse to respond to posts that contain code outside of [code] ... [/code] tags. See here for instructions
    * How NOT to post a question here
    * Of course you read this carefully before you posted
    * Need homework help? Read this first

  5. #5
    Join Date
    Feb 2001
    Posts
    2,455

    Re: MenuStrip

    Quote Originally Posted by TheCPUWizard View Post
    Why not use a Button Bar instead???
    I will look into it, didn't know it existed. Not very experienced in the .NET yet....



    Mike B

  6. #6
    Join Date
    Apr 2008
    Location
    Kentucky
    Posts
    73

    Re: MenuStrip

    Another option would be to add a "Check" image to the menu options that get turned 'on' when selected.

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