About METRO and MDI

About METRO and MDI

Postby ukoenig » Tue Jun 12, 2012 12:11 pm

Hello,

I have a question about METRO and using MDI
With my first tests, it works but closing a child doesn't return to button-level.
I used oMetro:Show(), but doesn't work.

Image

Closing the Child, returns to oMWnd. How to stay inside the defined Panel ?

DEFINE WINDOW oMWnd TITLE "FiveMDbu" MDI MENU BuildMenu() STYLE nOr( WS_POPUP, WS_MAXIMIZE ) ;
COLOR CLR_WHITE, CLR_GREEN
oMetro := MPANEL( oMWnd:oWndClient, oMetro )
....
....
// --------------------------

static function MPANEL( oWnd, oMetro )
local oBtn[11]
DEFINE METROPANEL oMetro OF oWnd TITLE "DBF-Editor 1.0" ;
COLOR CLR_WHITE, CLR_GREEN ;
ON CLICK oWnd:End()
...
...
DEFINE METROBUTTON oBtn[2] OF oMetro ;
COLOR RGB( 128, 0, 255 ),RGB( 181, 31, 60 ) ;
CAPTION "Open" ;
ALIGN "BOTTOMCENTER" ;
BITMAP "D:\P_METRUSER\Bitmaps\stock.bmp " ;
BMPALIGN "BOTTOMRIGHT" ;
SIZE 48, 48 ;
BODYTEXT "DBF" ;
TEXTALIGN "MIDDLELEFT" ;
BACKGROUND "D:\P_METRUSER\BITMAPS\MSpec6.png " ;
LARGE ;
ACTION Open()
oBtn[2]:nClrCaption := CLR_BLACK

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.
User avatar
ukoenig
 
Posts: 4043
Joined: Wed Dec 19, 2007 6:40 pm
Location: Germany

Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 97 guests