GetGeneratedSubmenu - Maple Help
For the best experience, we recommend viewing online help using Google Chrome or Microsoft Edge.

Home : Support : Online Help : System : Context-Sensitive Menus : Test : GetGeneratedSubmenu

 get submenu entries generated

Parameters

 expr - anything; expression to test submenu - list; list containing the name of the submenu to retrieve

Description

 • The Test[GetGeneratedSubmenu] command returns a representation of the chosen context-sensitive submenu that would be generated by the expression expr.

Examples

 > $\mathrm{with}\left(\mathrm{ContextMenu}\right):$
 > $\mathrm{with}\left({\mathrm{ContextMenu}}_{\mathrm{Test}}\right):$

The GetGeneratedMenu command returns the entire generated context menu for a given expression:

 > $\mathrm{GetGeneratedMenu}\left(1\right)$
 $\left[{"Apply a Command"}{,}{"Assign to a Name"}{,}{"Divisors"}{,}{"Expand"}{,}{"Integer Factors"}{,}\left[{"Plots"}{,}\left[{"Plot Builder"}\right]\right]{,}{"Prime Factors"}{,}{"Sum of Squares"}{,}{"Totient Function"}{,}{"|"}{,}\left[{"Integer Functions"}{,}\left[{"Integer Base 10 Log"}{,}{"Integer Base 2 Log"}{,}{"Integer Natural Log"}\right]\right]{,}\left[{"Queries"}{,}\left[{"Is Mersenne Number?"}{,}{"Is Perfect Square?"}{,}{"Is Prime Number?"}{,}{"Is Square Free?"}\right]\right]{,}\left[{"Units"}{,}\left[\left[{"Affix Unit"}{,}\left[\left[{"Atomic"}{,}\left[{"bohr"}{,}{"electron"}{,}{"electron mass"}{,}{"electron per second"}{,}{"electron*bohr"}{,}{"electron*bohr^2/volt"}{,}{"electron/bohr^2"}{,}{"electron^2/hartree"}{,}{"electron_mass*bohr/second^2"}{,}{"hartree"}{,}{"hartree per second"}{,}{"hartree/bohr"}{,}{"hartree/tesla"}{,}{"hartree/tesla*bohr^3"}{,}{"hartree/tesla^2"}{,}{"permittivity"}{,}{"planck"}{,}{"second"}{,}{"tesla"}{,}{"volt"}{,}{"volt*second"}{,}{"volt*second^2/electron"}{,}{"volt/bohr"}\right]\right]{,}\left[{"CGS"}{,}\left[{"barye"}{,}{"centimeter"}{,}{"dyne"}{,}{"erg"}{,}{"erg/second"}{,}{"g"}{,}{"gram"}{,}{"kyne"}{,}{"radian"}{,}{"second"}{,}{"steradian"}\right]\right]{,}\left[{"EMU"}{,}\left[{"abampere"}{,}{"abcoulomb"}{,}{"abfarad"}{,}{"abhenry"}{,}{"abohm"}{,}{"absiemens"}{,}{"abtesla"}{,}{"abvolt"}{,}{"abweber"}{,}{"barye"}{,}{"centimeter"}{,}{"dyne"}{,}{"erg"}{,}{"erg/second"}{,}{"g"}{,}{"gram"}{,}{"joule"}{,}{"kilogram"}{,}{"kyne"}{,}{"meter"}{,}{"newton"}{,}{"pascal"}{,}{"radian"}{,}{"second"}{,}{"steradian"}{,}{"watt"}\right]\right]{,}\left[{"FPS"}{,}\left[{"foot"}{,}{"horsepower"}{,}{"pound"}{,}{"poundal"}{,}{"poundal*foot"}{,}{"poundforce/inch^2"}{,}{"radian"}{,}{"second"}{,}{"steradian"}\right]\right]{,}\left[{"MTS"}{,}\left[{"kilojoule"}{,}{"kilowatt"}{,}{"meter"}{,}{"pieze"}{,}{"radian"}{,}{"second"}{,}{"steradian"}{,}{"sthene"}{,}{"tonne"}\right]\right]{,}\left[{"SI"}{,}\left[{"coulomb"}{,}{"farad"}{,}{"henry"}{,}{"joule"}{,}{"kilogram"}{,}{"lumen"}{,}{"lux"}{,}{"meter"}{,}{"newton"}{,}{"ohm"}{,}{"pascal"}{,}{"radian"}{,}{"second"}{,}{"siemens"}{,}{"steradian"}{,}{"tesla"}{,}{"volt"}{,}{"watt"}{,}{"weber"}\right]\right]\right]\right]\right]\right]{,}{"|"}{,}\left[{"Combinations/Permutations"}{,}\left[\left[{"Combinations"}{,}\left[{"Count"}{,}{"Generate"}\right]\right]{,}{"Fibonacci"}{,}\left[{"Partitions"}{,}\left[{"Count"}{,}{"Generate"}{,}{"Random"}\right]\right]{,}\left[{"Permutations"}{,}\left[{"Count"}{,}{"Generate"}{,}{"Random"}\right]\right]{,}{"Power Set"}\right]\right]{,}\left[{"Number Theory Functions"}{,}\left[{"Calkin-Wilf Sequence"}{,}{"Carmichael Function"}{,}{"I-th Prime"}{,}{"Imaginary Unit"}{,}{"Inverse Totient Function"}{,}{"Moebius Function"}{,}{"Next Prime"}{,}{"Next Safe Prime"}{,}{"Number of Positive Divisors"}{,}{"Number of Prime Factors"}{,}{"Number of Primes"}{,}{"Previous Prime"}{,}{"Primitive Root"}{,}{"Pseudo Primitive Root"}{,}{"Sum of Divisors"}\right]\right]{,}\left[{"Signal Processing"}{,}\left[\left[{"Signal Generation"}{,}\left[{"Generate Signal Using Sample Rate"}{,}{"Generate Signal Using Time Range"}\right]\right]{,}\left[{"Visualizations"}{,}\left[{"Generate Periodogram Using Sample Rate"}{,}{"Generate Periodogram Using Time Range"}{,}{"Generate Signal Plot Using Sample Rate"}{,}{"Generate Signal Plot Using Time Range"}\right]\right]\right]\right]\right]$ (1)

The GetGeneratedSubmenu command retrieves a given submenu. For example, to get just the Plots submenu:

 > $\mathrm{GetGeneratedSubmenu}\left(1,\left["Plots"\right]\right)$
 $\left[{"Plot Builder"}\right]$ (2)

It is also possible to retrieve nested submenus:

 > $\mathrm{GetGeneratedSubmenu}\left(1,\left["Units","Affix Unit","Atomic"\right]\right)$
 $\left[{"bohr"}{,}{"electron"}{,}{"electron mass"}{,}{"electron per second"}{,}{"electron*bohr"}{,}{"electron*bohr^2/volt"}{,}{"electron/bohr^2"}{,}{"electron^2/hartree"}{,}{"electron_mass*bohr/second^2"}{,}{"hartree"}{,}{"hartree per second"}{,}{"hartree/bohr"}{,}{"hartree/tesla"}{,}{"hartree/tesla*bohr^3"}{,}{"hartree/tesla^2"}{,}{"permittivity"}{,}{"planck"}{,}{"second"}{,}{"tesla"}{,}{"volt"}{,}{"volt*second"}{,}{"volt*second^2/electron"}{,}{"volt/bohr"}\right]$ (3)

Compatibility

 • The ContextMenu[Test][GetGeneratedSubmenu] command was updated in Maple 2017.