Menus

Menus

Postby Enrico Maria Giordano » Tue Jan 24, 2006 5:54 pm

Is it possible to create submenus and how?

EMG
User avatar
Enrico Maria Giordano
 
Posts: 8718
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia

Postby Antonio Linares » Tue Jan 24, 2006 6:26 pm

Enrico,

Do you mean POPUP menus ?
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 42122
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Postby Enrico Maria Giordano » Tue Jan 24, 2006 7: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
User avatar
Enrico Maria Giordano
 
Posts: 8718
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia

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

Postby Enrico Maria Giordano » Thu Jan 26, 2006 8:25 am

Thank you, I'll give it a try.

EMG
User avatar
Enrico Maria Giordano
 
Posts: 8718
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia

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

Postby Eugeniusz Owsiak » Thu Jan 26, 2006 12:45 pm

Check your mail

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

Postby Enrico Maria Giordano » Thu Jan 26, 2006 1:37 pm

It works, thank you!

EMG
User avatar
Enrico Maria Giordano
 
Posts: 8718
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia


Return to FiveWin for Pocket PC

Who is online

Users browsing this forum: No registered users and 34 guests