Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 195
  • Last Modified:

pulling down a menu programmatically

Is there a way in VB5 to programmatically cause a menu to pull down (as if the user has clicked it)?  This would be helpful in giving the user some guidance on where to go next in the program (instead of just text to tell, this would show the next step)?

I can use the HiLiteMenuItem API call to highlight the menu, but it would be more dramatic to show it pulled down. Also, that API call only seems to work with top level menus.  What I would really like is to be able to pull down the top level and highlight the menu item they should click, so they learn by seeing it done.
0
mwiebe
Asked:
mwiebe
1 Solution
 
PoddyCommented:
try sendkeys ... ?
0
 
chrisboltCommented:
For example:

SendKeys "%f"

Will show the File menu assuming you have f setup as the accelerator key (the caption would be &File)
0
 
idcanadaCommented:

May sound simple but this is it.
Popupmenu mnuFile


0
 
mwiebeAuthor Commented:
Thanks - a typical case of trying to make something more complicated than it is.  I was assuming it would be some complicated API call instead of a nice neat from method.  I expect there is an equally easy way to make the popup be positioned in the normal menu location (the goal here is helping to teach the user where to go next), so I'll do a little more exploring in the help screens for the PopupMenu method.

Thanks again.

0

Featured Post

Hire Technology Freelancers with Gigs

Work with freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely, and get projects done right.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now