btnbmp gradient...smear

btnbmp gradient...smear

Postby Silvio.Falconi » Wed Dec 28, 2022 8:32 pm

i have a problem with btnbmp control
I would like the gadient to stay within the limits of the border and not smear outside

Image

I believe that there is a bug inside the Btnbmp PaintBorder method that is to say when the button is not pressed it works well, if instead it is pressed it colors the outside of the button border with the gradient color.

Code: Select all  Expand view  RUN
LOCAL bGrad2 := { |lInvert| If( !lInvert, 0xE6E6E6, 0xB7D59F ) }

 @ 140,510 BTNBMP oGenera3 PROMPT  "Genera" of oDlg  SIZE 80,26 FLAT NOROUND;
    FILENAME ".\bitmaps\editor\genera.png" LEFT;
    ACTION NIL

oGenera3:bClrGrad:= bGrad2


I tried also to set the agradRect with

Code: Select all  Expand view  RUN
oGenera3:aGradRect:={ 0.5, 0.5,oGenera3:nHeight-0.1, oGenera3:nWidth }


but I have not had satisfactory results
Since from 1991/1992 ( fw for clipper Rel. 14.4 - Momos)
I use : FiveWin for Harbour November 2023 - January 2024 - Harbour 3.2.0dev (harbour_bcc770_32_20240309) - Bcc7.70 - xMate ver. 1.15.3 - PellesC - mail: silvio[dot]falconi[at]gmail[dot]com
User avatar
Silvio.Falconi
 
Posts: 7068
Joined: Thu Oct 18, 2012 7:17 pm

Re: btnbmp gradient...smear

Postby nageswaragunupudi » Wed Dec 28, 2022 11:53 pm

checking
Regards

G. N. Rao.
Hyderabad, India
User avatar
nageswaragunupudi
 
Posts: 10646
Joined: Sun Nov 19, 2006 5:22 am
Location: India

Re: btnbmp gradient...smear

Postby Silvio.Falconi » Sun Jan 01, 2023 11:40 pm

do U found a solution ?
Since from 1991/1992 ( fw for clipper Rel. 14.4 - Momos)
I use : FiveWin for Harbour November 2023 - January 2024 - Harbour 3.2.0dev (harbour_bcc770_32_20240309) - Bcc7.70 - xMate ver. 1.15.3 - PellesC - mail: silvio[dot]falconi[at]gmail[dot]com
User avatar
Silvio.Falconi
 
Posts: 7068
Joined: Thu Oct 18, 2012 7:17 pm


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: Marc Venken and 67 guests