| View previous topic :: View next topic |
| Author |
Message |
robertlees Newbie
Joined: 19 Sep 2005 Posts: 22 Location: Sydney, Australia
|
Posted: May 6th, 2006 05:14 PM Post subject: Dynamic popup menu |
|
|
| I want to create a popup menu. There will be a variable number of items in the popup menu (dont know how many). If an item is clicked, some action might be performed (I'll work that out), but a sub-popup menu might need to be produced. Can anyone get me started ? |
|
| Back to top |
|
P.T.A.M. Administrator

Joined: 08 Oct 2003 Posts: 752 Location: Greece
|
Posted: Jun 6th, 2006 06:42 AM Post subject: |
|
|
Create a menu in the menu editor, set it to hidden and set an index to the first subitem of the menu. Then when you want to create more items, Load the next item with the next index. To have actions, you can change the actions depending on the index in the click event of the submenus (that all have the same name) _________________ No one is completely useless. They can at least be an example of what to avoid. |
|
| Back to top |
|
robertlees Newbie
Joined: 19 Sep 2005 Posts: 22 Location: Sydney, Australia
|
Posted: Jun 18th, 2006 11:08 AM Post subject: |
|
|
| Sorry it has taken so long for me to reply. I think you left something out. I've create the potention popup menu, then made the sub items visible. But how can I make the newly visible menu popup at the place the control button was clicked. If I just make the parent menu item visible, it comes at the top of the screen. |
|
| Back to top |
|
P.T.A.M. Administrator

Joined: 08 Oct 2003 Posts: 752 Location: Greece
|
Posted: Jun 19th, 2006 03:33 PM Post subject: |
|
|
You call the method :
PopupMenu mnuYourPopupMenuHere _________________ No one is completely useless. They can at least be an example of what to avoid. |
|
| Back to top |
|
|