Debian Codegraph @

wdoc/syntax/displays.html

raw
1 <head>
2 <title>AceDB displays.wrm syntax</title>
3
4 <LINK rel=stylesheet type="text/css"
5 href="../wdoc.css"
6 title="Style sheet for wdoc documents">
7
8 </head>
9
10 <body>
11 <h2>AceDB displays.wrm syntax</h2>
12
13
14 <p>This file is read only at execution time by graphical
15 acedb applications. Non-graphical applications
16 (e.g. tace) ignore this file.</p>
17
18 <p>It holds the display definitions necessary to the
19 graphic interface.</p>
20
21 <p>You can freely edit this file without recompiling
22 but it must remain consistent with the other wspec files.</p>
23
24 <p>Line starting with _DDisplayType are parsed, they are expected
25 to contain a la Unix a set of -Option parameters.
26 Options for unknown DisplayTypes are ignored without
27 errors. To check the names of available displays,
28 list the members of the class 'Display' with the
29 query 'FIND Display' or 'select all class Display' (in AQL)
30 This query is not guaranteed in non-graphical acedb applications.</p>
31
32 <p>Options names can be abbreviated, recognized options are</p>
33
34 <dl>
35 <dt><code>-Title <i>text</i></code>
36 <dd> A default title for that graph, sometimes overridden
37 by the applications.
38 <dt><code>-Width <i>w</i> -Height <i>h</i> -Xposition <i>x</i> -Yposition <i>y</i></code>
39 <dd> Real numbers in the following range
40 0 < x,w < 1.3 ; 0 < y,h < 1.0
41 These fractions are relative to a window 900x900 pixels.
42 for example '-width 1.0 -height 0.5' sets the default
43 window size for the display to 900x450 pixels.
44
45 <dt><code>-Columns <i>c</i> -Rows <i>r</i></code>
46 <dd> Alternatives to <code>-Width</code> and <code>-Height</code>, the arguments are
47 in units of pixels (<code>PIXEL_*</code> type graphs) or
48 characters (<code>TEXT_*</code>) type graphs. These are most useful
49 for displays whose ideal size depends on the text
50 size. (eg main windows, keyset window...)
51
52 <dt><code>-Menu <i>text</i></code>
53 <dd> Adds this display type, under name <code><i>text</i></code>, to the
54 "Show as" menu in the KeySet window.
55 The standard options in that menu are 'Graph',
56 which chooses the configured default and 'Text'
57 which forces the tree display. This options
58 adds further items.
59
60 <dt><code> -Help <i>section</i></code>
61 <dd> The corresponding Help file in whelp/
62
63 (without the .html or .shtml file extension)
64 </dl>
65
66 <p>Displays that aren't configured in this file, the default
67 window size is 0.5 x 0.3 (450x300 pixels), title "acedb"
68 and default "help" is acedb.html, which describes the main-window.
69 The displays can be registered as the preferred display type of
70 a class in the file wspec/options.wrm.</p>
71
72
73 </body>
74 </html>