forked from livecode/livecode
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbottom.lcdoc
More file actions
63 lines (45 loc) · 2.07 KB
/
Copy pathbottom.lcdoc
File metadata and controls
63 lines (45 loc) · 2.07 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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
Name: bottom
Type: property
Syntax: set the bottom of <object> to <number>
Summary:
Specifies how far an <object|object's> bottom edge is from the top of
the window or screen.
Associations: stack, card, field, button, graphic, scrollbar, player,
image, group
Introduced: 1.0
OS: mac, windows, linux, ios, android
Platforms: desktop, server, mobile
Example:
if the bottom of this stack > 600 then changeStackPlacement
Example:
set the bottom of card field 1 to the height of this stack
Value:
The <bottom> of an <object(glossary)> is an integer. A <negative>
<integer> indicates that the position is above the top of the screen or
<card> (and therefore cannot be seen). A stack's <bottom> is the
distance in <pixels> from the top edge of the screen.
A card's or control's <bottom> is the distance in <pixels> from the top
edge of the <card> to the bottom edge of the <card> or <control>.
Description:
Use the <bottom> <property> to change the vertical placement of a
<control> or window.
The <bottom> of a <stack> is in
<absolute coordinates(glossary)|absolute (screen) coordinates>.
The <bottom> of a <card> is always equal to the
height of the <stack window>; setting the <bottom> of a <card> does not
cause a <error|script error>, but it has no effect. The <bottom> of a
<group> or <control> is in
<relative coordinates(glossary)|relative (window) coordinates>.
Changing the <bottom> of an <object(glossary)> shifts it to the new
position without resizing it. To change an <object|object's> height, set
its height or <rectangle> <property>.
The <height> <property> of an <object(glossary)> is equal to its
<bottom> minus its <top>.
References: group (command), object (glossary), property (glossary),
relative coordinates (glossary), absolute coordinates (glossary),
stack window (glossary), error (glossary), negative (glossary),
card (keyword), integer (keyword), top (keyword), rectangle (keyword),
control (keyword), stack (object), pixels (property),
rectangle (property), bottomMargin (property), bottomRight (property),
bottomLeft (property), height (property), top (property)
Tags: ui