Error getting tags :
error 404Error getting tags :
error 404 rectangle | revDocs | RunRev
Welcome Guest (Log in)
Product Edition
Version
rectangle
Basics
Expander triangle
Type
Keyword
Syntax
Introduced
1.0
Environment
Desktop, Web and Server
Platform Support
MacOS,Mac OS X,Windows,Linux
Security
None required
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.
Examples

choose rectangle tool
set the style of button ID 3 to rectangle

Additional Comments
Expander triangle

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

Comments:

When using the Rectangle tool, the cursor is a crosshairs shape (over images) 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 makes it a rectangle shape.

User Comments
Expander triangle
User thumbnail
Oliver Kenyon
StarStarStarStarStar
Jan 11, 2010
Be aware that the revTalk paint tools depend on the values of a number of global properties. This can often cause differences in the output between your running application and what you saw in the Revolution IDE.
When drawing rectangles, use these three lines of code to make the rectangle look the same in the standalone as in the IDE:


-- Set global paint properties to match IDE defaults
set the lineSize to 1
set the brushColor to "255,255,255"
set the filled to true