FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour Expands menu in the same nivel
Posts: 56
Joined: Wed May 23, 2007 02:01 PM
Expands menu in the same nivel
Posted: Tue Mar 11, 2008 02: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:

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:

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


thanks

best regards
Yury Marcelino Al
yury030575@yahoo.com.br
vimansca@vimansca.com.br
Leme / SP - Brasil
Posts: 44162
Joined: Thu Oct 06, 2005 05:47 PM
Expands menu in the same nivel
Posted: Tue Mar 11, 2008 05: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

Continue the discussion