FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour Metro class
Posts: 6983
Joined: Fri Oct 07, 2005 07:07 PM
Metro class
Posted: Mon Oct 10, 2011 10:19 AM

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

Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: Metro class
Posted: Mon Oct 10, 2011 10:24 AM
Otto,

Please check that the required window style is used:
Code (fw): Select all Collapse
   DEFINE WINDOW ::oWnd STYLE nOr( WS_POPUP, WS_VISIBLE ) ;
      COLOR CLR_WHITE, RGB( 15, 109, 57 )
regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 6983
Joined: Fri Oct 07, 2005 07:07 PM
Re: Metro class
Posted: Mon Oct 10, 2011 12:42 PM
Hello Antonio, please see screen shot 1. This is what I see for 1 sec.
Best regards,
Otto



Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: Metro class
Posted: Mon Oct 10, 2011 03:28 PM
Otto,

Please try to remove the style WS_VISIBLE:

Code (fw): Select all Collapse
DEFINE WINDOW ::oWnd STYLE nOr( WS_POPUP ) ;
      COLOR CLR_WHITE, RGB( 15, 109, 57 )
regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 6983
Joined: Fri Oct 07, 2005 07:07 PM
Re: Metro class
Posted: Mon Oct 10, 2011 06:01 PM

Hello Antonio,

thank you. Now it is looking good.
Best regards,
Otto

Posts: 4043
Joined: Wed Dec 19, 2007 06:40 PM
Re: Metro class
Posted: Mon Oct 10, 2011 06:50 PM
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 (fw): Select all Collapse
// 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 :-)
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: 4043
Joined: Wed Dec 19, 2007 06:40 PM
Re: Metro class
Posted: Wed Oct 12, 2011 12:38 PM
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 :-)
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: 632
Joined: Thu Jan 19, 2006 10:45 AM
Re: Metro class
Posted: Wed Oct 12, 2011 03:25 PM

Ukoenig send me please. Thanks

zalezalon@gmail.com

Saludos



Andrés González desde Mallorca
Posts: 883
Joined: Thu Dec 24, 2009 12:46 AM
Re: Metro class
Posted: Wed Oct 12, 2011 03:45 PM

Great work as usual...

Can you please send them to me too???

My email is in my signature!!

Thanks!

=====>

Bayron Landaverry
xBasePHP.com
(215)2226600 Philadelphia,PA, USA
MayaBuilders@gMail.com
Guatemala

FWH25.06--Harbour 3.0.0--BCC7.7--UEstudio 10.10
Windows 10

FiveWin, One line of code and it's done...

Posts: 4043
Joined: Wed Dec 19, 2007 06:40 PM
Re: Metro class
Posted: Wed Oct 12, 2011 04:01 PM

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.
Posts: 866
Joined: Tue Oct 16, 2007 08:57 AM
Re: Metro class
Posted: Wed Oct 12, 2011 04:04 PM

Hi
Please send to me. richard-service at hotmail dot com

Best Regards,



Richard



Harbour 3.2.0dev (r2503251254) => Borland C++ v7.7 32bit

MySQL v8.0

Harbour 3.2.0dev (r2503251254) => Borland C++ v7.7 64bit
Posts: 437
Joined: Fri Oct 07, 2005 12:56 PM
Re: Metro class
Posted: Wed Oct 12, 2011 04:10 PM
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
Rimantas U.
Posts: 4043
Joined: Wed Dec 19, 2007 06:40 PM
Re: Metro class
Posted: Wed Oct 12, 2011 07:52 PM
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 :-)
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: 1598
Joined: Fri Oct 07, 2005 05:56 PM
Re: Metro class
Posted: Fri Oct 14, 2011 08:12 PM

Dear Uwe,

Could I have too.

Thanks&regards,
Dutch

dutchez4@gmail.com

Regards,

Dutch



FWH 2304 / 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)
Posts: 114
Joined: Fri Jul 21, 2006 07:15 PM
Re: Metro class
Posted: Fri Oct 14, 2011 09:08 PM

Dear Uwe,

Could you send me too?

Best regards,
Eroni

eroni_americo@yahoo.com.br

FWH / xHarbour / BCC / MySql

Visual Studio / Harbour / DotNet Maui / C#