Results 1 to 3 of 3

Thread: Pop up menu

  1. #1

    Thread Starter
    PowerPoster
    Join Date
    Aug 2000
    Location
    IN SILENCE
    Posts
    6,441
    How can I change the text of a popup menu? My user will select a name from a vbgrid. I want that name to be combined with the menu option ie user select JOHN S. then menu item becomes Add more info more JOHN S. Any ideas?
    Remaining quiet down here !!!

    BRAD HAS GIVEN ME THE ULTIMATIVE. I have chosen to stay....

  2. #2
    Addicted Member Michael Woolsey's Avatar
    Join Date
    Nov 2000
    Location
    Calgary, Alberta, Canada.
    Posts
    243
    Are you looking to change the text on a pre-defined menu item, or add a new menu item?

    The following code is a example of how to add menu items:
    Code:
    Dim ctr as Integer
    
    For ctr = 1 to 5
      Load menuItem1(ctr)
      menuItem1(ctr).Caption = "Menu " & ctr
      menuItem1(ctr).Visible = True
    Next
    This is assuming you have a menu item called menuItem1 and its indexed (Zero is fine for the index).

    If you want to change a predefined menuitem, just use MenuItem.Caption = "JOHN S." for example.

    Hope this helps.
    Michael Woolsey
    Application/Web Developer

    Visual Basic 6.0 SP5
    Active Server Pages
    Oracle 9i
    - I'm going to live forever, or die trying!

  3. #3
    Guest
    To change it's text use:
    Code:
    MyMenu.Caption = "hello"

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