Futurebasic/Language/Reference/def btnrect

= DEF BTNRECT Statement =

Statement
✔ Appearance ✔ Standard ✔ Console

Description
If  is the ID number of a button or scroll bar in the current window, then this statement returns the button's (or scroll bar's) bounding rectangle into   (which should be an 8-byte variable such as a   type), or into the 8 bytes starting at address. A button's ID number is assigned by the  statement; a scroll bar's ID number is assigned by the   statement.

Example
image res/cd.gif

Note
If the specified button does not exist, then the rectangle (0,0)-(0,0) is returned.