FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour btnbmp gradient...smear
Posts: 7317
Joined: Thu Oct 18, 2012 07:17 PM
btnbmp gradient...smear
Posted: Wed Dec 28, 2022 08: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



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 (fw): Select all Collapse
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 (fw): Select all Collapse
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 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
Posts: 10733
Joined: Sun Nov 19, 2006 05:22 AM
Re: btnbmp gradient...smear
Posted: Wed Dec 28, 2022 11:53 PM

checking

Regards



G. N. Rao.

Hyderabad, India
Posts: 7317
Joined: Thu Oct 18, 2012 07:17 PM
Re: btnbmp gradient...smear
Posted: 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 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

Continue the discussion