Results 1 to 4 of 4

Thread: change menu item text via code?

  1. #1

    Thread Starter
    Frenzied Member
    Join Date
    Aug 2000
    Posts
    1,091
    Hi,

    Is it possible to manipulate the text of a menu item via code? What I'm trying to do is to show which one of the menu items is currently default. So for example:

    Profiles
    Profile1
    Profile2 (Default)
    Profile3

    or:

    Profiles
    Profile1 (Default)
    Profile2
    Profile3

    Any help and examples would be appreciated..

    Dan

  2. #2

    Thread Starter
    Frenzied Member
    Join Date
    Aug 2000
    Posts
    1,091
    Nevermind.. Dumby me!!! I just realized that you can change the properties of the menu item by calling it's name just like any other control... Man, long week I guess...

  3. #3
    The Devil crptcblade's Avatar
    Join Date
    Aug 2000
    Location
    Quetzalshacatenango
    Posts
    9,091
    mnuCaption.Caption = mnuCaption.Caption & "(Default)"
    Laugh, and the world laughs with you. Cry, and you just water down your vodka.


    Take credit, not responsibility

  4. #4
    Lively Member
    Join Date
    Jan 1999
    Location
    Lincolnshire, UK
    Posts
    111
    Simple, when you want to change the menus caption,

    MenuItem.Caption="My New Caption"

    Since this is a bit basic and you're an addicted member, I reckon it's a bit more complicated than that, if it is, please email me

    Cheers

    Chris

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