on 09-29-2005 6:12 AM
Hi,
How can we control the MenuEvent on UDO form only? I wish to run additional procedures when Navigation/Find/Add menus are clicked.
E.g. When I click the Find menu, I want a textbox to get focus.
Automanged=True and SupportedModes=-1 are setup.
I am using VB. Help appreciated.
Thanks.
Sorry, I run too much. MenuEvent!= ItemEvent.
Regards,
Ibai Peñ
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi there...
Ibai, filters only apply to item events, not for application or menuevents. So you don't have to capture it...
CK, for your question, you could do something like below...
<b>Code (C#)</b>
// The function called when a menuevent occurs
private void SBO_Application_MenuEvent(ref SAPbouiCOM.MenuEvent pVal, out bool BubblesEvent)
{
// Check if the active form is the form where yoyu want to catch the events
if(SBO_Application.Forms.ActiveForm.UniqueID == "MyFormUID")
{
// Now determine if there is a menuuid that you need... :)
switch(pVal.MenuUID)
{
case NAVIGATION_MENU_UID:
// Do something...
break;
case FIND_MENU_UID:
// Do something...
break;
case ADD_MENU_UID:
// Do something...
break;
}
}
}
Hope it helps...
Hi R. Schwachofer
You've solved my problem. Thanks!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I'll try it out shortly. Thank you, guys!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
102 | |
12 | |
11 | |
6 | |
5 | |
4 | |
4 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.