This repository was archived by the owner on Aug 31, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 225
Expand file tree
/
Copy pathgRevAppIcon.lcdoc
More file actions
69 lines (49 loc) · 2.27 KB
/
gRevAppIcon.lcdoc
File metadata and controls
69 lines (49 loc) · 2.27 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
63
64
65
66
67
68
Name: gRevAppIcon
Type: keyword
Syntax: gRevAppIcon
Summary:
A special <global|global variable> that specifies the application icon
to be used on <OS X|OS X systems> with the <ask>, <ask password>, and
<answer> <command|commands>.
Introduced: 2.0
OS: mac
Platforms: desktop, server
Example:
global gRevAppIcon
Example:
put the short ID of image "Icon" into gRevAppIcon
Description:
According to Aqua user-interface standards, the application's icon
should appear in modal dialog boxes to identify which application the
dialog box belongs to. Use the <gRevAppIcon> <keyword> to specify which
<image> to use for the icon.
In the LiveCode development environment, when running on an OS X system,
the LiveCode icon is displayed in the <ask>, <ask password>, and
<answer> <dialog box|dialog boxes>. In your own applications, however,
the <application|application's> icon should appear instead.
To make the correct icon appear, create an image in one of your
application's stacks. (The image does not need to be visible, and the
stack window it's in does not need to be open. The stack file needs only
to be loaded into memory for the application to be able to use the
image.)
>*Note:* The standard size for the application icon is 64x64 <pixels>.
Make a note of the image's ID. Then, in your application, put the ID
number into the <gRevAppIcon> <global|global variable>. For example, if
the <image> <ID> is 3445, you can place the following
<statement|statements> in your <application|application's> <startup>
<handler> :
global gRevAppIcon
put "3445" into gRevAppIcon
Thereafter, the <ask>, <ask password>, and <answer> <command|commands>
will use the <image> you specified.
>*Note:* If you specify an iconType in the <answer>, <ask>, or
> <ask password> <command>, the image specified by the
> <gRevSmallAppIcon> <variable> appears instead, along with the
> standard icon specified by the iconType.
References: answer (command), ask (command), ask password (command),
dialog box (glossary), OS X (glossary), variable (glossary),
handler (glossary), global (glossary), statement (glossary),
keyword (glossary), command (glossary), application (glossary),
gRevAppIcon (keyword), gRevSmallAppIcon (keyword), image (keyword),
startup (message), pixels (property), ID (property)
Tags: windowing