One of my applications (Pos system) draws user defined buttons , mainly 2 or 3 lines of text with selected colors for each button
I an using tsbutton for that , no problem
I want to give a better look with gradient effect to the buttons and unfortunately i can not get them to work. I have seen Uwe's buttons designed and they look very nice. I downloaded the tools and tried to do the same without reult so far. Can anyone help ?
I tried the 3 classes, Tbtnbmp, Tbuttonbmp, and Tbutton ? my buttons are redefined from resources
Please note that my application uses skinbuttons , is this compatible ?
Thanks for your time,
Here is the code
- Code: Select all Expand view
// DOLDC is the user selected colour
DBLUE := INT(NRGBBLUE(DOLDC) * 0.9) // retreive the blue from user's selected colour
DGREEN := INT(NRGBGREEN(DOLDC) * 0.9)
DRED := INT(NRGBRED(DOLDC) * 0.9)
DNEWC := nRgb(DRED,DGREEN, DBLUE)
TOBJ[I]:bClrGrad := { | lInvert | If( lInvert, ;
{ { 0.67, DOLDC, DNEWC }, { 0.67, DNEWC, DOLDC } }, ;
{ { 0.50, 128,DNEWC }, { 0.50,DNEWC, 128 } } ) }