Jump to content

Futurebasic/Language/Reference/def btnrect

From Wikibooks, open books for an open world

DEF BTNRECT Statement

[edit | edit source]

DEF BTNRECT

[edit | edit source]

Statement

[edit | edit source]

✔ Appearance ✔ Standard ✔ Console

Syntax

[edit | edit source]

DEF BTNRECT({rect | #rectAddr&}, buttonID%)

Description

[edit | edit source]

If buttonID% 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 rect (which should be an 8-byte variable such as a RECT type), or into the 8 bytes starting at address rectAddr&. A button's ID number is assigned by the BUTTON statement; a scroll bar's ID number is assigned by the SCROLL BUTTON statement.

Example

[edit | edit source]

image res/cd.gif CD Example: DEF BTNRECT.BAS

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

See Also

[edit | edit source]

BUTTON statement; BUTTON&; DIALOG statement