FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour How to switch between SkinButton and Normal- Style ?
Posts: 4043
Joined: Wed Dec 19, 2007 06:40 PM
How to switch between SkinButton and Normal- Style ?
Posted: Thu Jan 14, 2010 07:51 PM

Hello,

because I included all possible Buttonbar- and Button-settings in one Tool,
I have to disable a defined SkinButton-Style and switch back to normal Buttons.
Once a Skin is defined, I cannot end it.
I tested < oSkinB = TSkinButton():New() > with no values and < oSkinB:End() > does not exists,
but impossible to disable a once defined SkinButton.
< SetSkinBtnDefaultClrs() > is a Skin as well.
In the old Tool-Version I didn't need it, because there was no other Button-Style.
How can I switch between two Styles at Runtime going back to normal Button-Style ?

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: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: How to switch between SkinButton and Normal- Style ?
Posted: Thu Jan 14, 2010 11:37 PM

Uwe,

We have tried to switch back from skinned to normal but it does not work properly yet

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 4043
Joined: Wed Dec 19, 2007 06:40 PM
Re: How to switch between SkinButton and Normal- Style ?
Posted: Sat Jan 16, 2010 01:42 PM
Antonio,

my Solution for the Moment : using a Reset-Skin with the Basic-Colors for switching between
the Application-parts.
It works but I noticed, that on Mouse-Move on a NON-Focused Button,
the Gradient is white. Maybe something missing ?

My Reset-Skin :
Code (fw): Select all Collapse
FUNCTION BASIC_SKIN()

oNewSkin :=  TSkinButton():New()

oNewSkin:nClrBorder0_N := 15790320
oNewSkin:nClrBorder1_N := 13816530

// New Normal Color
oNewSkin:aClrNormal  := { { 0.5, 15724527, 15724527 }, ;
     { 0.5, 14211288, 14211288 } }
// New Focus Color
oNewSkin:aClrFocused  := { { 0.5, 16577764, 16577764 }, ;
     { 0.5, 16309935, 16309935 } }
// New Press Color
oNewSkin:aClrPressed := { { 0.5, 16445144, 16445144 }, ;
     { 0.5, 14662002, 14662002 } }

SkinButtons( oNewSkin )

RETURN( NIL )








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.

Continue the discussion