bottomRight

Typeproperty
DictionaryLCS
LibraryLiveCode Script
Syntax
set the bottomRight of <object> to right,bottom
Synonymsbotright
Associationsstack, card, field, button, graphic, scrollbar, player, image, group
Summary

Specifies the location of the specified object's lower right corner.

Introduced1.0
OSmac, windows, linux, ios, android
Platformsdesktop, server, mobile
Example
set the bottomRight of scrollbar "Master" to 400,200
set the bottomRight of field "Follower" to the mouseLoc
Values
NameTypeDescription
Value

The bottomRight of an object is any expression that evaluates to a point --two integers separated by a comma. The first item of the bottomRight is the distance in pixels from the left edge of the screen (for stacks) or card to the right edge of the object. The second item is the distance in pixels from the top edge of the screen (for stacks) or card to the bottom edge of the object.

For cards, the bottomRight property is read-only and cannot be set.

RelatedProperty: pixels, height, topRight, properties, bottom, width
Glossary: object, property, stack window, absolute coordinates, read-only, relative coordinates, parameter, integer, evaluate
Keyword: card, item, rectangle, point, control
Constant: right
Object: stack, card
Command: group
Function: stacks
Description

Use the bottomRight property to change the placement of a control or window.

The bottomRight of a stack is in absolute (screen) coordinates. The first item (the right) of a card's bottomRight property is always the width of the stack window; the second item (the bottom) is always the height of the stack window. The bottomRight of a group or control is in relative (window) coordinates.

In window coordinates, the point 0,0 is at the top left of the stack window. In screen coordinates, the point 0,0 is at the top left of the screen.

Changing the bottomRight of an object moves it to the new position without resizing it. To change an object's size, set its height, width, or rectangle properties.

Important: The order of the bottom and right parameters is reversed compared to the property name: right comes first, then bottom.

Tagsui