FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour A problem using METRO Menu ?
Posts: 4043
Joined: Wed Dec 19, 2007 06:40 PM
A problem using METRO Menu ?
Posted: Thu Feb 26, 2015 08:25 PM
Hello,

I noticed testing TOUCH.prg from /Samples

DEFINE METROPANEL oMetro OF oWnd TITLE "Finances" ;
COLOR CLR_WHITE, CLR_BLUE

oMetro:lDesignMode := .T.
oMetro:nMetroTop = 250
oMetro:nMetroMargin = 100
oMetro:nBtnSize = 110
oMetro:nSliderTop = 170


DEFINE METROBUTTON oBtn OF oMetro LARGE ;
GROUP 2 ;
COLOR CLR_BLUE, CLR_HGREEN ;
CAPTION "sample menu" ;
ALIGN "BOTTOMCENTER" ;
BODYTEXT "This is;Multi-line;sample menu" ;
MENU Touchmenu1(ometro)

----------- all values of oMenu are used on oMetro as well !!! -----------

STATIC function touchmenu1(ometro)
LOCAL OBTN
IF oMenu == nil

DEFINE METROPANEL oMenu OF oWnd TITLE "Menus....." COLOR CLR_WHITE, CLR_GREEN

oMenu:lDesignMode := .T.
oMenu:nMetroTop = 250
oMenu:nMetroMargin = 300
oMenu:nBtnSize = 50
oMenu:nSliderTop = 270

...
...

is it possible, to define different sizes for oMetro and oMenu ?

best regards
Uwe :-)
Since 1995 ( the first release of FW 1.9 )

i work with FW.

If you have any questions about special functions, maybe i can help.
Posts: 10733
Joined: Sun Nov 19, 2006 05:22 AM
Re: A problem using METRO Menu ?
Posted: Fri Feb 27, 2015 12:17 PM

It is not possible because these are CLASSDATA of TMetroPanel class.

Regards



G. N. Rao.

Hyderabad, India
Posts: 4043
Joined: Wed Dec 19, 2007 06:40 PM
Re: A problem using METRO Menu ?
Posted: Sat Feb 28, 2015 11:05 AM
Mr. Rao,

thank You very much for Your help.

The logic is working fine now and gives me the basics, to add the dialogs

I noticed a problem on EXIT
ACTION oMetro:End()
The buttons are not working anymore the second time.

Better using :
ACTION WINEXEC( "RESTART MYEXEFILE.exe " + Str( oWnd:hWnd ), 0 )
RELAUNCHING the program with Daniel's C-function !!!

viewtopic.php?f=3&t=20477&p=109206&hilit=restart#p108559

best regards
Uwe :-)
Since 1995 ( the first release of FW 1.9 )

i work with FW.

If you have any questions about special functions, maybe i can help.

Continue the discussion