rectangle

Typekeyword
DictionaryLCS
LibraryLiveCode Script
Syntax
rectangle
Synonymsrect
Summary

Specifies that a button, field, or graphic object is shaped like a rectangle. It also designates the paint tool used to draw rectangles and squares.

Introduced1.0
OSmac, windows, linux, ios, android
Platformsdesktop, server, mobile
Example
choose rectangle tool
set the style of button ID 3 to rectangle
RelatedKeyword: field, graphic
Property: width, brushColor, height, properties, penColor, brushPattern
Command: choose
Object: button, graphic
Glossary: object, keyword, paint tool
Description

Use the rectangle keyword to paint a rectangle or square with the penColor or to change a graphic to a rectangle shape.

When using the Rectangle tool, the cursor is a crosshairs shape (over stack windows) or an arrow (anywhere else). This tool is used to draw a rectangle or square in the penColor, filled with the brushColor (or brushPattern).

If you try to paint with the Rectangle tool on a card that has no images, an image the size of the card is created to hold the painting. If the current card already has one or more images, painting outside the image has no effect.

Setting the style of a graphic to rectangle makes the graphic into a rectangle. Rectangle graphics, unlike painted rectangles, can be changed and reshaped: use the height and width properties to change the shape and size of the rectangle.

Setting the style of a field or button to rectangle a/makes it a rectangle shape.

Tagsui