|
-
Jun 25th, 2000, 12:15 AM
#1
Thread Starter
Member
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
-
Jun 25th, 2000, 12:36 AM
#2
Fanatic Member
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
-
Jun 25th, 2000, 01:21 AM
#3
Thread Starter
Member
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
-
Jun 25th, 2000, 02:18 AM
#4
Hyperactive Member
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|