Class: Fox::FXDriveBox

Inherits:
FXListBox show all
Defined in:
rdoc-sources/FXDriveBox.rb

Overview

Drive box

Events

The following messages are sent by FXDriveBox to its target:

SEL_CHANGED

sent when the current item changes; the message data is the current drive

SEL_COMMAND

sent when a new item is selected from the list; the message data is the drive

Instance Attribute Summary collapse

Attributes inherited from FXListBox

#backColor, #currentItem, #font, #helpText, #numItems, #numVisible, #selBackColor, #selTextColor, #textColor, #tipText

Attributes inherited from FXPacker

#baseColor, #borderColor, #borderWidth, #frameStyle, #hSpacing, #hiliteColor, #packingHints, #padBottom, #padLeft, #padRight, #padTop, #shadowColor, #vSpacing

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

#height, #visual, #width

Attributes inherited from FXId

#app, #userData, #xid

Instance Method Summary collapse

Methods inherited from FXListBox

#appendItem, #clearItems, #each, #extractItem, #fillItems, #findItem, #findItemByData, #first, #getItemData, #getItemIcon, #getItemText, #insertItem, #itemCurrent?, #moveItem, #paneShown?, #prependItem, #removeItem, #retrieveItem, #setItem, #setItemData, #setItemIcon, #setItemText, #sortItems

Methods inherited from FXComposite

#maxChildHeight, #maxChildWidth

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

#connect

Methods inherited from FXDrawable

#resize

Methods inherited from FXId

#create, #created?, #destroy, #detach, #runOnUiThread

Methods inherited from FXObject

#bind, #handle, #load, #save, subclasses

Constructor Details

#initialize(p, target = nil, selector = 0, opts = FRAME_SUNKEN|FRAME_THICK|LISTBOX_NORMAL, x = 0, y = 0, width = 0, height = 0, padLeft = DEFAULT_PAD, padRight = DEFAULT_PAD, padTop = DEFAULT_PAD, padBottom = DEFAULT_PAD) ⇒ FXDriveBox

Returns an initialized FXDriveBox instance



21
22
# File 'rdoc-sources/FXDriveBox.rb', line 21

def initialize(p, target=nil, selector=0, opts=FRAME_SUNKEN|FRAME_THICK|LISTBOX_NORMAL, x=0, y=0, width=0, height=0, padLeft=DEFAULT_PAD, padRight=DEFAULT_PAD, padTop=DEFAULT_PAD, padBottom=DEFAULT_PAD) # :yields: theDriveBox
end

Instance Attribute Details

#associationsObject

File associations Fox::FXFileDict



18
19
20
# File 'rdoc-sources/FXDriveBox.rb', line 18

def associations
  @associations
end

#driveObject

Current drive [String]



15
16
17
# File 'rdoc-sources/FXDriveBox.rb', line 15

def drive
  @drive
end

Instance Method Details

#getAssociationsObject

Return file associations (an FXFileDict instance).



43
# File 'rdoc-sources/FXDriveBox.rb', line 43

def getAssociations(); end

#getDriveObject

Return current drive as a string.



33
# File 'rdoc-sources/FXDriveBox.rb', line 33

def getDrive(); end

#setAssociations(assoc) ⇒ Object

Change file associations, where assoc is an FXFileDict instance.



38
# File 'rdoc-sources/FXDriveBox.rb', line 38

def setAssociations(assoc); end

#setDrive(drive) ⇒ Object

Set current drive, where drive is a string. Returns true on success, false on failure.



28
# File 'rdoc-sources/FXDriveBox.rb', line 28

def setDrive(drive); end