Page 1 of 2
Metro class
Posted: Mon Oct 10, 2011 10:19 am
by Otto
Using the new TMetro class shows first a little window with a caption and then the application switches to full screen.
This does not look good.
Is there a possibility to prevent such a behavior.
Best regards,
Otto
Re: Metro class
Posted: Mon Oct 10, 2011 10:24 am
by Antonio Linares
Otto,
Please check that the required window style is used:
Code: Select all
DEFINE WINDOW ::oWnd STYLE nOr( WS_POPUP, WS_VISIBLE ) ;
COLOR CLR_WHITE, RGB( 15, 109, 57 )
Re: Metro class
Posted: Mon Oct 10, 2011 12:42 pm
by Otto
Hello Antonio, please see screen shot 1. This is what I see for 1 sec.
Best regards,
Otto

Re: Metro class
Posted: Mon Oct 10, 2011 3:28 pm
by Antonio Linares
Otto,
Please try to remove the style WS_VISIBLE:
Code: Select all
DEFINE WINDOW ::oWnd STYLE nOr( WS_POPUP ) ;
COLOR CLR_WHITE, RGB( 15, 109, 57 )
Re: Metro class
Posted: Mon Oct 10, 2011 6:01 pm
by Otto
Hello Antonio,
thank you. Now it is looking good.
Best regards,
Otto
Re: Metro class
Posted: Mon Oct 10, 2011 6:50 pm
by ukoenig
Working on a collection of some useful BMP's
some more + added a Window-title :
in
TMetro add < oFontA > to data :
DATA oWnd, oFont,
oFontA, oFontB
In Method New add :
Code: Select all
// 1024 = Screen-width or use => nWidth := GetSysMetrics(0)
DEFINE FONT ::oFontA NAME "Arial" SIZE 0, -30 BOLD
@ 0, 0 TITLE ::oTITLE SIZE 1024, 40 OF ::oWnd NOBORDER
::cTitle := "METRO-Style Title-text !!!"
hOldFont := SelectObject( hDC, ::oFontA:hFont )
nTXTLG := GettextWidth( hDC, ::cTitle )
nLEFT := ( 1024 - nTXTLG ) / 2.5
@ 10, nLeft TITLETEXT ::oSay OF ::oTITLE TEXT ::cTitle FONT ::oFontA ;
COLOR 128
Best regards
Uwe

Re: Metro class
Posted: Wed Oct 12, 2011 12:38 pm
by ukoenig
I finished the Metro-buttons (
67 )
There are 2 formats : BMP and PNG ( transparent )
In case You find them useful and like them,
You can send me a Email for the Download-link
I can add some more, just tell me the Symbols You still need.
Best Regards
Uwe

Re: Metro class
Posted: Wed Oct 12, 2011 3:25 pm
by Andrés González
Ukoenig send me please. Thanks
zalezalon@gmail.com
Re: Metro class
Posted: Wed Oct 12, 2011 3:45 pm
by Bayron
Great work as usual...
Can you please send them to me too???
My email is in my signature!!
Thanks!
Re: Metro class
Posted: Wed Oct 12, 2011 4:01 pm
by ukoenig
Andrés, Bayron
sended !!!
Best regards
uwe

Re: Metro class
Posted: Wed Oct 12, 2011 4:04 pm
by richard-service
Hi
Please send to me. richard-service at hotmail dot com
Re: Metro class
Posted: Wed Oct 12, 2011 4:10 pm
by Rimantas
ukoenig wrote:I finished the Metro-buttons (
67 )
There are 2 formats : BMP and PNG ( transparent )
In case You find them useful and like them,
You can send me a Email for the Download-link
Best Regards
Uwe

Many thanks in advance !
rimantasu@gmail.com
Re: Metro class
Posted: Wed Oct 12, 2011 7:52 pm
by ukoenig
Bayron
Andrés
Richard
Rimantas
Update sended !!!
more Buttons
Alpha - Bmp's added
Directorys :
BMP ( with Background-color )
PNG ( transparent )
BMP ( alphablended )
Best Regards
Uwe

Re: Metro class
Posted: Fri Oct 14, 2011 8:12 pm
by dutch
Dear Uwe,
Could I have too.
Thanks®ards,
Dutch
dutchez4@gmail.com
Re: Metro class
Posted: Fri Oct 14, 2011 9:08 pm
by Eroni
Dear Uwe,
Could you send me too?
Best regards,
Eroni
eroni_americo@yahoo.com.br