FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Pocket PC Menus
Posts: 9020
Joined: Thu Oct 06, 2005 08:17 PM
Menus
Posted: Tue Jan 24, 2006 05:54 PM

Is it possible to create submenus and how?

EMG

Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Menus
Posted: Tue Jan 24, 2006 06:26 PM

Enrico,

Do you mean POPUP menus ?

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 9020
Joined: Thu Oct 06, 2005 08:17 PM
Menus
Posted: Tue Jan 24, 2006 07:04 PM

No, the menu on the bottom bar. The FWPPC samples show how to get a bar menu with two items. What I would like to do is to open a submenu for each of those items. Is it possible?

EMG

Posts: 60
Joined: Fri Oct 07, 2005 05:38 AM
Menus
Posted: Thu Jan 26, 2006 07:00 AM
Enrico, this works for me ( I know it's a POPUP menu):

in .RC file (from eVC++) :
102 MENU DISCARDABLE
BEGIN
POPUP "Obsługa"
BEGIN
MENUITEM "Łączenie", 100
MENUITEM "Logowanie", 102
MENUITEM "Maszyna", 104
MENUITEM "Przegląd", 106
END
POPUP "Help"
BEGIN
MENUITEM "Test", 200
MENUITEM "Test 1", 202
END
END
in .PRG file
function BuildMenu()

local oMenu

DEFINE MENU oMenu RESOURCE 102

REDEFINE MENUITEM ID 100 OF oMenu ACTION Lacz()

REDEFINE MENUITEM ID 102 OF oMenu ACTION (iif(lConnect,Loguj(),msgInfo("Brak połączenia z serwerem")))

REDEFINE MENUITEM ID 104 OF oMenu ACTION (iif(lLogin,Wybor(),msgInfo("Najpier się zaloguj")))

REDEFINE MENUITEM ID 106 OF oMenu ACTION (iif(lLogin,Wodzik(),msgInfo("Najpier się zaloguj")))
REDEFINE MENUITEM ID 200 OF oMenu ACTION Help()
REDEFINE MENUITEM ID 202 OF oMeneu ACTION Help1()
return oMenu


regards Eugeniusz
Posts: 9020
Joined: Thu Oct 06, 2005 08:17 PM
Posts: 9020
Joined: Thu Oct 06, 2005 08:17 PM
Menus
Posted: Thu Jan 26, 2006 12:24 PM

Unfortunately it doesn't seem to work. Can you send me a reduced and self-contained working sample, please?

EMG

Posts: 60
Joined: Fri Oct 07, 2005 05:38 AM
Menus
Posted: Thu Jan 26, 2006 12:45 PM

Check your mail

Eugeniusz

Posts: 9020
Joined: Thu Oct 06, 2005 08:17 PM

Continue the discussion