why is the border of the buttons smaller than the buttons themselves? How can I change the color of the buttonbar?

code

code
function XbrSetupBar( oBrw )
local oCursorBtn :=TCursor():New(,'HAND')
oBrw:nTopBarHeight := 42
oBrw:bOnAdjust := <||
local oBtnBar[3]
@ 05,05 BTNBMP oBtnBar[1] FILE "MOD_NUOVO" SIZE 40,30 PIXEL OF oBrw NOBORDER ;
ACTION oBrw:EditSource( .t. ) TOOLTIP "Add New Record"
@ 05,45 BTNBMP oBtnBar[2] FILE "MOD_MODIFICA" SIZE 40,30 PIXEL OF oBrw NOBORDER ;
ACTION oBrw:EditSource() TOOLTIP "Edit this record"
@ 05,85 BTNBMP oBtnBar[3] FILE "MOD_CANCELLA" SIZE 40,30 PIXEL OF oBrw NOBORDER ;
ACTION If( MsgNoYes( "Delete this row?" ),,oBrw:Delete() ) TOOLTIP "Delete This Record"
For n= 1 to 3
oBtnBar[n]:bClrGrad = { | lInvert | If( ! lInvert,;
{ { 1, RGB( 225, 225, 225 ), RGB( 225, 225, 225 ) } },;
{ { 1, RGB( 229,241,251 ), RGB( 229,241,251 ) } } ) }
oBtnBar[n]:nClrBorder := nRgb(218,214,179)
oBtnBar[n]:oCursor:= oCursorBtn
next
return nil
>
return nilSince 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