4.2.18:Stack
menus – for displaying non-standard
menus
スタック・メニュー(非標準的なメニューの表示用)
Note:
Usually a menu in a
Revolution application is implemented as a button. We
recommend menus are implemented using buttons as these will
automatically be drawn with the native theme on each
platform. For more details, see the section on Menus below
秘訣: 通常レヴォルーション・アプリケーションのメニューはボタンとして実装されています。メニューをボタンを使用して実装することをお薦めします。と言うのも、こうすることでメニューは各プラットフォームにネイティブなテーマで自動的に描画されるからです。より詳しくは、次に述べるMenuセクションをご覧下さい
It is also possible to display a stack as a
pulldown,
popup,
or option
menu. Stack menus
are used when a menu needs to contain something other than
just text. For example, a popup menu containing a slider,
or an option menu consisting of icons instead of text, can
be implemented as a stack menu.
スタックをプルダウン、ポップアップ、あるいはオプション・メニューとして表示することも可能です。スタック・メニューはメニューにテキスト以外のなにかを含ませる必要がある時に使われます。例えば、スライダーを含むポップアップ・メニュー、テキストのかわりにアイコンで構成されているオプション・メニュー、はスタック・メニューとして実装することができます。
To display the stack menu, you create a button and set
its menuName
property to the
stack's name. When the user clicks the button, the stack is
displayed with the behavior of a menu. Internally, the menu
is implemented as a window, and you can use the
popup,
pulldown,
or option
command to display
any stack as one of these menu types.
スタック・メニューを表示するには、ボタンを作成しmenuNameプロパティをスタック名に設定します。ユーザーがそのボタンをクリックすると、スタックはメニューと同様な動きで表示されます。内部的には、メニューはウインドウとして実装されており、popup、pulldown、optionコマンドを使うと、これらのメニュー形式の一つとしてどんなスタックも表示することができます。