メニュー・ビルダーを使う
The menu builder allows you to create and edit a standard menu bar that will work correctly regardless of the platform you intend to deploy on. On Windows and Unix, menus built with the Menu Builder will appear in the top of the window. On Mac OS they will be displayed in the main menu bar. It is also possible to generate a menu bar by script. For more details, see the section on Programming a User Interface.
メニュー・ビルダは、プロットフォームを選ばずに機能する標準メニュー・バーを作ったり、編集したりするのに使います。ウィンドウズとユニックスでは、メニュー・ビルダで作ったメニューはウインドウの上部に現れます。マックOSでは、メイン・メニュー・バーの中に現れます。スクリプトでメニュー・バーを生成することもできます。詳細は、Programming a User Interfaceセクションをご覧下さい。
Choose Tools -> Menu Builder to open the Menu Builder.
メニュー・ビルダーを開くには、Tools -> Menu Builderを実行します。
Figure 43 – Menu Builder
図43 ー メニュー・ビルダ
| Preview | This option allows you to preview your menu bar in the main menu bar. It only applies on Mac OS systems where the option Set as Menu Bar on Mac OS has been turned on. |
| プレビュー | このオプションを使うと、メイン・メニュー・バー内のメニュー・バーを確認できます。この機能は、マックOSシステムでSet as Menu Barオプションがオンになっている場合だけ有効です。 |
| Important: To bring back the Revolution development menu bar when working with a stack that has this option turned on, click on a Revolution IDE window such as the Tool bar. | |
| 重要: このオプションがオンになっているスタックでレヴォルーション開発メニューに戻すには、ツール・バーなどのレヴォルーションIDEウインドウをクリックします。 | |
| Menu bar settings | This area specifies the
main settings for your menu bar. Use the
New button to create a new menu bar in the
current top most editable stack. Place the name for
your menu bar in the text area.
Delete will permanently delete your menu bar. Use the Edit button to load an existing menu bar from the currently editable stack, ready to be edited in the area below. |
| メニュー・バー設定 |
このエリアでメニュー・バーの主要な設定を指定します。Newボタンを使って現在開いている一番上の編集可能スタックに新しいメニューバーを作ります。 Deleteボタンはメニューバーを完全に削除します。Editボタンは現在開いている編集可能なスタックから既存のメニュー・バーをロードし、下のエリアに編集可能なものとして表示します。 |
| Menu edit area | Select a menu to work on from the scrolling list. At a minimum your application should have a File, Edit and Help menu. These menus are create for you automatically when you create a new menu bar. To create a new menu, move the orange divider bar to the position in the menu bar you want to create the new menu, and press New Menu. Disable the currently selected menu using the Disabled button. Choose the keyboard shortcut (the portion of the name that is underlined), using the Mnemonic popup menu (Windows, Linux & Unix only). To move a menu the list, select it then press the up or down arrows (to the right of the name area). |
| メニュー編集エリア | スクロール・リストから作業対象のメニューを選択します。少なくともアプリケーションには、ファイル、編集、ヘルプのメニューを含める必要があります。この三つのメニューは、新規メニュー・バーを作ると、自動的に作られます。新規メニューを作るには、新しいメニューを表示させたい位置までオレンジ色の区切りバーを動かし、New Menuボタンを押します。現在選択中のメニュー項目を機能しないようにするには、Disabledボタンを使います。キーボード・ショートカット(下線のある名前の一部)を選択するには、Mnemonicポップアップ・メニューを使います(この機能はウィンドウズ、リナックス、ユニックスだけに有効です)。リスト内のメニュー項目を移動させるには、該当項目を選択し(項目名エリアの右にある)上又は下矢印を押します。 |
| Menu content area | Select a menu item to work on from the scrolling list. To create a new menu item, move the orange divider bar to the position in the menu bar you want to create the new menu, and press New Item. Disable the currently selected item using the Disabled button. Choose the keyboard shortcut (the portion of the name that is underlined, for use when the menu is open), using the Mnemonic popup menu (Windows, Linux & Unix only). To move a menu item up or down the list, select it then press the up or down arrows (to the right of the name area). To move items into a submenu, press the Right arrow, or press the Left arrow to move a submenu item back into the main menu bar. To insert a divider, position the orange divider bar where you want the divider, the press the blue divider button (top right). To make the menu item a Checkbox or Diamond option, choose the appropriate option from the Mark popup menu. To create a control key shortcut for the item, press the Shortcut check box and enter the letter you want to use for the shortcut. To understand the symbols that are created next to the menu items, see the section on Menu Bars within the chapter on Programming a User Interface. |
| メニュー項目エリア | スクローリング・リストから作業対象のメニューを選択します。新規メニュー項目を作るには、新規メニューを作りたい位置にオレンジの区切りバーを移動させ、New Itemを押します。現在選択中の項目を機能しないようにするには、Disabledボタンを押します。キーボード・ショートカット(メニューが開いている時に使われる、下線のある名前の一部)を選ぶには、 Mnemonicポップアップ・メニューを使います(この機能はウィンドウズ、リナックス、ユニックスだけに有効です)。メニュー項目をリスト内で上下に移動させるには、対象項目を選択し、次に(名前エリアの右にある)上又は下矢印を押します。項目をサブメニューに移すには右矢印を押します。サブメニュー項目をメインメニューに戻すには左矢印を押します。項目間に区切りを設定するには、区切りを設定したい位置にオレンジの区切りバーを移動させ、(エリア右上にある)青の区切りボタンを押します。コントロール・キーによる項目へのショートカットを設定するには、Shortcut check boxを押し、ショートカット用の文字を入力します。メニュー項目横に作られるシンボルを理解するには、Programming a User Interface章のMenu Barsセクションをご覧下さい。 |
| Scripting | Edit Script opens the Script Editor for the currently selected menu. Auto Script places a blank script within the currently selected button with spaces to insert actions for each of the menu items button with spaces to insert actions for each of the menu items within that item. We recommend you press Auto Script before pressing Edit Script when you create a menu. |
| スクリプト | Edit Scriptは現在選択中のメニューのスクリプト・エディタを開きます。Auto Scriptは、現在選択中のボタン内に空のスクリプトを設定します。そのスペースに、各メニュー項目に設定するアクションを挿入します。メニュー作成時には、Edit Scriptを押す前にAuto Scriptを押すようにしてください。 |