arcadia 0.1.1 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- data/README +126 -123
- data/arcadia.rb +770 -756
- data/base/a-contracts.rb +130 -93
- data/base/a-ext.rb +280 -280
- data/base/a-libs.rb +5 -11
- data/base/a-utils.rb +235 -44
- data/conf/arcadia.conf +20 -16
- data/conf/arcadia.init.rb +0 -0
- data/conf/arcadia.res.rb +74 -0
- data/ext/ae-complete-code/ae-complete-code.conf +0 -0
- data/ext/ae-complete-code/ae-complete-code.rb +80 -79
- data/ext/ae-debug/ae-debug.conf +0 -0
- data/ext/ae-debug/ae-debug.rb +2 -6
- data/ext/ae-debug/debug1.57.rb +0 -0
- data/ext/ae-doc-code/ae-doc-code.conf +15 -0
- data/ext/ae-doc-code/ae-doc-code.rb +289 -0
- data/ext/ae-editor/ae-editor.conf +17 -8
- data/ext/ae-editor/ae-editor.rb +738 -396
- data/ext/ae-event-log/ae-event-log.conf +0 -0
- data/ext/ae-event-log/ae-event-log.rb +0 -0
- data/ext/ae-file-history/ae-file-history.conf +2 -2
- data/ext/ae-file-history/ae-file-history.rb +286 -290
- data/ext/ae-inspector/ae-inspector.conf +0 -0
- data/ext/ae-inspector/ae-inspector.rb +0 -0
- data/ext/ae-output-event/ae-output-event.conf +2 -2
- data/ext/ae-output/ae-output.conf +2 -2
- data/ext/ae-output/ae-output.rb +173 -178
- data/ext/ae-palette/ae-palette.conf +0 -0
- data/ext/ae-palette/ae-palette.rb +0 -0
- data/ext/ae-shell/ae-shell.conf +0 -0
- data/ext/ae-shell/ae-shell.rb +54 -54
- data/lib/tk/al-tk.rb +3076 -3082
- data/lib/tk/al-tk.res.rb +0 -0
- data/lib/tk/al-tkarcadia.rb +0 -0
- data/lib/tk/al-tkcustom.rb +0 -0
- data/lib/tkext/al-bwidget.rb +0 -0
- data/lib/tkext/al-iwidgets.rb +0 -0
- data/lib/tkext/al-tile.rb +0 -0
- data/lib/tkext/al-tktable.rb +0 -0
- data/tcl/BWidget-1.8.0/BWman/ArrowButton.html +276 -0
- data/tcl/BWidget-1.8.0/BWman/BWidget.html +228 -0
- data/tcl/BWidget-1.8.0/BWman/Button.html +273 -0
- data/tcl/BWidget-1.8.0/BWman/ButtonBox.html +264 -0
- data/tcl/BWidget-1.8.0/BWman/ComboBox.html +402 -0
- data/tcl/BWidget-1.8.0/BWman/Dialog.html +314 -0
- data/tcl/BWidget-1.8.0/BWman/DragSite.html +139 -0
- data/tcl/BWidget-1.8.0/BWman/DropSite.html +254 -0
- data/tcl/BWidget-1.8.0/BWman/DynamicHelp.html +248 -0
- data/tcl/BWidget-1.8.0/BWman/Entry.html +341 -0
- data/tcl/BWidget-1.8.0/BWman/Label.html +331 -0
- data/tcl/BWidget-1.8.0/BWman/LabelEntry.html +194 -0
- data/tcl/BWidget-1.8.0/BWman/LabelFrame.html +144 -0
- data/tcl/BWidget-1.8.0/BWman/ListBox.html +678 -0
- data/tcl/BWidget-1.8.0/BWman/MainFrame.html +283 -0
- data/tcl/BWidget-1.8.0/BWman/MessageDlg.html +218 -0
- data/tcl/BWidget-1.8.0/BWman/NoteBook.html +374 -0
- data/tcl/BWidget-1.8.0/BWman/PagesManager.html +180 -0
- data/tcl/BWidget-1.8.0/BWman/PanedWindow.html +142 -0
- data/tcl/BWidget-1.8.0/BWman/PanelFrame.html +153 -0
- data/tcl/BWidget-1.8.0/BWman/PasswdDlg.html +214 -0
- data/tcl/BWidget-1.8.0/BWman/ProgressBar.html +152 -0
- data/tcl/BWidget-1.8.0/BWman/ProgressDlg.html +145 -0
- data/tcl/BWidget-1.8.0/BWman/ScrollView.html +130 -0
- data/tcl/BWidget-1.8.0/BWman/ScrollableFrame.html +191 -0
- data/tcl/BWidget-1.8.0/BWman/ScrolledWindow.html +116 -0
- data/tcl/BWidget-1.8.0/BWman/SelectColor.html +164 -0
- data/tcl/BWidget-1.8.0/BWman/SelectFont.html +152 -0
- data/tcl/BWidget-1.8.0/BWman/Separator.html +77 -0
- data/tcl/BWidget-1.8.0/BWman/SpinBox.html +250 -0
- data/tcl/BWidget-1.8.0/BWman/StatusBar.html +147 -0
- data/tcl/BWidget-1.8.0/BWman/TitleFrame.html +107 -0
- data/tcl/BWidget-1.8.0/BWman/Tree.html +947 -0
- data/tcl/BWidget-1.8.0/BWman/Widget.html +502 -0
- data/tcl/BWidget-1.8.0/BWman/contents.html +84 -0
- data/tcl/BWidget-1.8.0/BWman/index.html +7 -0
- data/tcl/BWidget-1.8.0/BWman/navtree.html +41 -0
- data/tcl/BWidget-1.8.0/BWman/options.htm +458 -0
- data/tcl/BWidget-1.8.0/CHANGES.txt +266 -0
- data/tcl/BWidget-1.8.0/ChangeLog +1641 -0
- data/tcl/BWidget-1.8.0/LICENSE.txt +41 -0
- data/tcl/BWidget-1.8.0/README.txt +127 -0
- data/tcl/BWidget-1.8.0/arrow.tcl +551 -0
- data/tcl/BWidget-1.8.0/bitmap.tcl +94 -0
- data/tcl/BWidget-1.8.0/button.tcl +324 -0
- data/tcl/BWidget-1.8.0/buttonbox.tcl +403 -0
- data/tcl/BWidget-1.8.0/color.tcl +493 -0
- data/tcl/BWidget-1.8.0/combobox.tcl +809 -0
- data/tcl/BWidget-1.8.0/demo/basic.tcl +199 -0
- data/tcl/BWidget-1.8.0/demo/bwidget.xbm +46 -0
- data/tcl/BWidget-1.8.0/demo/demo.tcl +212 -0
- data/tcl/BWidget-1.8.0/demo/dnd.tcl +42 -0
- data/tcl/BWidget-1.8.0/demo/manager.tcl +141 -0
- data/tcl/BWidget-1.8.0/demo/select.tcl +59 -0
- data/tcl/BWidget-1.8.0/demo/tmpldlg.tcl +214 -0
- data/tcl/BWidget-1.8.0/demo/tree.tcl +260 -0
- data/tcl/BWidget-1.8.0/demo/x1.xbm +2258 -0
- data/tcl/BWidget-1.8.0/dialog.tcl +345 -0
- data/tcl/BWidget-1.8.0/dragsite.tcl +197 -0
- data/tcl/BWidget-1.8.0/dropsite.tcl +455 -0
- data/tcl/BWidget-1.8.0/dynhelp.tcl +625 -0
- data/tcl/BWidget-1.8.0/entry.tcl +469 -0
- data/tcl/BWidget-1.8.0/font.tcl +566 -0
- data/tcl/BWidget-1.8.0/images/bold.gif +0 -0
- data/tcl/BWidget-1.8.0/images/copy.gif +0 -0
- data/tcl/BWidget-1.8.0/images/cut.gif +0 -0
- data/tcl/BWidget-1.8.0/images/dragfile.gif +0 -0
- data/tcl/BWidget-1.8.0/images/dragicon.gif +0 -0
- data/tcl/BWidget-1.8.0/images/error.gif +0 -0
- data/tcl/BWidget-1.8.0/images/file.gif +0 -0
- data/tcl/BWidget-1.8.0/images/folder.gif +0 -0
- data/tcl/BWidget-1.8.0/images/hourglass.gif +0 -0
- data/tcl/BWidget-1.8.0/images/info.gif +0 -0
- data/tcl/BWidget-1.8.0/images/italic.gif +0 -0
- data/tcl/BWidget-1.8.0/images/minus.xbm +5 -0
- data/tcl/BWidget-1.8.0/images/new.gif +0 -0
- data/tcl/BWidget-1.8.0/images/opcopy.xbm +5 -0
- data/tcl/BWidget-1.8.0/images/open.gif +0 -0
- data/tcl/BWidget-1.8.0/images/openfold.gif +0 -0
- data/tcl/BWidget-1.8.0/images/oplink.xbm +5 -0
- data/tcl/BWidget-1.8.0/images/opmove.xbm +5 -0
- data/tcl/BWidget-1.8.0/images/overstrike.gif +0 -0
- data/tcl/BWidget-1.8.0/images/palette.gif +0 -0
- data/tcl/BWidget-1.8.0/images/passwd.gif +0 -0
- data/tcl/BWidget-1.8.0/images/paste.gif +0 -0
- data/tcl/BWidget-1.8.0/images/plus.xbm +5 -0
- data/tcl/BWidget-1.8.0/images/print.gif +0 -0
- data/tcl/BWidget-1.8.0/images/question.gif +0 -0
- data/tcl/BWidget-1.8.0/images/redo.gif +0 -0
- data/tcl/BWidget-1.8.0/images/save.gif +0 -0
- data/tcl/BWidget-1.8.0/images/target.xbm +9 -0
- data/tcl/BWidget-1.8.0/images/underline.gif +0 -0
- data/tcl/BWidget-1.8.0/images/undo.gif +0 -0
- data/tcl/BWidget-1.8.0/images/warning.gif +0 -0
- data/tcl/BWidget-1.8.0/init.tcl +40 -0
- data/tcl/BWidget-1.8.0/label.tcl +271 -0
- data/tcl/BWidget-1.8.0/labelentry.tcl +100 -0
- data/tcl/BWidget-1.8.0/labelframe.tcl +160 -0
- data/tcl/BWidget-1.8.0/lang/da.rc +52 -0
- data/tcl/BWidget-1.8.0/lang/de.rc +52 -0
- data/tcl/BWidget-1.8.0/lang/en.rc +52 -0
- data/tcl/BWidget-1.8.0/lang/es.rc +53 -0
- data/tcl/BWidget-1.8.0/lang/fr.rc +52 -0
- data/tcl/BWidget-1.8.0/listbox.tcl +1638 -0
- data/tcl/BWidget-1.8.0/mainframe.tcl +711 -0
- data/tcl/BWidget-1.8.0/messagedlg.tcl +128 -0
- data/tcl/BWidget-1.8.0/notebook.tcl +1164 -0
- data/tcl/BWidget-1.8.0/pagesmgr.tcl +294 -0
- data/tcl/BWidget-1.8.0/panedw.tcl +381 -0
- data/tcl/BWidget-1.8.0/panelframe.tcl +246 -0
- data/tcl/BWidget-1.8.0/passwddlg.tcl +178 -0
- data/tcl/BWidget-1.8.0/pkgIndex.tcl +47 -0
- data/tcl/BWidget-1.8.0/progressbar.tcl +208 -0
- data/tcl/BWidget-1.8.0/progressdlg.tcl +87 -0
- data/tcl/BWidget-1.8.0/scrollframe.tcl +226 -0
- data/tcl/BWidget-1.8.0/scrollview.tcl +254 -0
- data/tcl/BWidget-1.8.0/scrollw.tcl +280 -0
- data/tcl/BWidget-1.8.0/separator.tcl +75 -0
- data/tcl/BWidget-1.8.0/spinbox.tcl +331 -0
- data/tcl/BWidget-1.8.0/statusbar.tcl +422 -0
- data/tcl/BWidget-1.8.0/tests/entry.test +173 -0
- data/tcl/BWidget-1.8.0/titleframe.tcl +170 -0
- data/tcl/BWidget-1.8.0/tree.tcl +2228 -0
- data/tcl/BWidget-1.8.0/utils.tcl +645 -0
- data/tcl/BWidget-1.8.0/widget.tcl +1576 -0
- data/tcl/BWidget-1.8.0/wizard.tcl +1028 -0
- data/tcl/BWidget-1.8.0/xpm2image.tcl +115 -0
- metadata +141 -5
@@ -0,0 +1,283 @@
|
|
1
|
+
<HTML>
|
2
|
+
<HEAD><TITLE>MainFrame</TITLE></HEAD>
|
3
|
+
<BODY BGCOLOR=white>
|
4
|
+
<DL><DT><I><A HREF="#descr">NAME</A></I></DT>
|
5
|
+
<DD><B>MainFrame</B>
|
6
|
+
- Manage toplevel with menu, toolbar and statusbar
|
7
|
+
</DD></DL>
|
8
|
+
<DL>
|
9
|
+
<DT><I>CREATION</I></DT>
|
10
|
+
<DD><A HREF="#descr"><B>MainFrame</B></A> <I>pathName</I> ?<I>option value...</I>?</DD>
|
11
|
+
</DL>
|
12
|
+
<DL>
|
13
|
+
<DT><I><A HREF="ProgressBar.html">OPTIONS from <B>ProgressBar</B></A></I></DT>
|
14
|
+
<DD><TABLE CELLSPACING=0 CELLPADDING=0 BORDER=0>
|
15
|
+
<TR>
|
16
|
+
<TD> -background or -bg</TD>
|
17
|
+
<TD> -progressfg (see <B>-foreground</B>)</TD>
|
18
|
+
</TR>
|
19
|
+
<TR>
|
20
|
+
<TD> -progressmax (see <B>-maximum</B>)</TD>
|
21
|
+
<TD> -progresstype (see <B>-type</B>)</TD>
|
22
|
+
</TR>
|
23
|
+
<TR>
|
24
|
+
<TD> -progressvar (see <B>-variable</B>)</TD>
|
25
|
+
</TABLE></DD>
|
26
|
+
</DL>
|
27
|
+
<DL>
|
28
|
+
<DT><I><A HREF="#wso">WIDGET-SPECIFIC OPTIONS</A></I></DT>
|
29
|
+
<DD><TABLE CELLSPACING=0 CELLSPACING=0 BORDER=0>
|
30
|
+
<TR>
|
31
|
+
<TD> <A HREF="#-height">-height</A></TR>
|
32
|
+
<TD> <A HREF="#-menu">-menu</A></TR>
|
33
|
+
</TR>
|
34
|
+
<TR>
|
35
|
+
<TD> <A HREF="#-separator">-separator</A></TR>
|
36
|
+
<TD> <A HREF="#-textvariable">-textvariable</A></TR>
|
37
|
+
</TR>
|
38
|
+
<TR>
|
39
|
+
<TD> <A HREF="#-width">-width</A></TR>
|
40
|
+
</TABLE></DD>
|
41
|
+
</DL>
|
42
|
+
<DL>
|
43
|
+
<DT><I><A HREF="#wc">WIDGET COMMAND</A></I></DT>
|
44
|
+
<DD><I>pathName</I> <A HREF="#addindicator"><B>addindicator</B></A>
|
45
|
+
?<I>arg...</I>?
|
46
|
+
</DD>
|
47
|
+
<DD><I>pathName</I> <A HREF="#addtoolbar"><B>addtoolbar</B></A>
|
48
|
+
</DD>
|
49
|
+
<DD><I>pathName</I> <A HREF="#cget"><B>cget</B></A>
|
50
|
+
<I>option</I>
|
51
|
+
</DD>
|
52
|
+
<DD><I>pathName</I> <A HREF="#configure"><B>configure</B></A>
|
53
|
+
?<I>option</I>? ?<I>value</I> <I>option</I> <I>value</I> ...?
|
54
|
+
</DD>
|
55
|
+
<DD><I>pathName</I> <A HREF="#getframe"><B>getframe</B></A>
|
56
|
+
</DD>
|
57
|
+
<DD><I>pathName</I> <A HREF="#getindicator"><B>getindicator</B></A>
|
58
|
+
<I>index</I>
|
59
|
+
</DD>
|
60
|
+
<DD><I>pathName</I> <A HREF="#getmenu"><B>getmenu</B></A>
|
61
|
+
<I>menuid</I>
|
62
|
+
</DD>
|
63
|
+
<DD><I>pathName</I> <A HREF="#gettoolbar"><B>gettoolbar</B></A>
|
64
|
+
<I>index</I>
|
65
|
+
</DD>
|
66
|
+
<DD><I>pathName</I> <A HREF="#setmenustate"><B>setmenustate</B></A>
|
67
|
+
<I>tag</I>
|
68
|
+
<I>state</I>
|
69
|
+
</DD>
|
70
|
+
<DD><I>pathName</I> <A HREF="#showstatusbar"><B>showstatusbar</B></A>
|
71
|
+
<I>name</I>
|
72
|
+
</DD>
|
73
|
+
<DD><I>pathName</I> <A HREF="#showtoolbar"><B>showtoolbar</B></A>
|
74
|
+
<I>index</I>
|
75
|
+
<I>bool</I>
|
76
|
+
</DD>
|
77
|
+
</DL>
|
78
|
+
<BR><HR WIDTH="100%"><BR>
|
79
|
+
<B><A NAME="descr"></A>DESCRIPTION</B><BR>
|
80
|
+
<P>
|
81
|
+
|
82
|
+
MainFrame manage toplevel to have:<BR>
|
83
|
+
<UL>
|
84
|
+
<LI>simple menu creation, with automatic accelerator bindings and
|
85
|
+
<A HREF="DynamicHelp.html">DynamicHelp</A> association,
|
86
|
+
<LI>one or more toolbars that user can hide,
|
87
|
+
<LI>a status bar, displaying a user message or a menu description, and optionally a
|
88
|
+
<A HREF="ProgressBar.html">ProgressBar</A>.
|
89
|
+
</UL>
|
90
|
+
</P>
|
91
|
+
<BR><HR WIDTH="50%"><BR>
|
92
|
+
<B><A NAME="wso">WIDGET-SPECIFIC OPTIONS</A></B><BR>
|
93
|
+
<DL><DT><A NAME="-height"><B>-height</B></A></DT>
|
94
|
+
<DD>
|
95
|
+
|
96
|
+
Specifies the desired height for the user frame in any of the forms acceptable to
|
97
|
+
Tk_GetPixels. If this option is less than or equal to zero (the default) then the window
|
98
|
+
will not request any size at all.
|
99
|
+
</DD>
|
100
|
+
</DL>
|
101
|
+
<DL><DT><A NAME="-menu"><B>-menu (read-only)</B></A></DT>
|
102
|
+
<DD>
|
103
|
+
|
104
|
+
This option describes the menu. This is a list whose each five elements describe
|
105
|
+
one cascade menu. It has the following form:
|
106
|
+
{<I>menuname</I> <I>tags</I> <I>menuId</I> <I>tearoff</I> <I>menuentries</I>...}
|
107
|
+
where <I>menuentries</I> is a list where each element describe one menu entry, which can be:
|
108
|
+
<UL>
|
109
|
+
<LI>for a separator:<BR>
|
110
|
+
{<B>separator</B>}
|
111
|
+
<LI>for a command:<BR>
|
112
|
+
{<B>command</B> <I>menuname</I> ?<I>tags</I>? ?<I>description</I>? ?<I>accelerator</I>? ?<I>option</I> <I>value</I>? ...}
|
113
|
+
<LI>for a check button:<BR>
|
114
|
+
{<B>checkbutton</B> <I>menuname</I> ?<I>tags</I>? ?<I>description</I>? ?<I>accelerator</I>? ?<I>option</I> <I>value</I>? ...}
|
115
|
+
<LI>for a radio button:<BR>
|
116
|
+
{<B>radiobutton</B> <I>menuname</I> ?<I>tags</I>? ?<I>description</I>? ?<I>accelerator</I> ?<I>option</I> <I>value</I>? ...}
|
117
|
+
<LI>for a cascade menu:<BR>
|
118
|
+
{<B>cascade</B> <I>menuname</I> <I>tags</I> <I>menuId</I> <I>tearoff</I> <I>menuentries</I>}
|
119
|
+
</UL>
|
120
|
+
where:
|
121
|
+
<UL>
|
122
|
+
<LI><I>menuname</I> is the name of the menu. If it contains a &, the following character
|
123
|
+
is automatically converted to the corresponding <B>-underline</B> option of <B>menu add</B>
|
124
|
+
command.
|
125
|
+
<LI><I>tags</I> is the tags list for the entry, used for enabling or disabling menu
|
126
|
+
entries with <B>MainFrame::setmenustate</B>.
|
127
|
+
<LI><I>menuId</I> is an id for the menu, from which you can get menu pathname with
|
128
|
+
<B>MainFrame::getmenu</B>.
|
129
|
+
<LI><I>tearoff</I> specifies if menu has tearoff entry.
|
130
|
+
<LI><I>description</I> specifies a string for <A HREF=\"DynamicHelp.html\">DynamicHelp</A>.
|
131
|
+
<LI><I>accelerator</I> specifies a key sequence. It is a list of two elements, where the first
|
132
|
+
is one of <B>Ctrl</B>, <B>Alt</B> or <B>CtrlAlt</B>, and the second as letter or a digit.
|
133
|
+
An accelerator string is build and corresponding binding set on the toplevel to invoke the
|
134
|
+
menu entry.
|
135
|
+
<LI><I>option value</I> specifies additionnal options for the entry (see <B>menu add</B>
|
136
|
+
command).
|
137
|
+
</UL>
|
138
|
+
Each value enclosed by ? are optional and defaulted to empty string, but must be
|
139
|
+
provided if one or more following options is not empty.
|
140
|
+
<BR>Example:
|
141
|
+
<PRE>
|
142
|
+
set descmenu {
|
143
|
+
"&File" {} {} 0 {
|
144
|
+
{command "&New" {} "Create a new document" {Ctrl n} -command Menu::new}
|
145
|
+
{command "&Open..." {} "Open an existing document" {Ctrl o} -command Menu::open}
|
146
|
+
{command "&Save" open "Save the document" {Ctrl s} -command Menu::save}
|
147
|
+
{cascade "&Export" {} export 0 {
|
148
|
+
{command "Format &1" open "Export document to format 1" {} -command {Menu::export 1}}
|
149
|
+
{command "Format &2" open "Export document to format 2" {} -command {Menu::export 2}}
|
150
|
+
}}
|
151
|
+
{separator}
|
152
|
+
{cascade "&Recent files" {} recent 0 {}}
|
153
|
+
{separator}
|
154
|
+
{command "E&xit" {} "Exit the application" {} -command Menu::exit}
|
155
|
+
}
|
156
|
+
"&Options" {} {} 0 {
|
157
|
+
{checkbutton "Toolbar" {} "Show/hide toolbar" {}
|
158
|
+
-variable Menu::_drawtoolbar
|
159
|
+
-command {$Menu::_mainframe showtoolbar toolbar $Menu::_drawtoolbar}
|
160
|
+
}
|
161
|
+
}
|
162
|
+
}
|
163
|
+
</PRE>
|
164
|
+
|
165
|
+
</DD>
|
166
|
+
</DL>
|
167
|
+
<DL><DT><A NAME="-separator"><B>-separator (read-only)</B></A></DT>
|
168
|
+
<DD>
|
169
|
+
|
170
|
+
Specifies if separator should be drawn at the top and/or at the bottom of the user window.
|
171
|
+
Must be one of the values <B>none</B>, <B>top</B>, <B>bottom</B> or <B>both</B>.
|
172
|
+
It depends on the relief of subwidgets of user window.
|
173
|
+
</DD>
|
174
|
+
</DL>
|
175
|
+
<DL><DT><A NAME="-textvariable"><B>-textvariable</B></A></DT>
|
176
|
+
<DD>
|
177
|
+
|
178
|
+
Specifies the textvariable option for the label of the status bar.
|
179
|
+
<A HREF="DynamicHelp.html">DynamicHelp</A> description
|
180
|
+
of menu entries are mapped to this variable at the creation of the MainFrame.
|
181
|
+
If this variable is changed by MainFrame::configure, menu description will
|
182
|
+
not be available.
|
183
|
+
<BR>You change the text of the label by modifying the value of the variable.
|
184
|
+
</DD>
|
185
|
+
</DL>
|
186
|
+
<DL><DT><A NAME="-width"><B>-width</B></A></DT>
|
187
|
+
<DD>
|
188
|
+
|
189
|
+
Specifies the desired width for the user frame in any of the forms acceptable to
|
190
|
+
Tk_GetPixels. If this option is less than or equal to zero (the default) then the window
|
191
|
+
will not request any size at all.
|
192
|
+
</DD>
|
193
|
+
</DL>
|
194
|
+
<HR WIDTH="50%"><BR>
|
195
|
+
<B><A NAME="wc">WIDGET COMMAND</A></B><BR>
|
196
|
+
<DL><DT><A NAME="addindicator"><I>pathName</I> <B>addindicator</B></A>
|
197
|
+
?<I>arg...</I>?
|
198
|
+
</DT><DD>
|
199
|
+
|
200
|
+
Add an indicator box at the right of the status bar. Each indicator are added from left
|
201
|
+
to right. An indicator is a Tk label widget configured with option-value pair
|
202
|
+
given by ?<I>arg...</I>?. <B>-relief</B> and <B>-borderwidth</B> options are respetively
|
203
|
+
defaulted to <I>sunken</I> and 1. Returns the pathname of the created label.
|
204
|
+
</DD></DL>
|
205
|
+
<DL><DT><A NAME="addtoolbar"><I>pathName</I> <B>addtoolbar</B></A>
|
206
|
+
</DT><DD>
|
207
|
+
|
208
|
+
Add a toolbar to the MainFrame. Returns the pathname of the new window where to place
|
209
|
+
toolbar items.
|
210
|
+
</DD></DL>
|
211
|
+
<DL><DT><A NAME="cget"><I>pathName</I> <B>cget</B></A>
|
212
|
+
<I>option</I>
|
213
|
+
</DT><DD>
|
214
|
+
|
215
|
+
Returns the current value of the configuration option given by <I>option</I>.
|
216
|
+
<I>Option</I> may have any of the values accepted by the creation command.
|
217
|
+
</DD></DL>
|
218
|
+
<DL><DT><A NAME="configure"><I>pathName</I> <B>configure</B></A>
|
219
|
+
?<I>option</I>? ?<I>value</I> <I>option</I> <I>value</I> ...?
|
220
|
+
</DT><DD>
|
221
|
+
|
222
|
+
Query or modify the configuration options of the widget. If no <I>option</I> is specified,
|
223
|
+
returns a list describing all of the available options for <I>pathName</I>.
|
224
|
+
If <I>option</I> is specified with no <I>value</I>, then the command returns a list
|
225
|
+
describing the one named <I>option</I> (this list will be identical to the corresponding
|
226
|
+
sublist of the value returned if no <I>option</I> is specified). If one or
|
227
|
+
more <I>option-value</I> pairs are specified, then the command modifies the given widget
|
228
|
+
option(s) to have the given value(s); in this case the command returns an empty string.
|
229
|
+
<I>Option</I> may have any of the values accepted by the creation command.
|
230
|
+
Read-only options are not be modified.
|
231
|
+
|
232
|
+
</DD></DL>
|
233
|
+
<DL><DT><A NAME="getframe"><I>pathName</I> <B>getframe</B></A>
|
234
|
+
</DT><DD>
|
235
|
+
|
236
|
+
Returns the pathname of the user window.
|
237
|
+
</DD></DL>
|
238
|
+
<DL><DT><A NAME="getindicator"><I>pathName</I> <B>getindicator</B></A>
|
239
|
+
<I>index</I>
|
240
|
+
</DT><DD>
|
241
|
+
|
242
|
+
Returns the pathname of the <I>index</I>th added indicator.
|
243
|
+
</DD></DL>
|
244
|
+
<DL><DT><A NAME="getmenu"><I>pathName</I> <B>getmenu</B></A>
|
245
|
+
<I>menuid</I>
|
246
|
+
</DT><DD>
|
247
|
+
|
248
|
+
Returns the pathname of the menu whose id is <I>menuid</I>.
|
249
|
+
</DD></DL>
|
250
|
+
<DL><DT><A NAME="gettoolbar"><I>pathName</I> <B>gettoolbar</B></A>
|
251
|
+
<I>index</I>
|
252
|
+
</DT><DD>
|
253
|
+
|
254
|
+
Returns the pathname of the <I>index</I>th added toolbar.
|
255
|
+
</DD></DL>
|
256
|
+
<DL><DT><A NAME="setmenustate"><I>pathName</I> <B>setmenustate</B></A>
|
257
|
+
<I>tag</I>
|
258
|
+
<I>state</I>
|
259
|
+
</DT><DD>
|
260
|
+
|
261
|
+
Set the <B>-state</B> option value of all the menu entries that have the tag <I>tag</I>
|
262
|
+
to <I>state</I>.
|
263
|
+
|
264
|
+
</DD></DL>
|
265
|
+
<DL><DT><A NAME="showstatusbar"><I>pathName</I> <B>showstatusbar</B></A>
|
266
|
+
<I>name</I>
|
267
|
+
</DT><DD>
|
268
|
+
|
269
|
+
<I>name</I> is one of <B>none</B>, <B>status</B> or <B>progression</B>.
|
270
|
+
Use <B>none</B> to hide the status bar, <B>status</B> to display the label only, or
|
271
|
+
<B>progression</B> to display the label and the
|
272
|
+
<A HREF="ProgressBar.html">ProgressBar</A>.
|
273
|
+
</DD></DL>
|
274
|
+
<DL><DT><A NAME="showtoolbar"><I>pathName</I> <B>showtoolbar</B></A>
|
275
|
+
<I>index</I>
|
276
|
+
<I>bool</I>
|
277
|
+
</DT><DD>
|
278
|
+
|
279
|
+
Hide if <I>bool</I> is 0, or show if <I>bool</I> is 1 the <I>index</I>th added toolbar.
|
280
|
+
To prevent your toplevel from resizing while hiding/showing toolbar,
|
281
|
+
do [wm geometry $top [wm geometry $top]] when it is managed.
|
282
|
+
</DD></DL>
|
283
|
+
</BODY></HTML>
|
@@ -0,0 +1,218 @@
|
|
1
|
+
<HTML>
|
2
|
+
<HEAD><TITLE>MessageDlg</TITLE></HEAD>
|
3
|
+
<BODY BGCOLOR=white>
|
4
|
+
<DL><DT><I><A HREF="#descr">NAME</A></I></DT>
|
5
|
+
<DD><B>MessageDlg</B>
|
6
|
+
- Message dialog box
|
7
|
+
</DD></DL>
|
8
|
+
<DL>
|
9
|
+
<DT><I>CREATION</I></DT>
|
10
|
+
<DD><A HREF="#descr"><B>MessageDlg</B></A> <I>pathName</I> ?<I>option value...</I>?</DD>
|
11
|
+
</DL>
|
12
|
+
<DL>
|
13
|
+
<DT><I>STANDARD OPTIONS</I></DT>
|
14
|
+
<DD><TABLE CELLSPACING=0 CELLSPACING=0 BORDER=0>
|
15
|
+
<TR>
|
16
|
+
<TD> <A HREF="options.htm#M-anchor">-anchor</A></TD>
|
17
|
+
<TD> <A HREF="options.htm#M-font">-font</A></TD>
|
18
|
+
</TR>
|
19
|
+
<TR>
|
20
|
+
<TD> <A HREF="options.htm#M-foreground">-foreground or -fg</A></TD>
|
21
|
+
<TD> <A HREF="options.htm#M-padx">-padx</A></TD>
|
22
|
+
</TR>
|
23
|
+
<TR>
|
24
|
+
<TD> <A HREF="options.htm#M-pady">-pady</A></TD>
|
25
|
+
</TABLE></DD>
|
26
|
+
</DL>
|
27
|
+
<DL>
|
28
|
+
<DT><I><A HREF="Dialog.html">OPTIONS from <B>Dialog</B></A></I></DT>
|
29
|
+
<DD><TABLE CELLSPACING=0 CELLPADDING=0 BORDER=0>
|
30
|
+
<TR>
|
31
|
+
<TD> -background or -bg</TD>
|
32
|
+
<TD> -cancel</TD>
|
33
|
+
</TR>
|
34
|
+
<TR>
|
35
|
+
<TD> -default</TD>
|
36
|
+
<TD> -parent</TD>
|
37
|
+
</TR>
|
38
|
+
</TABLE></DD>
|
39
|
+
</DL>
|
40
|
+
<DL>
|
41
|
+
<DT><I><A HREF="#wso">WIDGET-SPECIFIC OPTIONS</A></I></DT>
|
42
|
+
<DD><TABLE CELLSPACING=0 CELLSPACING=0 BORDER=0>
|
43
|
+
<TR>
|
44
|
+
<TD> <A HREF="#-aspect">-aspect</A></TD>
|
45
|
+
<TD> <A HREF="#-buttons">-buttons</A></TD>
|
46
|
+
</TR>
|
47
|
+
<TR>
|
48
|
+
<TD> <A HREF="#-buttonwidth">-buttonwidth</A></TD>
|
49
|
+
<TD> <A HREF="#-icon">-icon</A></TD>
|
50
|
+
</TR>
|
51
|
+
<TR>
|
52
|
+
<TD> <A HREF="#-justify">-justify</A></TD>
|
53
|
+
<TD> <A HREF="#-message">-message</A></TD>
|
54
|
+
</TR>
|
55
|
+
<TR>
|
56
|
+
<TD> <A HREF="#-title">-title</A></TD>
|
57
|
+
<TD> <A HREF="#-type">-type</A></TD>
|
58
|
+
<TR>
|
59
|
+
<TD> <A HREF="#-width">-width</A></TD>
|
60
|
+
</TR>
|
61
|
+
</TR>
|
62
|
+
</TABLE></DD>
|
63
|
+
</DL>
|
64
|
+
<BR><HR WIDTH="100%"><BR>
|
65
|
+
<B><A NAME="descr"></A>DESCRIPTION</B><BR>
|
66
|
+
<P>
|
67
|
+
|
68
|
+
MessageDlg provides a simple way to display a message dialog.
|
69
|
+
MessageDlg::<B>create</B> creates the message dialog, displays
|
70
|
+
it and return the index of the pressed button, or -1 if it is destroyed.
|
71
|
+
When returning, the dialog no longer exists.
|
72
|
+
|
73
|
+
</P>
|
74
|
+
<BR><HR WIDTH="50%"><BR>
|
75
|
+
<B><A NAME="wso">WIDGET-SPECIFIC OPTIONS</A></B><BR>
|
76
|
+
<DL><DT><A NAME="-aspect"><B>-aspect</B></A></DT>
|
77
|
+
<DD>
|
78
|
+
|
79
|
+
Specifies a non-negative integer value indicating desired
|
80
|
+
aspect ratio for the text. The aspect ratio is specified as
|
81
|
+
100*width/height. 100 means the text should
|
82
|
+
be as wide as it is tall, 200 means the text should
|
83
|
+
be twice as wide as it is tall, 50 means the text should
|
84
|
+
be twice as tall as it is wide, and so on.
|
85
|
+
Used to choose line length for text if <B>width</B> option
|
86
|
+
isn't specified.
|
87
|
+
Defaults to 150.
|
88
|
+
|
89
|
+
</DD>
|
90
|
+
</DL>
|
91
|
+
<DL><DT><A NAME="-buttons"><B>-buttons</B></A></DT>
|
92
|
+
<DD>
|
93
|
+
|
94
|
+
Specifies a list of buttons to display when <B>type</B> option is <I>user</I>.
|
95
|
+
If a button has a symbolic name, its associated text will be displayed.
|
96
|
+
|
97
|
+
</DD>
|
98
|
+
</DL>
|
99
|
+
|
100
|
+
<DL><DT><A NAME="-buttonwidth"><B>-buttonwidth</B></A></DT>
|
101
|
+
<DD>
|
102
|
+
Specifies the standard width of the buttons in the dialog.
|
103
|
+
</DD>
|
104
|
+
</DL>
|
105
|
+
|
106
|
+
<DL><DT><A NAME="-icon"><B>-icon</B></A></DT>
|
107
|
+
<DD>
|
108
|
+
|
109
|
+
Specifies an icon to display. Must be one of the following: <B>error</B>, <B>info</B>,
|
110
|
+
<B>question</B> or <B>warning</B>.
|
111
|
+
|
112
|
+
</DD>
|
113
|
+
</DL>
|
114
|
+
<DL><DT><A NAME="-justify"><B>-justify</B></A></DT>
|
115
|
+
<DD>
|
116
|
+
|
117
|
+
Specifies how to justify lines of text.
|
118
|
+
Must be one of <B>left</B>, <B>center</B>, or <B>right</B>. Defaults
|
119
|
+
to <B>left</B>.
|
120
|
+
This option works together with the <B>anchor</B>, <B>aspect</B>,
|
121
|
+
<B>padx</B>, <B>pady</B>, and <B>width</B> options to provide a variety
|
122
|
+
of arrangements of the text within the window.
|
123
|
+
The <B>aspect</B> and <B>width</B> options determine the amount of
|
124
|
+
screen space needed to display the text.
|
125
|
+
The <B>anchor</B>, <B>padx</B>, and <B>pady</B> options determine where this
|
126
|
+
rectangular area is displayed within the widget's window, and the
|
127
|
+
<B>justify</B> option determines how each line is displayed within that
|
128
|
+
rectangular region.
|
129
|
+
For example, suppose <B>anchor</B> is <B>e</B> and <B>justify</B> is
|
130
|
+
<B>left</B>, and that the message window is much larger than needed
|
131
|
+
for the text.
|
132
|
+
The the text will displayed so that the left edges of all the lines
|
133
|
+
line up and the right edge of the longest line is <B>padx</B> from
|
134
|
+
the right side of the window; the entire text block will be centered
|
135
|
+
in the vertical span of the window.
|
136
|
+
|
137
|
+
</DD>
|
138
|
+
</DL>
|
139
|
+
<DL><DT><A NAME="-message"><B>-message</B></A></DT>
|
140
|
+
<DD>
|
141
|
+
|
142
|
+
Specifies the message to display in this message box.
|
143
|
+
|
144
|
+
</DD>
|
145
|
+
</DL>
|
146
|
+
<DL><DT><A NAME="-title"><B>-title</B></A></DT>
|
147
|
+
<DD>
|
148
|
+
|
149
|
+
Specifies a string to display as the title of the message box.
|
150
|
+
If the value is empty (the default), a default title will be set corresponding
|
151
|
+
to the <B>icon</B> option.
|
152
|
+
The default associated title is in english, and can be modified to set it in
|
153
|
+
another language by specifying the resource:
|
154
|
+
<PRE> *MessageDlg.<I>name</I>Title: <I>value</I></PRE>
|
155
|
+
or the equivalent tcl command:
|
156
|
+
<PRE> option add *MessageDlg.<I>name</I>Title <I>value</I></PRE>
|
157
|
+
where <I>name</I> is the name of an icon as defined in the <B>icon</B> option.
|
158
|
+
<BR>For example, for french language, you can specify for a warning dialog:
|
159
|
+
<PRE> option add *MessageDlg.warningTitle "Attention"</PRE>
|
160
|
+
|
161
|
+
</DD>
|
162
|
+
</DL>
|
163
|
+
<DL><DT><A NAME="-type"><B>-type</B></A></DT>
|
164
|
+
<DD>
|
165
|
+
|
166
|
+
Specifies a set of buttons to be displayed. The following values are possible:
|
167
|
+
<DD>
|
168
|
+
<P>
|
169
|
+
<DL COMPACT>
|
170
|
+
<DT>
|
171
|
+
<B>abortretryignore</B>
|
172
|
+
<DD>
|
173
|
+
Displays three buttons whose symbolic names are <B>abort</B>,
|
174
|
+
<B>retry</B> and <B>ignore</B>.<P>
|
175
|
+
<DT>
|
176
|
+
<B>ok</B>
|
177
|
+
<DD>
|
178
|
+
Displays one button whose symbolic name is <B>ok</B>.<P>
|
179
|
+
<DT>
|
180
|
+
<B>okcancel</B>
|
181
|
+
<DD>
|
182
|
+
Displays two buttons whose symbolic names are <B>ok</B> and <B>cancel</B>.<P>
|
183
|
+
<DT>
|
184
|
+
<B>retrycancel</B>
|
185
|
+
<DD>
|
186
|
+
Displays two buttons whose symbolic names are <B>retry</B> and <B>cancel</B>.<P>
|
187
|
+
<DT>
|
188
|
+
<B>yesno</B>
|
189
|
+
<DD>
|
190
|
+
Displays two buttons whose symbolic names are <B>yes</B> and <B>no</B>.<P>
|
191
|
+
<DT>
|
192
|
+
<B>yesnocancel</B>
|
193
|
+
<DD>
|
194
|
+
Displays three buttons whose symbolic names are <B>yes</B>, <B>no</B>
|
195
|
+
and <B>cancel</B>.
|
196
|
+
<P>
|
197
|
+
<DT>
|
198
|
+
<B>user</B>
|
199
|
+
<DD>
|
200
|
+
Displays buttons of <B>-buttons</B> option.<P>
|
201
|
+
<DT>
|
202
|
+
</DL COMPACT>
|
203
|
+
|
204
|
+
</DD>
|
205
|
+
</DL>
|
206
|
+
<DL><DT><A NAME="-width"><B>-width</B></A></DT>
|
207
|
+
<DD>
|
208
|
+
|
209
|
+
Specifies the length of lines in the window.
|
210
|
+
If this option has a value greater than zero then the <B>aspect</B>
|
211
|
+
option is ignored and the <B>width</B> option determines the line
|
212
|
+
length.
|
213
|
+
If this option has a value less than or equal to zero, then
|
214
|
+
the <B>aspect</B> option determines the line length.
|
215
|
+
|
216
|
+
</DD>
|
217
|
+
</DL>
|
218
|
+
</BODY></HTML>
|