Page 1 of 1

Expands menu in the same nivel

Posted: Tue Mar 11, 2008 2:57 pm
by yury
hello everyone,

is possible expand the same menu/submenu after execute the action ?

after the execute an action, the menu is erased of screen, and the user
is forced to choice again in the first nivel of menu

i want the menu expands automatic in the same nivel

see the code:

Code: Select all

MENU oMenu
   MENUITEM "Customers"
     MENU 
        MENUITEM "Add New Customer"  
          MENU
             MENUITEM "Industry"   ACTION cInd() 
             MENUITEM "Commerce"   ACTION cCom()
             MENUITEM "Service"    ACTION cSer()
          ENDMENU    
        MENUITEM "View Profile"      ACTION cPrf()
     ENDMENU
   
   MENUITEM "Products"
     MENU
        MENUITEM "Add New Product"   ACTION pAdd()
        MENUITEM "View Profile"      ACTION pPrf()
     ENDMENU
ENDMENU

example, after execute the function cSer() i would like show menu:

Code: Select all

'Customers'
     'Add new Customer'
           'Industry'
           'Commerce'
           'Service'
thanks

best regards

Posted: Tue Mar 11, 2008 5:18 pm
by Antonio Linares
Yuri,

You can hilite a menu item doing:

oWnd:oMenu:Hilite( <n> )

but I don't know if it will be able to open a submenu item.