Metro class
Metro class
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
This does not look good.
Is there a possibility to prevent such a behavior.
Best regards,
Otto
********************************************************************
mod harbour - Vamos a la conquista de la Web
modharbour.org
********************************************************************
mod harbour - Vamos a la conquista de la Web
modharbour.org
********************************************************************
- Antonio Linares
- Site Admin
- Posts: 37485
- Joined: Thu Oct 06, 2005 5:47 pm
- Location: Spain
- Contact:
Re: Metro class
Otto,
Please check that the required window style is used:
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
Hello Antonio, please see screen shot 1. This is what I see for 1 sec.
Best regards,
Otto


Best regards,
Otto


********************************************************************
mod harbour - Vamos a la conquista de la Web
modharbour.org
********************************************************************
mod harbour - Vamos a la conquista de la Web
modharbour.org
********************************************************************
- Antonio Linares
- Site Admin
- Posts: 37485
- Joined: Thu Oct 06, 2005 5:47 pm
- Location: Spain
- Contact:
Re: Metro class
Otto,
Please try to remove the style WS_VISIBLE:
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
Hello Antonio,
thank you. Now it is looking good.
Best regards,
Otto
thank you. Now it is looking good.
Best regards,
Otto
********************************************************************
mod harbour - Vamos a la conquista de la Web
modharbour.org
********************************************************************
mod harbour - Vamos a la conquista de la Web
modharbour.org
********************************************************************
Re: Metro class
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 :
Best regards
Uwe

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
Uwe

Last edited by ukoenig on Wed Oct 12, 2011 4:18 pm, edited 3 times in total.
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.
i work with FW.
If you have any questions about special functions, maybe i can help.
Re: Metro class
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
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

Last edited by ukoenig on Wed Oct 12, 2011 4:40 pm, edited 2 times in total.
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.
i work with FW.
If you have any questions about special functions, maybe i can help.
- Andrés González
- Posts: 625
- Joined: Thu Jan 19, 2006 10:45 am
- Location: Mallorca
Re: Metro class
Saludos
Andrés González desde Mallorca
Andrés González desde Mallorca
Re: Metro class
Great work as usual...
Can you please send them to me too???
My email is in my signature!!
Thanks!
Can you please send them to me too???
My email is in my signature!!
Thanks!
=====>
Bayron Landaverry
(215)2226600 Philadelphia,PA, USA
+(502)46727275 Guatemala
MayaBuilders@gMail.com
FWH12.04||Harbour 3.2.0 (18754)||BCC6.5||UEstudio 10.10||
Windows 7 Ultimate
FiveWin, One line of code and it's done...
Bayron Landaverry
(215)2226600 Philadelphia,PA, USA
+(502)46727275 Guatemala
MayaBuilders@gMail.com
FWH12.04||Harbour 3.2.0 (18754)||BCC6.5||UEstudio 10.10||
Windows 7 Ultimate
FiveWin, One line of code and it's done...
Re: Metro class
Andrés, Bayron
sended !!!
Best regards
uwe
sended !!!
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.
i work with FW.
If you have any questions about special functions, maybe i can help.
- richard-service
- Posts: 583
- Joined: Tue Oct 16, 2007 8:57 am
- Location: New Taipei City, Taiwan
- Contact:
Re: Metro class
Hi
Please send to me. richard-service at hotmail dot com
Please send to me. richard-service at hotmail dot com
Regards,
Richard
Harbour 3.2.0dev (r1904111533)/xHarbour 1.2.3 Intl. (SimpLex) (Build 20180818) => Borland C++ v7.4
xHarbour 0.99.71 (SimpLex) => Borland C++ v5.5
MySQL v5.7 /ADS v12
Harbour 3.2.0dev (r1603181642) => Borland C++ v7.4 64bit
Richard
Harbour 3.2.0dev (r1904111533)/xHarbour 1.2.3 Intl. (SimpLex) (Build 20180818) => Borland C++ v7.4
xHarbour 0.99.71 (SimpLex) => Borland C++ v5.5
MySQL v5.7 /ADS v12
Harbour 3.2.0dev (r1603181642) => Borland C++ v7.4 64bit
Re: Metro class
Many thanks in advance !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

Rimantas U.
Re: Metro class
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
Andrés
Richard
Rimantas
Update sended !!!
more Buttons
Alpha - Bmp's added
Directorys :
BMP ( with Background-color )
PNG ( transparent )
BMP ( alphablended )
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.
i work with FW.
If you have any questions about special functions, maybe i can help.
Re: Metro class
Regards,
Dutch
FWH 19.01 / xHarbour Simplex 1.2.3 / BCC73 / Pelles C / UEStudio
FWPPC 10.02 / Harbour for PPC (FTDN)
ADS V.9 / MySql / MariaDB
R&R 12 Infinity / Crystal Report XI R2
(Thailand)
Dutch
FWH 19.01 / xHarbour Simplex 1.2.3 / BCC73 / Pelles C / UEStudio
FWPPC 10.02 / Harbour for PPC (FTDN)
ADS V.9 / MySql / MariaDB
R&R 12 Infinity / Crystal Report XI R2
(Thailand)
Re: Metro class
FWH 1709 BCC72 MySql MariaDB
Visual Studio 2019 / Xamarin / C#
Visual Studio 2019 / Xamarin / C#