Menus

Post Reply
User avatar
Antonio Linares
Site Admin
Posts: 37481
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Contact:

Post by Antonio Linares »

Enrico,

Do you mean POPUP menus ?
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Enrico Maria Giordano
Posts: 7355
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia
Contact:

Post by Enrico Maria Giordano »

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
User avatar
Eugeniusz Owsiak
Posts: 60
Joined: Fri Oct 07, 2005 5:38 am
Location: Poland

Post by Eugeniusz Owsiak »

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
User avatar
Enrico Maria Giordano
Posts: 7355
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia
Contact:

Post by Enrico Maria Giordano »

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

EMG
User avatar
Eugeniusz Owsiak
Posts: 60
Joined: Fri Oct 07, 2005 5:38 am
Location: Poland

Post by Eugeniusz Owsiak »

Check your mail

Eugeniusz
Post Reply