Results 1 to 4 of 4

Thread: Popup menus

  1. #1

    Thread Starter
    Member
    Join Date
    May 2000
    Posts
    43
    Is it possible to create new popup menues whilst the program is running??? So a popup menu statrs with say 3 options, and then when a command button is pressed another option is added??? If you can help let me know
    Thanx
    Cease

  2. #2
    Fanatic Member
    Join Date
    Oct 1999
    Location
    MA, USA
    Posts
    523
    The easiest way would be to make that extra option invisible when the program starts and then when the button is pressed make it visible.

    Just an idea

  3. #3

    Thread Starter
    Member
    Join Date
    May 2000
    Posts
    43

    i thought of that

    That wouldnt really work, as i dont know how many options the user will want, as it depends on the amount of visable windows on the screen, still thanx for the idea, and if anyone else can help please let me know,
    Thanx
    Cease

  4. #4
    Hyperactive Member tumblingdown's Avatar
    Join Date
    Mar 2000
    Posts
    362
    Use a menu array.
    Start with the menu editor at design time and create you popup with one entry and an index of zero. Then at runtime you can 'Load' or 'UnLoad' the desired menu items with either the max index + 1 (load) or remove the offending index (unload).

    Alternatively you can use API calls (hint: TrackPopupMenu)

    Hope it helps.
    "One logical slip and an entire scientific edifice comes tumbling down." - Robert M. Pirsig


    [email protected]

    "but if Einstein is right and God is in the details, reality requires that we sometimes get religion." - Scott Meyers.

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