Expands menu in the same nivel

Expands menu in the same nivel

Postby yury » Tue Mar 11, 2008 2:57 pm

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  Expand view
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  Expand view
'Customers'
     'Add new Customer'
           'Industry'
           'Commerce'
           'Service'


thanks

best regards
Yury Marcelino Al
yury030575@yahoo.com.br
vimansca@vimansca.com.br
Leme / SP - Brasil
yury
 
Posts: 56
Joined: Wed May 23, 2007 2:01 pm

Postby Antonio Linares » Tue Mar 11, 2008 5:18 pm

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
User avatar
Antonio Linares
Site Admin
 
Posts: 42080
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 58 guests

cron