Log inUsernamePassword
Log me on automatically each visit    
Register
Register
Log in to check your private messages
Log in to check your private messages
Visual Basic Forum for Visual Basic Programmers VB Forum Index » General

Post new topic   Reply to topic
Dynamic popup menu
View previous topic :: View next topic  
Author Message
robertlees
Newbie


Joined: 19 Sep 2005
Posts: 22
Location: Sydney, Australia

PostPosted: May 6th, 2006 05:14 PM    Post subject: Dynamic popup menu Reply with quote

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
View user's profile Send private message
P.T.A.M.
Administrator


Joined: 08 Oct 2003
Posts: 752
Location: Greece

PostPosted: Jun 6th, 2006 06:42 AM    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail Visit poster's website ICQ Number
robertlees
Newbie


Joined: 19 Sep 2005
Posts: 22
Location: Sydney, Australia

PostPosted: Jun 18th, 2006 11:08 AM    Post subject: Reply with quote

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
View user's profile Send private message
P.T.A.M.
Administrator


Joined: 08 Oct 2003
Posts: 752
Location: Greece

PostPosted: Jun 19th, 2006 03:33 PM    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail Visit poster's website ICQ Number
Display posts from previous:   
Post new topic   Reply to topic    Visual Basic Forum for Visual Basic Programmers VB Forum Index » General All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Visual Basic Forum runs phpBB | Forum Template © iOptional
VB Resources | SSL | Visual Basic