File: gradcomdsetdropmenu.html

package info (click to toggle)
grads 3%3A2.2.1-11
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 18,396 kB
  • sloc: ansic: 61,645; sh: 10,612; makefile: 206; python: 3
file content (76 lines) | stat: -rw-r--r-- 2,395 bytes parent folder | download | duplicates (9)
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
69
70
71
72
73
74
75
76
<!--Copyright (C) 1988-2005 by the Institute of Global Environment and Society (IGES). See file COPYRIGHT for more information.-->

<html>
<head>
<title>GrADS Command: set dropmenu</title>
</head>
<body bgcolor="e0f0ff" text="#000000">

<h2><b>set dropmenu</b></h2>
<p>
Sets up the color characteristics of a dropmenu widget. The syntax is:

<p>
<code>set dropmenu <i>fc bc oc1 oc2 tfc tbc toc1 toc2 bfc bbc boc1 boc2 soc1 soc2 thick</i></code>

<p>
where:
<p>
<ul>
<code><i>fc&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</i></code>
menu base text color<br>
<code><i>bc&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</i></code>
menu base face color<br>
<code><i>oc1&nbsp;&nbsp;&nbsp;&nbsp;</i></code>
dark color of shadow outline for menu base<br>
<code><i>oc2&nbsp;&nbsp;&nbsp;&nbsp;</i></code>
bright color of shadow outline for menu base<br>
<code><i>tfc&nbsp;&nbsp;&nbsp;&nbsp;</i></code>
menu base text color when selected with a mouse click<br>
<code><i>tbc&nbsp;&nbsp;&nbsp;&nbsp;</i></code>
menu base face color when selected with a mouse click<br>
<code><i>toc1&nbsp;&nbsp;&nbsp;</i></code>
dark color of shadow outline for menu base when selected<br>
<code><i>toc2&nbsp;&nbsp;&nbsp;</i></code>
bright color of shadow outline for menu base when selected<br>
<code><i>bfc&nbsp;&nbsp;&nbsp;&nbsp;</i></code>
menu list text color<br>
<code><i>bbc&nbsp;&nbsp;&nbsp;&nbsp;</i></code>
menu list face color<br>
<code><i>boc1&nbsp;&nbsp;&nbsp;</i></code>
dark color of shadow outline for menu list<br>
<code><i>boc2&nbsp;&nbsp;&nbsp;</i></code>
bright color of shadow outline for menu list<br>
<code><i>soc1&nbsp;&nbsp;&nbsp;</i></code>
dark color of shadow outline for highlighted menu item<br>
<code><i>soc2&nbsp;&nbsp;&nbsp;</i></code>
bright color of shadow outline for highlighted menu item<br>
<code><i>thick&nbsp;&nbsp;</i></code>
thickness of the shadow outline<br>
</ul>

<p>
<h3>Usage Notes</h3>
<ol>
<li><code>set dropmenu</code> generally precedes the <a
href="gradcomddrawdropmenu.html"><code>draw dropmenu</code></a> command.
<p>
<li>See the section of the User's Guide on <a
href="script.html#widgets">widgets</a> for more information on using
dropmenus.
</ol>

<p>
<h3>Example</h3>

<p>
<pre>
set rgb 90 100 100 100
set rgb 91  50  50  50
set rgb 92 200 200 200
set dropmenu 1 90 91 92 0 90 92 91 1 90 91 92 92 91 6
draw dropmenu 1 1 8 1.5 0.5 Menu Base | Menu Item #1 | Menu Item #2 
</pre>

</body>
</html>