Class: Fox::FXStatusLine

Inherits:
FXFrame show all
Defined in:
rdoc-sources/FXStatusLine.rb

Overview

The status line normally shows its permanent or “normal” message; when moving the mouse over a widget which provides status line help, the status line temporarily replaces its normal message with the help information; the status line obtains this help message by sending the widget a ID_QUERY_HELP message with type SEL_UPDATE. If this query does not result in a new status string, the target of the status line is tried via an ordinary SEL_UPDATE message. If none of the above work, the status line will display the normal text (i.e. the string set via the #normalText= accessor method). If the message contains a newline character, then the part before the newline will be displayed in the highlight color, while the part after the newline will be shown using the normal text color.

Events

The following messages are sent by FXStatusLine to its target:

SEL_UPDATE

Sent when the widget currently under the mouse cursor doesn’t respond to a SEL_UPDATE message with identifier ID_QUERY_HELP, as described above.

Instance Attribute Summary collapse

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

#height, #visual, #width

Attributes inherited from FXId

#app, #userData, #xid

Instance Method Summary collapse

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) ⇒ FXStatusLine

Return an initialized FXStatusLine instance.

Parameters:

p

the parent window for this shutter Fox::FXComposite

target

the message target, if any, for this shutter Fox::FXObject

selector

the message identifier for this shutter [Integer]



51
52
# File 'rdoc-sources/FXStatusLine.rb', line 51

def initialize(p, target=nil, selector=0) # :yields: theStatusLine
end

Instance Attribute Details

#fontObject

Text font Fox::FXFont



34
35
36
# File 'rdoc-sources/FXStatusLine.rb', line 34

def font
  @font
end

#normalTextObject

Permanent status message [String]



31
32
33
# File 'rdoc-sources/FXStatusLine.rb', line 31

def normalText
  @normalText
end

#textObject

Temporary status message [String]



28
29
30
# File 'rdoc-sources/FXStatusLine.rb', line 28

def text
  @text
end

#textColorObject

Text color Fox::FXColor



37
38
39
# File 'rdoc-sources/FXStatusLine.rb', line 37

def textColor
  @textColor
end

#textHighlightColorObject

Highlight text color Fox::FXColor



40
41
42
# File 'rdoc-sources/FXStatusLine.rb', line 40

def textHighlightColor
  @textHighlightColor
end

Instance Method Details

#to_sObject

Returns the temporary status message (i.e. same as text)



55
56
57
# File 'rdoc-sources/FXStatusLine.rb', line 55

def to_s
  text
end