forked from livecode/livecode
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdesktopChanged.lcdoc
More file actions
40 lines (27 loc) · 1.02 KB
/
Copy pathdesktopChanged.lcdoc
File metadata and controls
40 lines (27 loc) · 1.02 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
Name: desktopChanged
Type: message
Syntax: desktopChanged
Summary:
Sent to the current card of the defaultStack whenever the <screenRect>
<function> changes.
Associations: card
Introduced: 2.7
OS: mac, windows
Platforms: desktop
Example:
on desktopChanged
-- Check stack is still on screen or resize your stack appropriately
end desktopChanged
Description:
Handle the <desktopChanged> message to rearrange or reconfigure your
layout when the user changes their screen size or layout.
As the <desktopChanged> message can be sent by the OS at any time, it is
recommended that you handle the message in the main-stack of your
application.
>*Note:* The LiveCode IDE broadcasts the <desktopChanged> message to
> all main stacks that are currently open at the time the engine
> receives the notification from the OS - this is to improve consistency
> with behaviour in standalone applications.
References: screenRect (function), function (glossary),
resizeStack (message), screenMouseLoc (property),
windowBoundingRect (property)