FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour Creating Userdefined Metro-styles ( Download )
Posts: 4043
Joined: Wed Dec 19, 2007 06:40 PM
Creating Userdefined Metro-styles ( Download )
Posted: Wed May 16, 2012 10:48 PM
Hello,

I finished the Part of the Metro-toolkit, to make it possible,
to create a complete Metro-panel from a DBF-file-record.
A user can change the given Design to his own Taste.
There will be a second ( Mini ) -version ( delivered to the Customer ),
because we don't want that the User can add / delete a Button
only changing the given Design.
The original design is defined inside the 1. record ( can be protected )
Record 2- 9 are User defined ( copys of record 1 ).
The wanted Template to be loaded, is defined inside a Ini-file.
A missing Template-dbf will use the definded Metro-original inside Your Application ( there is no risk ).
There are 10 possible Designs with 30 Buttons each( far enaugh )
Edit-modes : the complete Panel or a selected single Button.

The user can change :

1. Fonts ( Title, Caption and Bodytext )
2. Colors
3. Images ( Buttons )
4. Text ( Title, caption and body )
5. Background ( Buttons )
6. Large / small
7. Button-size
8. Background of the Mainwindow


Because there is a lot to explain, I will add the needed Informations this Weekend.



The User-selection



Your Original



Repainted from User



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: User defined Metro-styles ( Download )
Posted: Fri May 18, 2012 02:48 PM
I finished the Customer-part.
Now You can switch between Your defined Style inside Your Appl. and
User defined Styles loaded from a DBF.
Everything is included, to add this Solution inside Your own Application.
Images, recompile ....
I would like to make the DBF-loading part smaller, any changes / optimizations are welcome.
To create / change the User-Templates, You will need the coming Main-tool-update.

The next Step to complete it, will show a extended Version : working with the Editor and shows the needed changes of a included copy of < TMetropnl.prg >
You need TMetropnl.prg !!!. Only the Changes will be shown.

Download ( 8.2 MB )
http://www.pflegeplus.com/fw_downloads/usermtr.zip



Styles changed from User :



The coming extended Editor-version ( will be the version, that can be delivered to Your Customer ) :
Complete Source included ( without TMetropnl.prg )



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: 14
Joined: Thu Nov 11, 2010 03:02 PM
Re: Creating Userdefined Metro-styles ( Download )
Posted: Fri May 18, 2012 06:09 PM

Very nice work, but where is the metropnl.ch
J.fmagalhaes

Posts: 4043
Joined: Wed Dec 19, 2007 06:40 PM
Re: Creating Userdefined Metro-styles ( Download )
Posted: Fri May 18, 2012 06:27 PM
It is up the FWH-release, if MetroPanel is included / supported.

Released => October 2011
============
* New: New class TMetroPanel.Prg
Extended functionality, multiple metro panels, with inbuilt design and code generation facilities.
Please see samples\metrptst.prg for usage and functionality

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: 14
Joined: Thu Nov 11, 2010 03:02 PM
Re: Creating Userdefined Metro-styles ( Download )
Posted: Sun May 20, 2012 12:50 PM

Sorry. My version is FWH12.04. Thank you
jose magalhaes

Posts: 6983
Joined: Fri Oct 07, 2005 07:07 PM
Re: Creating Userdefined Metro-styles ( Download )
Posted: Fri Jan 25, 2013 08:45 AM

Hello Uwe,
I am looking at your UserMtr.
Thank you for your designer.
I noticed that the buttons in WINDOWS 8 become a little smaller on “ON CLICK”.
Do you think this is possible in Fivewin too.
Best regards,
Otto

Posts: 4043
Joined: Wed Dec 19, 2007 06:40 PM
Re: Creating Userdefined Metro-styles ( Download )
Posted: Fri Jan 25, 2013 12:43 PM

Hello Otto,

I'm planning some more work on this tool.
If it is possible to get a animated ( resized ) - effect on
button-click, I still have to find out.
Best Regards
Uwe :roll:

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: 6983
Joined: Fri Oct 07, 2005 07:07 PM
Re: Creating Userdefined Metro-styles ( Download )
Posted: Mon Jan 28, 2013 10:32 AM

Hello Uwe,
do you think this behavior must be changed in btnbmp.prg.
Best regards,

Otto

Posts: 10733
Joined: Sun Nov 19, 2006 05:22 AM
Re: Creating Userdefined Metro-styles ( Download )
Posted: Mon Jan 28, 2013 10:55 AM
Otto wrote:Hello Uwe,
do you think this behavior must be changed in btnbmp.prg.
Best regards,

Otto

This feature was introduced in fwh btnbmp.prg and later taken out.
Since we use flatbtns for windows 8 look, we may introduce this for flatbtns?
Regards



G. N. Rao.

Hyderabad, India
Posts: 6983
Joined: Fri Oct 07, 2005 07:07 PM
Re: Creating Userdefined Metro-styles ( Download )
Posted: Mon Jan 28, 2013 11:09 AM

Dear Mr. Rao,
can you tell me when this changed.
The latest code I have from petropnl.prg shows that it inherits from TBtnBmp.
In original WINDOWS 8 if you click on a tile ( button ) the tile becomes a little bit smaller.

Best regards,
Otto

CLASS TMetroBtn FROM TBtnBmp

Posts: 10733
Joined: Sun Nov 19, 2006 05:22 AM
Re: Creating Userdefined Metro-styles ( Download )
Posted: Mon Jan 28, 2013 05:37 PM

Mr Otto

We shall provide this feature soon in FWH for metropanel

Regards



G. N. Rao.

Hyderabad, India

Continue the discussion