Solved

pulling down a menu programmatically

Posted on 1998-11-04
4
191 Views
Last Modified: 2010-04-30
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
Comment
Question by:mwiebe
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
4 Comments
 
LVL 2

Expert Comment

by:Poddy
ID: 1443202
try sendkeys ... ?
0
 
LVL 2

Expert Comment

by:chrisbolt
ID: 1443203
For example:

SendKeys "%f"

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

Accepted Solution

by:
idcanada earned 200 total points
ID: 1443204

May sound simple but this is it.
Popupmenu mnuFile


0
 

Author Comment

by:mwiebe
ID: 1443205
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

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

The debugging module of the VB 6 IDE can be accessed by way of the Debug menu item. That menu item can normally be found in the IDE's main menu line as shown in this picture.   There is also a companion Debug Toolbar that looks like the followin…
When trying to find the cause of a problem in VBA or VB6 it's often valuable to know what procedures were executed prior to the error. You can use the Call Stack for that but it is often inadequate because it may show procedures you aren't intereste…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

730 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question