Print Page | Close Window

Trigger a Menu dropdown ...

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Command Bars
Forum Description: Topics Related to Codejock Command Bars
URL: http://forum.codejock.com/forum_posts.asp?TID=10676
Printed Date: 16 June 2025 at 5:24pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Trigger a Menu dropdown ...
Posted By: smboats
Subject: Trigger a Menu dropdown ...
Date Posted: 19 May 2008 at 12:33am
Is there a simple way to trigger (from within code) a main menu topic list to drop down (for examples the Files menu/popup)?
 
Thanks, -Ted 



Replies:
Posted By: Oleg
Date Posted: 19 May 2008 at 1:07am
Hi,
 
yes. you need Control.Execute method for Popup Control.


-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS


Posted By: smboats
Date Posted: 19 May 2008 at 7:41am
Thanks, Oleg.  I thought that might be it, but I seem to have a terrible time getting the syntax right. Could you give me an example of how it would look inside a procedure for the form ... assuming I just want to drop down the a standard "File" set of items (let's say I just have a button on the MDI sample and clicking it should drop down the menu).
 
Many thanks.
 
In general, as a newbie, I don't have any problem setting up the Command Bar stuff, but I do have a lot of difficulty modifying it, getting it to respond, or polling it's properties from other procedures or modules. I am not getting the idea of the syntax right -- or I am not defining something correctly. I feel like I have gone through all the examples and they do a good job of showing how to get controls laid out and their appearance set. But they don't seem to have examples of using, modifying, checking, controls etc ... once you are out of the process of just "adding" them in. Can you point me to a good example of these kinds of things.
 
Thanks, -Ted


Posted By: Aaron
Date Posted: 19 May 2008 at 7:56am
Hi,
 
You want to dropdown a popupmenu item without having to click the menu item, correct ? I don't know your intention why you want to do that but try this:
 
CommandBars.FindControl(, ID_FILE).Execute
 
Where ID_FILE is the ID of the PopupMenuItem and will dropdown the menu item


-------------
Product: Xtreme SuitePro (ActiveX) version 15.0.2
Platform: Windows XP (32bit) - SP 2
Language: Visual Basic 6.0

Zero replies is not an option....



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net