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
Printable View
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
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
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
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.