| 1 | <refentry id="menuchoice.element"> |
| 2 | <?dbhtml filename="menuchoice.html"?> |
| 3 | <refentryinfo> |
| 4 | <pubdate>$Date$</pubdate> |
| 5 | <releaseinfo>$Revision$</releaseinfo> |
| 6 | </refentryinfo> |
| 7 | |
| 8 | <refmeta> |
| 9 | <indexterm><primary>elements</primary> |
| 10 | <secondary>menuchoice</secondary></indexterm> |
| 11 | <refentrytitle>menuchoice</refentrytitle> |
| 12 | <refmiscinfo>Element</refmiscinfo> |
| 13 | </refmeta> |
| 14 | <refnamediv> |
| 15 | <refname>menuchoice</refname> |
| 16 | <refpurpose>&menuchoice.purpose;</refpurpose> |
| 17 | </refnamediv> |
| 18 | |
| 19 | &menuchoice.synopsis.gen; |
| 20 | <refsect1 condition='ref.description'><title>Description</title> |
| 21 | |
| 22 | <para> |
| 23 | In applications that present graphical user interfaces, it is often |
| 24 | necessary to select an item, or a series of items, from a menu in |
| 25 | order to accomplish some action. The <sgmltag>MenuChoice</sgmltag> element |
| 26 | provides a wrapper to contain the complete combination of selections. |
| 27 | </para> |
| 28 | |
| 29 | <refsect2><title>Processing expectations</title> |
| 30 | <para> |
| 31 | &format.inline; &pexp.moreinfo; |
| 32 | </para> |
| 33 | <para> |
| 34 | <sgmltag>MenuChoice</sgmltag> may generate arrows or other punctuation between |
| 35 | multiple GUI elements. The <sgmltag>ShortCut</sgmltag> may be suppressed, or |
| 36 | sometimes it is presented in parentheses after the rest of the items. |
| 37 | </para> |
| 38 | </refsect2> |
| 39 | |
| 40 | |
| 41 | &menuchoice.parents.gen; |
| 42 | &menuchoice.children.gen; |
| 43 | </refsect1> |
| 44 | <refsect1 condition='ref.elem.attrdesc'><title>Attributes</title> |
| 45 | <variablelist> |
| 46 | <varlistentry><term>moreinfo</term> |
| 47 | <listitem> |
| 48 | <para> |
| 49 | If <sgmltag class='attribute'>MoreInfo</sgmltag> is set to <literal>RefEntry</literal>, |
| 50 | it implies that a <sgmltag>RefEntry</sgmltag> exists which further describes the |
| 51 | <sgmltag>MenuChoice</sgmltag>. |
| 52 | </para> |
| 53 | </listitem> |
| 54 | </varlistentry> |
| 55 | </variablelist> |
| 56 | </refsect1> |
| 57 | <refsect1 condition='ref.elem.seealso'><title>See Also</title> |
| 58 | &menuchoice.seealso.gen; |
| 59 | </refsect1> |
| 60 | <refsect1><title>Examples</title> |
| 61 | |
| 62 | <informalexample role="example-source"> |
| 63 | <programlisting>&menuchoice.example.1.txt;</programlisting> |
| 64 | </informalexample> |
| 65 | |
| 66 | <anchor id="ex.os.menuchoice.1" role="HACK-ex.out.start"/> |
| 67 | &menuchoice.example.1.gen; |
| 68 | <anchor id="ex.oe.menuchoice.1" role="HACK-ex.out.end"/> |
| 69 | |
| 70 | <para> |
| 71 | Compare this example with the similar example in <sgmltag>GUIMenu</sgmltag>. |
| 72 | Here the <sgmltag>KeyCombo</sgmltag> and <sgmltag>MenuChoice</sgmltag> elements |
| 73 | are required to process thier content in some intelligent way in |
| 74 | order to produce useful output. |
| 75 | </para> |
| 76 | |
| 77 | &menuchoice.example.seealso.gen; |
| 78 | </refsect1> |
| 79 | </refentry> |
| 80 |