Solved

pulling down a menu programmatically

Posted on 1998-11-04
4
187 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
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

Top 6 Sources for Identifying Threat Actor TTPs

Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

Join & Write a Comment

Article by: Martin
Here are a few simple, working, games that you can use as-is or as the basis for your own games. Tic-Tac-Toe This is one of the simplest of all games.   The game allows for a choice of who goes first and keeps track of the number of wins for…
You can of course define an array to hold data that is of a particular type like an array of Strings to hold customer names or an array of Doubles to hold customer sales, but what do you do if you want to coordinate that data? This article describes…
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…

747 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

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now