Skip to main content
Version: Streamsheets 2.5

DRAW.BUTTON

Define a graphical button on a given drawing.

Syntax

=DRAW.BUTTON(X, Y, Width, Height, [LineColor], [FillColor], [Angle], Label, [Value])

Arguments

NameDescription
XX Coordinate in 1/100th mm
YY Coordinate in 1/100th mm
WidthWidth in 1/100th mm
HeightHeight in 1/100th mm
LineColor (optional)Options:
- None for no line
- Hexadecimal color value (#FF0000 for Red)
FillColor (optional)Hexadecimal color value ("#FF0000" for Red)
Angle (optional)Angle in radians.
LabelLabel to display
Value (optional)Current state of the button. TRUE for pushed and FALSE for released. If a cell reference is used, a value change from user interaction will be pushed into that cell.

Return

TRUE, if button could be created.

Hint

This function should not be used in a cell

Examples

FormulaResultComment
=DRAW.BUTTON(5801,20056,5292,3625,,,,"Button",A1)
TRUEA button with "Button" as label. A1 turns TRUE as long as the button is pressed.