(クラス)
public abstract BaseMenuBar
{inherits
Menu}
MenuBarの基本的なインターフェイスを定義します。
導入:
バージョン 6.0
コンストラクタ public | {BaseMenuBar.default} |
アクセサ public BaseMenuBar.always-show-selection?:
bool
アクセサ public BaseMenuBar.can-take-menu-focus?:
bool
アクセサ public BaseMenuBar.has-menu-focus?:
bool
ローカル オプション public BaseMenuBar.icon-height:
any ={proc {g:Graphic, e:OriginElastic}:OriginElastic
{if e.preferred-size <= 1in then
{return e}
else
let f:OriginElastic = {dimension-to-origin-elastic 1in}
{return {e.set-preferred-size 1in, dest=f} asa OriginElastic}
}
}
ローカル オプション public BaseMenuBar.icon-width:
any ={proc {g:Graphic, e:OriginElastic}:OriginElastic
{if e.preferred-size <= 0in then
{return e}
else
let f:OriginElastic = {dimension-to-origin-elastic 0in}
{return {e.set-preferred-size 0in, dest=f} asa OriginElastic}
}
}
アクセサ public BaseMenuBar.popup-alongside?:
bool プロパティ 継承 Visual:
_style-element, clonable-class?, completely-clonable-children?, cursor, data-source, display-context, dragee, font-size, graphical-parent, has-key-focus?, input-method-enabled?, input-method-keyboard-mode, name, options, possibly-displayed?, style-class, style-element, style-manager, style-options, test-child?, test-description, test-name, test-parent?, test-visible?, tooltip, user-data, visual-parent
public | {BaseMenuBar.clear}:void |
protected | {BaseMenuBar.handle-alt-key-release}:bool |
protected | {BaseMenuBar.maybe-fire-access-key}:bool |
public | {BaseMenuBar.process-access-char}:bool |
public | {BaseMenuBar.refresh}:void |
メソッド 継承 Menu:
add, get, get-access-items, get-test-property, item-after, item-before, note-item-added, note-item-removed, note-items-cleared, on-pointer-event, record-traversals, remove, test-run, to-Iterator, walk-items, walk-items-proc メソッド 継承 Visual:
add-from-init-args, animate, change-cursor, clonable-appearance?, clone-appearance, clone-appearance-helper, find-graphical-ancestor, find-test-children, get-focus-manager, get-graphical-root, get-gui-path, get-gui-path-to-child, get-layout-context, get-origin-in-graphical-ancestor, get-origin-in-root, get-test-parent, get-text, get-top-left-in-ancestor, get-view, maybe-fire-attach-event, maybe-fire-detach-event, non-keyword-init-arg, note-attached, note-caret-position, note-detaching, on-drag-enter, on-drag-leave, on-pointer-enter, on-pointer-envelope-event, on-pointer-leave, pop-cursor, prepare-test-object, prepare-test-parent, push-cursor, quantize-width, refresh-style-options, release-key-focus, request-draw, request-key-focus, scroll-to-include, test-record, transform-from-display-coordinates, transform-from-graphical-root-coordinates, transform-to-display-coordinates, transform-to-graphical-root-coordinates, xy-offset-to メソッド 継承 GuiEventTarget:
handle-delegate-event, handle-event, on-action, on-cancel-mode, on-command-changed, on-commit, on-composition-change-event, on-composition-result-event, on-context-menu-event, on-current-record-change-request, on-current-record-changed, on-destroy-notify, on-destroy-requested, on-drag-over, on-drag-pointer, on-drag-started, on-drop, on-end-composition-event, on-focus-event, on-focus-in, on-focus-out, on-gesture, on-gesture-begin, on-gesture-end, on-gesture-magnify, on-gesture-pan, on-gesture-rotate, on-gesture-swipe, on-gesture-tap, on-gesture-touch, on-grab-release, on-gui-event, on-input-method-event, on-inspection, on-key-event, on-key-press, on-pointer-button, on-pointer-crossing, on-pointer-motion, on-pointer-press, on-pointer-release, on-pointer-scroll, on-raw-key-event, on-raw-key-press, on-raw-key-release, on-reset, on-selectable-added, on-selectable-removed, on-selection-changed, on-selection-context-activated, on-selection-context-deactivated, on-selection-event, on-start-composition-event, on-start-event, on-stop-event, on-view-activate, on-view-deactivate, on-window-close, remove-event-handlers-for-event-class メソッド 継承 OptionListInterface:
add-option, add-style-option, change-option-parent-notify, clone-options, get-option, get-option-by-name, keyword-init-arg, local-add-notify, local-remove-notify, name-to-option-key, new-option-item, notify-option-children, option-change-notify, option-changed, option-lookup, option-lookup-here, option-propagate-notify, option-set?, propagate-option-change, register-options, remove-option, remove-style-option, remove-styles, set-option-by-name, set-style-option-by-name, unset-option-by-name, unset-style-option-by-name
(コンストラクタ)
public | {BaseMenuBar.default} |
(アクセサ)
アクセサ public BaseMenuBar.always-show-selection?:
bool ポインタが MenuPane や MenuBar の境界の外にあっても、メニュー アイテムの選択を表示するかどうかを示します。
導入:
バージョン 6.0
(アクセサ)
アクセサ public BaseMenuBar.can-take-menu-focus?:
bool BaseMenuBar がメニュー フォーカスを取得できるかどうかを示します。
注意事項
導入:
バージョン 6.0
(非ローカル オプション)
(アクセサ)
アクセサ public BaseMenuBar.has-menu-focus?:
bool BaseMenuBar が現在メニュー フォーカスを持っているうかどうかを示します。
注意事項
導入:
バージョン 6.0
(ローカル オプション)
public BaseMenuBar.icon-height:
any ={proc {g:Graphic, e:OriginElastic}:OriginElastic
{if e.preferred-size <= 1in then
{return e}
else
let f:OriginElastic = {dimension-to-origin-elastic 1in}
{return {e.set-preferred-size 1in, dest=f} asa OriginElastic}
}
}
この BaseMenuBar の MenuItem にアイコンがあれば、その高さです。
注意事項
このオプションの既定値は、アイコン オブジェクト自身に設定されている最大 1in の高さを返すプロシージャです。アイコン自身に設定された高さを使用するためには、null をオプションに設定してください。
Graphic.height で許容される値を設定することができます。
導入:
バージョン 6.0
(ローカル オプション)
public BaseMenuBar.icon-width:
any ={proc {g:Graphic, e:OriginElastic}:OriginElastic
{if e.preferred-size <= 0in then
{return e}
else
let f:OriginElastic = {dimension-to-origin-elastic 0in}
{return {e.set-preferred-size 0in, dest=f} asa OriginElastic}
}
}
この BaseMenuBar の MenuItem にアイコンがあれば、その幅になります。
注意事項
通常、メニューバーにアイコンはないので、このオプションの既定値は 0 の幅を返すプロシージャです。アイコン自身に設定された幅を使用するために、null をオプションに設定してください。
Graphic.width で許容される値を設定することができます。
導入:
バージョン 6.0
(アクセサ)
アクセサ public BaseMenuBar.popup-alongside?:
bool サブメニューが、メニュー アイテムの横ではなく上か下にポップアップされることを示す場合、false を返します。
導入:
バージョン 6.0
(メソッド)
Graphicを設定されたインデックスで Menu に挿入します。
g: 追加する Graphic。
where:
g が挿入される
Menu 内の場所です。有効な場所の値は次の通りです: "default" 、 "last" 、 "first" 、または
Menu.for-loop-count 以下の整数。 それ以外の場合は、エラーがスローされます。
"default" または "last" の場合は、g は Menu の子のリストの最後に追加されます。"first" の場合は、g がリストの最初に挿入されます。
注意事項
導入:
バージョン 6.0
(メソッド)
このメニューバーにいくつかのアイテムの KeyAccelを追加します。
説明
c が既にテーブルに存在する場合、効果はありません。
導入:
バージョン 6.0
(メソッド)
public | {BaseMenuBar.clear}:void |
(メソッド)
e に一致する KeyAccel がある場合、それを返します。そうでなければ、null を返します。
導入:
バージョン 6.0
(メソッド)
protected | {BaseMenuBar.handle-alt-key-release}:bool |
必要であれば、MenuBar のサブクラスがメニューのトラバースを開始することを許可します。
戻り値
トラバースが開始されていれば true を返します。
導入:
バージョン 6.0
(メソッド)
protected | {BaseMenuBar.maybe-fire-access-key}:bool |
この MenuBar にあるメニュー アイテムのアクセラレーターである場合、KeyPress を操作します。
kp: 操作する KeyPress イベントです。
query-only?: true の場合、呼び出しによって KeyPressがアクセラレータかどうかを知ることができますが、アクションは起動しません。
導入:
バージョン 6.0
(メソッド)
public | {BaseMenuBar.process-access-char}:bool |
メニュー アクセス文字を処理します。
プログラミング注意事項
query-only?: このメソッドを呼び出すと、実際にアクセス文字を処理してもしなくても true を返しますが、他に何も実行しません。
導入:
バージョン 6.0
(メソッド)
public | {BaseMenuBar.refresh}:void |
(メソッド)
設定された KeyAccel を、このメニューバーが保持しているテーブルから削除します。
導入:
バージョン 6.0