forked from livecode/livecode
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbottomRight.lcdoc
More file actions
44 lines (25 loc) · 2.43 KB
/
Copy pathbottomRight.lcdoc
File metadata and controls
44 lines (25 loc) · 2.43 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
Name: bottomRight
Type: property
Syntax: set the bottomRight of <object> to right,bottom
Summary: Specifies the location of the specified <object|object's> lower right corner.
Synonyms: botRight
Associations: stack,card,field,button,graphic,scrollbar,player,image
Introduced: 1.0
OS: mac,windows,linux,ios,android
Platforms: desktop,server,web,mobile
Example:
set the bottomRight of scrollbar "Master" to 400,200
Example:
set the bottomRight of field "Follower" to the mouseLoc
Value:
The <bottomRight> of an <object> is any expression that <evaluate|evaluates> to a <point> --two <integer|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.
Description:
Use the <bottomRight> <property> to change the placement of a <control> or window.
The <bottomRight> of a <stack> is in <absolute (screen) coordinates(glossary)>. The first <item> (the <right>) of a <card|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(glossary)>.
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|object's> size, set its <height>, <width>, or <rectangle> <properties>.
>*Important:* The order of the bottom and right <parameter|parameters> is reversed compared to the <property> name: right comes first, then bottom.
References: pixels (property), height (property), topRight (property), properties (property), bottom (property), width (property), stacks (function), card (keyword), item (keyword), rectangle (keyword), point (keyword), control (keyword), right (constant), stack (object), object (object), card (object), group (command), property (glossary), stack window (glossary), absolute coordinates (glossary), read-only (glossary), relative coordinates (glossary), parameter (glossary), integer (glossary), evaluate (glossary)
Tags: ui