status open
\begin_layout Plain Layout
-
\begin_inset Argument 1
status open
\series bold
Note:
\series default
- All braces and brackets in form parameters must be inserted as TeX code!
+ All braces, brackets, backslashes and quote characters in form parameters
+ must be inserted as TeX code!
\end_layout
\end_inset
status open
\begin_layout Plain Layout
-
\begin_inset Argument 1
status open
status open
\begin_layout Plain Layout
-
\begin_inset Argument 1
status open
status open
\begin_layout Plain Layout
-
\begin_inset Argument 1
status open
\begin_layout Plain Layout
name=customer2, multiline, width=0.6
+\begin_inset ERT
+status collapsed
+
+\begin_layout Plain Layout
+
+
\backslash
-textwidth, height=3cm, value={Testman}
+textwidth
+\end_layout
+
+\end_inset
+
+, height=3cm, value=
+\begin_inset ERT
+status collapsed
+
+\begin_layout Plain Layout
+
+{
+\end_layout
+
+\end_inset
+
+Testman
+\begin_inset ERT
+status collapsed
+
+\begin_layout Plain Layout
+
+}
+\end_layout
+
+\end_inset
+
+
\end_layout
\end_inset
status open
\begin_layout Plain Layout
-
\begin_inset Argument 1
status open
status open
\begin_layout Plain Layout
-
\begin_inset Argument 1
status open
status open
\begin_layout Plain Layout
-
\begin_inset Argument 1
status open
status open
\begin_layout Plain Layout
-
\begin_inset Argument 1
status open
status open
\begin_layout Plain Layout
-
\begin_inset Argument 1
status open
status open
\begin_layout Plain Layout
-
\begin_inset Argument 1
status open
status open
\begin_layout Plain Layout
-
\begin_inset Argument 1
status open
\begin_layout Plain Layout
-onclick={app.alert("What the hell? Now you destroyed your fridge.
- Congratulations.")}
+onclick=
+\begin_inset ERT
+status collapsed
+
+\begin_layout Plain Layout
+
+{
\end_layout
\end_inset
-Don't click on this button or your fridge will be destroyed!!!
+app.alert(
+\begin_inset ERT
+status collapsed
+
+\begin_layout Plain Layout
+
+"
\end_layout
\end_inset
+What the hell? Now you destroyed your fridge.
+ Congratulations.
+\begin_inset ERT
+status collapsed
-\end_layout
+\begin_layout Plain Layout
-\begin_layout Standard
-For info about JavaScript, see its documentation,
-\begin_inset CommandInset citation
-LatexCommand cite
-key "JavaScript"
+"
+\end_layout
\end_inset
-.
+)
+\begin_inset ERT
+status collapsed
+
+\begin_layout Plain Layout
+
+}
\end_layout
-\begin_layout Standard
-A common usage for pus buttons is to open a weblink.
- Such a button is created by inserting the command
-\series bold
+\end_inset
-\backslash
-href
-\series default
- into the button inset.
-
-\series bold
-\backslash
-href
-\series default
- is used in the scheme
-\begin_inset Newline newline
+\end_layout
+
\end_inset
+Don't click on this button or your fridge will be destroyed!!!
+\end_layout
+
+\end_inset
-\series bold
-\backslash
-href{link target}{text}
\end_layout
\begin_layout Standard
-In the following button this code was used:
-\begin_inset Newline newline
-\end_inset
+For info about JavaScript, see its documentation,
+\begin_inset CommandInset citation
+LatexCommand cite
+key "JavaScript"
+\end_inset
-\series bold
+.
+\end_layout
-\backslash
-href{http://wiki.lyx.org}{Information how to fill out this form}
+\begin_layout Standard
+A common usage for pus buttons is to open a weblink.
+ Such a button is created by inserting a hyperlink into the button inset.
+ Here is an example:
\end_layout
\begin_layout Standard
status open
\begin_layout Plain Layout
-
\begin_inset Argument 1
status open
\end_inset
-\backslash
-href{http://wiki.lyx.org}{Information how to fill out this form}
+\begin_inset CommandInset href
+LatexCommand href
+name "Information how to fill out this form"
+target "http://wiki.lyx.org"
+
+\end_inset
+
+
\end_layout
\end_inset
status open
\begin_layout Plain Layout
-
\begin_inset Argument 1
status open
status open
\begin_layout Plain Layout
-
\begin_inset Argument 1
status open
status open
\begin_layout Plain Layout
-
\begin_inset Argument 1
status open
status open
\begin_layout Plain Layout
-
\begin_inset Argument 1
status open
status open
\begin_layout Plain Layout
-
\begin_inset Argument 1
status open
status open
\begin_layout Plain Layout
-
\begin_inset Argument 1
status open
status open
\begin_layout Plain Layout
-
\begin_inset Argument 1
status open
status open
\begin_layout Plain Layout
-
\begin_inset Argument 1
status open
\begin_layout Plain Layout
-onclick={app.alert("Why do you click this?")}
+onclick=
+\begin_inset ERT
+status collapsed
+
+\begin_layout Plain Layout
+
+{
\end_layout
\end_inset
+app.alert(
+\begin_inset ERT
+status collapsed
+
+\begin_layout Plain Layout
+
+"
+\end_layout
+
+\end_inset
+
+Why do you click this?
+\begin_inset ERT
+status collapsed
+
+\begin_layout Plain Layout
+
+"
+\end_layout
+
+\end_inset
+
+)
+\begin_inset ERT
+status collapsed
+
+\begin_layout Plain Layout
+
+}
+\end_layout
+
+\end_inset
+
+
+\end_layout
+
+\end_inset
+
+
+\begin_inset ERT
+status collapsed
+
+\begin_layout Plain Layout
+
\backslash
colorbox{lime}{
-\backslash
-textcolor{red}{Don't click on this button!!!}}
+\end_layout
+
+\end_inset
+
+
+\color red
+Don't click on this button!!!
+\color inherit
+
+\begin_inset ERT
+status collapsed
+
+\begin_layout Plain Layout
+
+}
+\end_layout
+
+\end_inset
+
+
\end_layout
\end_inset
\emph on
EmbeddedObjects
\emph default
- manual and
-\series bold
-
-\backslash
-textcolor
-\series default
- that is used is used in the scheme
-\begin_inset Newline newline
-\end_inset
-
-
-\series bold
-
-\backslash
-textcolor{color}{characters to color}
-\series default
-
+ manual.
\begin_inset Newline newline
\end_inset
\family sans
\backslash
-colorbox{lime}{
-\backslash
-textcolor{red}{Don't click on this button!!!}}
+colorbox{lime}{Don't click on this button!!!}
+\family default
+
+\begin_inset Newline newline
+\end_inset
+
+and the button text was colored.
\end_layout
\begin_layout Standard
status open
\begin_layout Plain Layout
-
\begin_inset Argument 1
status open
\end_inset
+\begin_inset ERT
+status collapsed
+
+\begin_layout Plain Layout
+
+
\backslash
colorbox{cyan}{
+\end_layout
+
+\end_inset
+
+
+\begin_inset Box Frameless
+position "c"
+hor_pos "c"
+has_inner_box 1
+inner_pos "c"
+use_parbox 1
+use_makebox 0
+width "5cm"
+special "none"
+height "4in"
+height_special "totalheight"
+status open
+
+\begin_layout Plain Layout
+\begin_inset ERT
+status collapsed
+
+\begin_layout Plain Layout
+
+
\backslash
-parbox[c][4
-\backslash
-totalheight]{5cm}{
-\backslash
-centering Send your data via mail}}
+centering
+\end_layout
+
+\end_inset
+
+ Send your data via mail
+\end_layout
+
+\end_inset
+
+
+\begin_inset ERT
+status collapsed
+
+\begin_layout Plain Layout
+
+}
+\end_layout
+
+\end_inset
+
+
\end_layout
\end_inset
status open
\begin_layout Plain Layout
-
\begin_inset Argument 1
status open
\end_inset
+\begin_inset Box Frameless
+position "t"
+hor_pos "c"
+has_inner_box 1
+inner_pos "t"
+use_parbox 0
+use_makebox 1
+width "7cm"
+special "none"
+height "1in"
+height_special "totalheight"
+status open
+
+\begin_layout Plain Layout
+\begin_inset ERT
+status collapsed
+
+\begin_layout Plain Layout
+
+
\backslash
-makebox[7cm]{Reset the form}
+centering
+\end_layout
+
+\end_inset
+
+ Reset the form
+\end_layout
+
+\end_inset
+
+
\end_layout
\end_inset
status open
\begin_layout Plain Layout
-
\begin_inset Argument 1
status open
status open
\begin_layout Plain Layout
-
\begin_inset Argument 1
status open
status open
\begin_layout Plain Layout
-
\begin_inset Argument 1
status open
\end_layout
\begin_layout Standard
-Customizing the action buttons requires some complicated LaTeX code because
- things like the width, height and border separation cannot be specified
- as button parameters.
-\end_layout
-
-\begin_layout Standard
-The easiest way to customize the buttons is to fill it with a custom box:
-\end_layout
-
-\begin_layout Enumerate
-Create a normal LyX box of your choice
-\end_layout
-
-\begin_layout Enumerate
-Use the menu
-\family sans
-View\SpecialChar \menuseparator
-Source
-\begin_inset space ~
-\end_inset
-
-Pane
-\family default
- to show the source code window (if not already shown)
-\end_layout
-
-\begin_layout Enumerate
-set the cursor into the box and copy the corresponding LaTeX code from the
- source window
-\end_layout
-
-\begin_layout Enumerate
-paste it t the content of the
-\family sans
-PDFAction
-\family default
- inset.
+Customizing the action buttons requires the usage of boxes because things
+ like the width, height and border separation cannot be specified as button
+ parameters.
\end_layout
\begin_layout Standard
-For example the button should be 4
+The easiest way to customize the buttons is to fill it with a custom box.
+ For example the button should be 4
\begin_inset space \thinspace{}
\end_inset
cm wide and have the height of 2 lines.
Then create this parbox:
-\begin_inset Newline newline
-\end_inset
-
+\end_layout
+\begin_layout Standard
\begin_inset Box Frameless
position "c"
hor_pos "c"
\end_inset
-\begin_inset Newline newline
-\end_inset
+\end_layout
-and copy its LaTeX code to the button
+\begin_layout Standard
+inside a
\family sans
PDFAction
\family default
inset.
To center the text in the button add
+\series bold
+
\backslash
-centering right before the button text.
+centering
+\series default
+ as TeX code right before the button text.
This is the result:
\end_layout
status open
\begin_layout Plain Layout
-
\begin_inset Argument 1
status open
\end_inset
+\begin_inset Box Frameless
+position "c"
+hor_pos "c"
+has_inner_box 1
+inner_pos "c"
+use_parbox 1
+use_makebox 0
+width "4cm"
+special "none"
+height "2in"
+height_special "totalheight"
+status open
+
+\begin_layout Plain Layout
+\begin_inset ERT
+status collapsed
+
+\begin_layout Plain Layout
+
+
\backslash
-parbox[c][2
-\backslash
-totalheight]{4cm}{
-\backslash
-centering Save form as}
+centering
+\end_layout
+
+\end_inset
+
+ Save form as
+\end_layout
+
+\end_inset
+
+
\end_layout
\end_inset
status open
\begin_layout Plain Layout
-
\begin_inset Argument 1
status open
\end_inset
+\begin_inset Box Frameless
+position "c"
+hor_pos "c"
+has_inner_box 1
+inner_pos "c"
+use_parbox 1
+use_makebox 0
+width "4cm"
+special "none"
+height "2in"
+height_special "totalheight"
+status open
+
+\begin_layout Plain Layout
+\noindent
+\begin_inset ERT
+status collapsed
+
+\begin_layout Plain Layout
+
+
\backslash
-parbox[c][2
-\backslash
-totalheight]{4cm}{
-\backslash
-centering Save form as}
+centering
+\end_layout
+
+\end_inset
+
+ Save form as
+\end_layout
+
+\end_inset
+
+
\end_layout
\end_inset
status open
\begin_layout Plain Layout
-
\begin_inset Argument 1
status open
\end_inset
+\begin_inset Box Frameless
+position "c"
+hor_pos "c"
+has_inner_box 1
+inner_pos "c"
+use_parbox 1
+use_makebox 0
+width "4cm"
+special "none"
+height "2in"
+height_special "totalheight"
+status open
+
+\begin_layout Plain Layout
+\noindent
+\begin_inset ERT
+status collapsed
+
+\begin_layout Plain Layout
+
+
\backslash
-parbox[c][2
-\backslash
-totalheight]{4cm}{
-\backslash
-centering Save form as}
+centering
+\end_layout
+
+\end_inset
+
+ Save form as
+\end_layout
+
+\end_inset
+
+
\end_layout
\end_inset
\end_layout
\begin_layout Standard
-An example without a border and with a background color:
+An example without a border and with lime background color:
\begin_inset Newline newline
\end_inset
status open
\begin_layout Plain Layout
-
\begin_inset Argument 1
status open
\end_inset
+\begin_inset ERT
+status collapsed
+
+\begin_layout Plain Layout
+
+
\backslash
colorbox{lime}{
+\end_layout
+
+\end_inset
+
+
+\begin_inset Box Frameless
+position "c"
+hor_pos "c"
+has_inner_box 1
+inner_pos "c"
+use_parbox 1
+use_makebox 0
+width "4cm"
+special "none"
+height "2in"
+height_special "totalheight"
+status open
+
+\begin_layout Plain Layout
+\noindent
+\begin_inset ERT
+status collapsed
+
+\begin_layout Plain Layout
+
+
\backslash
-parbox[c][2
-\backslash
-totalheight]{4cm}{
-\backslash
-centering Save form as}}
+centering
+\end_layout
+
+\end_inset
+
+ Save form as
+\end_layout
+
+\end_inset
+
+
+\begin_inset ERT
+status collapsed
+
+\begin_layout Plain Layout
+
+}
+\end_layout
+
+\end_inset
+
+
\end_layout
\end_inset
status open
\begin_layout Plain Layout
-
\begin_inset Argument 1
status open
\begin_layout Plain Layout
-name=contract,radio,default=tl,validate={validateTime();}
+name=contract,radio,default=tl,validate=
+\begin_inset ERT
+status collapsed
+
+\begin_layout Plain Layout
+
+{
+\end_layout
+
+\end_inset
+
+validateTime();
+\begin_inset ERT
+status collapsed
+
+\begin_layout Plain Layout
+
+}
+\end_layout
+
+\end_inset
+
+
\end_layout
\end_inset
status open
\begin_layout Plain Layout
-
\begin_inset Argument 1
status open
status open
\begin_layout Plain Layout
-
\begin_inset Argument 1
status open
status open
\begin_layout Plain Layout
-
\begin_inset Argument 1
status open
\begin_layout Plain Layout
-name=onlyNumbers, align=1, validate={checkNumber();}
+name=onlyNumbers, align=1, validate=
+\begin_inset ERT
+status collapsed
+
+\begin_layout Plain Layout
+
+{
+\end_layout
+
+\end_inset
+
+checkNumber();
+\begin_inset ERT
+status collapsed
+
+\begin_layout Plain Layout
+
+}
+\end_layout
+
+\end_inset
+
+
\end_layout
\end_inset
\end_layout
\begin_layout Itemize
-All braces and brackets in form parameters must be inserted as TeX code!
+All braces, brackets, backslashes and quote characters in form parameters
+ must be inserted as TeX code!
\end_layout
\begin_layout Itemize