Skip to content

Commit

Permalink
Dialog group default (#2530)
Browse files Browse the repository at this point in the history
Specify that Dialog.group does not have a default in record.
Closes #2476
  • Loading branch information
HansOlsson committed Mar 17, 2020
1 parent 68bbfc8 commit 445dbdc
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions chapters/annotations.tex
Original file line number Diff line number Diff line change
Expand Up @@ -1185,7 +1185,7 @@ \section{Annotations for the Graphical User Interface}\doublelabel{annotations-f

\begin{lstlisting}[language=modelica]
annotation(Dialog(enable = true, tab = "General",
group = "Parameters",
group = "",
showStartAttribute = false,
colorSelector = false,
groupImage="modelica://MyPackage/Resources/Images/switch.png",
Expand All @@ -1194,7 +1194,10 @@ \section{Annotations for the Graphical User Interface}\doublelabel{annotations-f

The annotations \lstinline!tab! and \lstinline!group! define the placement of
the component or of variables in a dialog with optional tab and group
specification. If \lstinline!enable = false!, the input field may
specification, where the empty string (default) means tool-specific group.
The idea is that a tool may as default place parameters in the group "Parameters" in the tab "General",
but add e.g., variables with \lstinline!showStartAttribute=true! to another group.
If \lstinline!enable = false!, the input field may
be disabled {[}\emph{and no input can be given}{]}. If
\lstinline!showStartAttribute = true! the dialog should allow the user to
set the start-value and the fixed attribute for the variable instead of
Expand Down

0 comments on commit 445dbdc

Please sign in to comment.