SETBUTTONBORDER

Top  Previous  Next

Syntax

SETBUTTONBORDER(win as WINDOW,id as INT,width as int)

Description

Sets the width of a @RGNBUTTON border.

Parameters

win - Parent window or dialog containing the control.

id - Controls identifier.

width - Width of the buttons border.

Return value

None

Remarks

The allowed values for the width parameter depends on the type of @RGNBUTTON used:

-For a button with a region and 3D border (default) the width value can be 0, 1 or 2.  0 turns the border off.

-For a button with a region and @CTLBTNFLAT style the width value can be 0 to n.  0 turns the border off, n can be any size.

-For a button without a region the width value can be 0 or 1.  In other words On or Off.

 

Example usage

'button 3 is a regioned button with automatic hot tracking color
SETCONTROLCOLOR d1,BUTTON_3,RGB(255,255,255),RGB(10,100,128)
SETBUTTONRGN d1,BUTTON_3,RGNFROMBITMAP(GETSTARTPATH+"rgn_bmp2.bmp")
SETHTCOLOR d1,BUTTON_3,RGB(20,138,138)
SETBUTTONBORDER d1,BUTTON_3,2