Class: Fox::FXOptionMenu
Overview
Option Menu
Events
The following messages are sent by FXOptionMenu to its target:
SEL_KEYPRESS
-
sent when a key goes down; the message data is an FXEvent instance.
SEL_KEYRELEASE
-
sent when a key goes up; the message data is an FXEvent instance.
SEL_LEFTBUTTONPRESS
-
sent when the left mouse button goes down; the message data is an FXEvent instance.
SEL_LEFTBUTTONRELEASE
-
sent when the left mouse button goes up; the message data is an FXEvent instance.
SEL_COMMAND
-
sent when this an option is selected; the message data is the option number.
Instance Attribute Summary collapse
-
#current ⇒ Object
The current option, or
nil
if none FXOption. -
#currentNo ⇒ Object
The current option number, or -1 if none [Integer].
-
#menu ⇒ Object
The pane which will be popped up FXPopup.
Attributes inherited from FXLabel
#font, #helpText, #icon, #iconPosition, #justify, #text, #textColor, #tipText
Attributes inherited from FXFrame
#baseColor, #borderColor, #borderWidth, #frameStyle, #hiliteColor, #padBottom, #padLeft, #padRight, #padTop, #shadowColor
Attributes inherited from FXWindow
#accelTable, #backColor, #defaultCursor, #dragCursor, #first, #focus, #key, #last, #layoutHints, #next, #numChildren, #owner, #parent, #prev, #root, #selector, #shell, #target, #x, #y
Attributes inherited from FXDrawable
Attributes inherited from FXId
Instance Method Summary collapse
-
#getCurrent ⇒ Object
Return a reference to the current option (an FXOption instance).
-
#getCurrentNo ⇒ Object
Get the current option number.
-
#initialize(p, pup = nil, opts = JUSTIFY_NORMAL|ICON_BEFORE_TEXT, x = 0, y = 0, width = 0, height = 0, padLeft = DEFAULT_PAD, padRight = DEFAULT_PAD, padTop = DEFAULT_PAD, padBottom = DEFAULT_PAD) ⇒ FXOptionMenu
constructor
Returns an initialized FXOptionMenu instance.
-
#popped? ⇒ Boolean
Return
true
if popped up. -
#setCurrent(win, notify = false) ⇒ Object
Set the current option.
-
#setCurrentNo(no, notify = false) ⇒ Object
Set the current option number.
Methods inherited from FXLabel
Methods inherited from FXWindow
#acceptDrop, #acquireClipboard, #acquireSelection, #active?, #addHotKey, after?, #after?, before?, #before?, #beginDrag, #canFocus?, #changeFocus, #childAtIndex, #childOf?, #children, #clearDragRectangle, #clearShape, colorType, colorTypeName, commonAncestor, #composeContext, #composite?, #contains?, #containsChild?, #create, #createComposeContext, #cursorPosition, #default?, #defaultHeight, #defaultWidth, deleteType, deleteTypeName, #destroy, #destroyComposeContext, #detach, #didAccept, #disable, #doesSaveUnder?, #dragging?, #dropDisable, #dropEnable, #dropEnabled?, #dropFinished, #dropTarget?, #each_child, #each_child_recursive, #enable, #enabled?, #endDrag, #forceRefresh, #getChildAt, #getDNDData, #getHeightForWidth, #getWidthForHeight, #grab, #grabKeyboard, #grabbed?, #grabbedKeyboard?, #handleDrag, #hasClipboard?, #hasFocus?, #hasSelection?, #height, #height=, #hide, imageType, #inFocusChain?, #indexOfChild, #initial?, #inquireDNDAction, #inquireDNDTypes, #killFocus, #layout, #linkAfter, #linkBefore, #lower, #move, octetType, octetTypeName, #offeredDNDType?, #position, #raiseWindow, #recalc, #releaseClipboard, #releaseSelection, #remHotKey, #removeChild, #repaint, #reparent, #resize, #scroll, #setCursorPosition, #setDNDData, #setDefault, #setDragRectangle, #setFocus, #setInitial, #setShape, #shell?, #show, #shown?, stringType, textType, textTypeName, #tr, #translateCoordinatesFrom, #translateCoordinatesTo, #underCursor?, #ungrab, #ungrabKeyboard, #update, urilistType, urilistTypeName, utf16Type, utf16TypeName, utf8Type, utf8TypeName, #visible=, #width, #width=
Methods included from Responder2
Methods inherited from FXDrawable
Methods inherited from FXId
#create, #created?, #destroy, #detach, #runOnUiThread
Methods inherited from FXObject
#bind, #handle, #load, #save, subclasses
Constructor Details
#initialize(p, pup = nil, opts = JUSTIFY_NORMAL|ICON_BEFORE_TEXT, x = 0, y = 0, width = 0, height = 0, padLeft = DEFAULT_PAD, padRight = DEFAULT_PAD, padTop = DEFAULT_PAD, padBottom = DEFAULT_PAD) ⇒ FXOptionMenu
Returns an initialized FXOptionMenu instance.
56 57 |
# File 'rdoc-sources/FXOptionMenu.rb', line 56 def initialize(p, pup=nil, opts=JUSTIFY_NORMAL|ICON_BEFORE_TEXT, x=0, y=0, width=0, height=0, padLeft=DEFAULT_PAD, padRight=DEFAULT_PAD, padTop=DEFAULT_PAD, padBottom=DEFAULT_PAD) # :yields: theOptionMenu end |
Instance Attribute Details
#current ⇒ Object
The current option, or nil
if none Fox::FXOption
45 46 47 |
# File 'rdoc-sources/FXOptionMenu.rb', line 45 def current @current end |
#currentNo ⇒ Object
The current option number, or -1 if none [Integer]
48 49 50 |
# File 'rdoc-sources/FXOptionMenu.rb', line 48 def currentNo @currentNo end |
#menu ⇒ Object
The pane which will be popped up Fox::FXPopup
51 52 53 |
# File 'rdoc-sources/FXOptionMenu.rb', line 51 def @menu end |
Instance Method Details
#getCurrent ⇒ Object
Return a reference to the current option (an FXOption instance).
67 |
# File 'rdoc-sources/FXOptionMenu.rb', line 67 def getCurrent(); end |
#getCurrentNo ⇒ Object
Get the current option number.
77 |
# File 'rdoc-sources/FXOptionMenu.rb', line 77 def getCurrentNo(); end |
#popped? ⇒ Boolean
Return true
if popped up
80 |
# File 'rdoc-sources/FXOptionMenu.rb', line 80 def popped?; end |
#setCurrent(win, notify = false) ⇒ Object
Set the current option.
62 |
# File 'rdoc-sources/FXOptionMenu.rb', line 62 def setCurrent(win, notify=false); end |
#setCurrentNo(no, notify = false) ⇒ Object
Set the current option number.
72 |
# File 'rdoc-sources/FXOptionMenu.rb', line 72 def setCurrentNo(no, notify=false); end |