roundRect | |
Type | keyword |
Dictionary | LCS |
Library | LiveCode Script |
Syntax |
|
Synonyms | round rect,round rectangle,roundrectangle |
Summary | Specifies that a button or graphic is shaped like a rectangle with rounded corners. It also designates the paint tool used to draw rounded-corner rectangles. |
Introduced | 1.0 |
OS | mac, windows, linux, ios, android |
Platforms | desktop, server, mobile |
Example |
|
Related | Keyword: button, graphic Property: style, brushColor, properties, penColor, brushPattern Command: choose Object: graphic Glossary: keyword, property, paint tool |
Description | Use the roundRect keyword to paint a rounded rectangle or square with the penColor or to change a graphic or button to a rounded rectangle shape. When using the Round Rectangle tool, the cursor is a crosshairs shape (over stack windows) or an arrow (anywhere else). This tool is used to draw a rounded rectangle or square in the penColor, filled with the brushColor (or brushPattern). If you try to paint with the Round 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 button or graphic to roundRect makes the graphic into a rounded rectangle. Rounded rectangle graphics, unlike painted rounded rectangles, can be changed and reshaped: use the height and width properties to change the shape and size.
|
Tags | ui |