FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour How to disable a defined BTNBMP => oBtn:bClrGrad ???
Posts: 4043
Joined: Wed Dec 19, 2007 06:40 PM
How to disable a defined BTNBMP => oBtn:bClrGrad ???
Posted: Tue Sep 14, 2010 08:06 PM
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 :-)
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