Hello,
testing the new Visual Buttonpainter, I must switch back from oBtn:bClrGrad to oBtn:l2007 := .T.
To do this, I attempted to disable => oBtn:bClrGrad to activate Style 2007 again.
I can switch between :
1. Style 2007, Transparent and Brush.
2. Gradient, Transparent and Brush.
But not between Gradient/Color and Style 2007 ( MAYBE NOT POSSIBLE AT RUNTIME ).
My Test :
1. I painted a Gradient-Button.
A Button-Click writes the Button-Source like :
selected Font, Size, Style and 2 Gradient-Arrays ( normal and Mouse-Caption ) :

2. I selected Button-Style 2007 :

Everything works fine at Runtime, switching between different Styles, BMP-Positions and new Fonts,
but I getting a Error, trying to disable with oBtn:bClrGrad := NIL or oBtn:bClrGrad := .F., to select Style 2007

The Error comes from here : Line 175 Class BTNBMP :
METHOD aGrad() INLINE Eval( If( ::bClrGrad == nil,;
::bClrGrad, ::bClrGrad ), ::lMOver )

I tested also oBtn:bClrGrad := .F. , to disable the Gradient

Best regards
Uwe
testing the new Visual Buttonpainter, I must switch back from oBtn:bClrGrad to oBtn:l2007 := .T.
To do this, I attempted to disable => oBtn:bClrGrad to activate Style 2007 again.
I can switch between :
1. Style 2007, Transparent and Brush.
2. Gradient, Transparent and Brush.
But not between Gradient/Color and Style 2007 ( MAYBE NOT POSSIBLE AT RUNTIME ).
My Test :
1. I painted a Gradient-Button.
A Button-Click writes the Button-Source like :
selected Font, Size, Style and 2 Gradient-Arrays ( normal and Mouse-Caption ) :

2. I selected Button-Style 2007 :

Everything works fine at Runtime, switching between different Styles, BMP-Positions and new Fonts,
but I getting a Error, trying to disable with oBtn:bClrGrad := NIL or oBtn:bClrGrad := .F., to select Style 2007

The Error comes from here : Line 175 Class BTNBMP :
METHOD aGrad() INLINE Eval( If( ::bClrGrad == nil,;
::bClrGrad, ::bClrGrad ), ::lMOver )

I tested also oBtn:bClrGrad := .F. , to disable the Gradient

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.