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

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.
I tried also to set the agradRect with
but I have not had satisfactory results
I would like the gadient to stay within the limits of the border and not smear outside

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.
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:= bGrad2oGenera3:aGradRect:={ 0.5, 0.5,oGenera3:nHeight-0.1, oGenera3:nWidth }Since from 1991/1992 ( fw for clipper Rel. 14.4 - Momos)
I use : FiveWin for Harbour March-April 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
I use : FiveWin for Harbour March-April 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