Expands menu in the same nivel

Post Reply
yury
Posts: 56
Joined: Wed May 23, 2007 2:01 pm

Expands menu in the same nivel

Post 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
Yury Marcelino Al
yury030575@yahoo.com.br
vimansca@vimansca.com.br
Leme / SP - Brasil
User avatar
Antonio Linares
Site Admin
Posts: 37481
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Contact:

Post 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.
regards, saludos

Antonio Linares
www.fivetechsoft.com
Post Reply