Metro class

User avatar
Otto
Posts: 4470
Joined: Fri Oct 07, 2005 7:07 pm
Contact:

Metro class

Post 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
********************************************************************
mod harbour - Vamos a la conquista de la Web
modharbour.org

********************************************************************
User avatar
Antonio Linares
Site Admin
Posts: 37481
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Contact:

Re: Metro class

Post 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 )
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Otto
Posts: 4470
Joined: Fri Oct 07, 2005 7:07 pm
Contact:

Re: Metro class

Post by Otto »

Hello Antonio, please see screen shot 1. This is what I see for 1 sec.
Best regards,
Otto

Image

Image
********************************************************************
mod harbour - Vamos a la conquista de la Web
modharbour.org

********************************************************************
User avatar
Antonio Linares
Site Admin
Posts: 37481
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Contact:

Re: Metro class

Post 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 )
 
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Otto
Posts: 4470
Joined: Fri Oct 07, 2005 7:07 pm
Contact:

Re: Metro class

Post by Otto »

Hello Antonio,

thank you. Now it is looking good.
Best regards,
Otto
********************************************************************
mod harbour - Vamos a la conquista de la Web
modharbour.org

********************************************************************
User avatar
ukoenig
Posts: 3981
Joined: Wed Dec 19, 2007 6:40 pm
Location: Germany
Contact:

Re: Metro class

Post by ukoenig »

Working on a collection of some useful BMP's

Image

some more + added a Window-title :

Image

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

Re: Metro class

Post 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 :lol:
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.
User avatar
Andrés González
Posts: 625
Joined: Thu Jan 19, 2006 10:45 am
Location: Mallorca

Re: Metro class

Post by Andrés González »

Ukoenig send me please. Thanks

zalezalon@gmail.com
Saludos

Andrés González desde Mallorca
User avatar
Bayron
Posts: 815
Joined: Thu Dec 24, 2009 12:46 am
Location: Philadelphia, PA

Re: Metro class

Post by Bayron »

Great work as usual...

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

Re: Metro class

Post by ukoenig »

Andrés, Bayron

sended !!!

Best regards
uwe :lol:
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
richard-service
Posts: 583
Joined: Tue Oct 16, 2007 8:57 am
Location: New Taipei City, Taiwan
Contact:

Re: Metro class

Post by richard-service »

Hi
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
User avatar
Rimantas
Posts: 437
Joined: Fri Oct 07, 2005 12:56 pm
Location: Utena , Lithuania

Re: Metro class

Post 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 :lol:
Many thanks in advance ! :-) rimantasu@gmail.com
Rimantas U.
User avatar
ukoenig
Posts: 3981
Joined: Wed Dec 19, 2007 6:40 pm
Location: Germany
Contact:

Re: Metro class

Post 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 :lol:
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
dutch
Posts: 1395
Joined: Fri Oct 07, 2005 5:56 pm
Location: Thailand

Re: Metro class

Post by dutch »

Dear Uwe,

Could I have too.

Thanks&regards,
Dutch
dutchez4@gmail.com
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)
User avatar
Eroni
Posts: 71
Joined: Fri Jul 21, 2006 7:15 pm
Location: Criciuma/SC Brazil
Contact:

Re: Metro class

Post by Eroni »

Dear Uwe,

Could you send me too?

Best regards,
Eroni

eroni_americo@yahoo.com.br
FWH 1709 BCC72 MySql MariaDB
Visual Studio 2019 / Xamarin / C#
Post Reply