Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit eab58af

Browse files
committed
Chris Barker <[email protected]>:
Various updates and additions.
1 parent 26fbd8b commit eab58af

1 file changed

Lines changed: 21 additions & 18 deletions

File tree

Doc/mac/libmacui.tex

Lines changed: 21 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,16 @@ \section{\module{EasyDialogs} ---
2222

2323
\begin{funcdesc}{AskString}{prompt\optional{, default}}
2424
Ask the user to input a string value, in a modal dialog. \var{prompt}
25-
is the promt message, the optional \var{default} arg is the initial
25+
is the prompt message, the optional \var{default} arg is the initial
26+
value for the string. All strings can be at most 255 bytes
27+
long. \function{AskString()} returns the string entered or \code{None}
28+
in case the user cancelled.
29+
\end{funcdesc}
30+
31+
\begin{funcdesc}{AskPassword}{prompt\optional{, default}}
32+
Ask the user to input a string value, in a modal dialog. Like
33+
\method{AskString}, but with the text shown as bullets. \var{prompt}
34+
is the prompt message, the optional \var{default} arg is the initial
2635
value for the string. All strings can be at most 255 bytes
2736
long. \function{AskString()} returns the string entered or \code{None}
2837
in case the user cancelled.
@@ -36,22 +45,16 @@ \section{\module{EasyDialogs} ---
3645
\var{default} argument.
3746
\end{funcdesc}
3847

39-
\begin{funcdesc}{ProgressBar}{\optional{label\optional{, maxval}}}
40-
Display a modeless progress dialog with a thermometer bar. \var{label}
48+
\begin{funcdesc}{ProgressBar}{\optional{title \optional{, maxval\optional{,label}}}}
49+
Display a modeless progress dialog with a thermometer bar. \var{title}
4150
is the text string displayed (default ``Working...''), \var{maxval} is
42-
the value at which progress is complete (default \code{100}). The
43-
returned object has one method, \code{set(\var{value})}, which sets
44-
the value of the progress bar. The bar remains visible until the
45-
object returned is discarded.
46-
47-
The progress bar has a ``cancel'' button, but it is currently
48-
non-functional.
51+
the value at which progress is complete (default
52+
\code{100}). \var{label} is the text that is displayed over the progress
53+
bar itself. The returned object has two methods,
54+
\code{set(\var{value})}, which sets the value of the progress bar, and
55+
\code{label(\var{text})}, which sets the text of the label. The bar
56+
remains visible until the object returned is discarded.
57+
58+
The progress bar has a ``cancel'' button. [NOTE: how does the cancel
59+
button behave?]
4960
\end{funcdesc}
50-
51-
Note that \module{EasyDialogs} does not currently use the notification
52-
manager. This means that displaying dialogs while the program is in
53-
the background will lead to unexpected results and possibly
54-
crashes. Also, all dialogs are modeless and hence expect to be at the
55-
top of the stacking order. This is true when the dialogs are created,
56-
but windows that pop-up later (like a console window) may also result
57-
in crashes.

0 commit comments

Comments
 (0)