Sha256: 494ff574a61cfac9adece9efa28bc66d5ff7af758963d795bff0c3d3de36adaf

Contents?: true

Size: 1.95 KB

Versions: 37

Compression:

Stored size: 1.95 KB

Contents

module Fox
  #
  # 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.
  #
  class FXStatusLine < FXFrame

    # Temporary status message [String]
    attr_accessor :text
    
    # Permanent status message [String]
    attr_accessor :normalText
    
    # Text font [FXFont]
    attr_accessor :font
    
    # Text color [FXColor]
    attr_accessor :textColor
    
    # Highlight text color [FXColor]
    attr_accessor :textHighlightColor

    #
    # Return an initialized FXStatusLine instance.
    #
    # ==== Parameters:
    #
    # +p+::	the parent window for this shutter [FXComposite]
    # +target+::	the message target, if any, for this shutter [FXObject]
    # +selector+::	the message identifier for this shutter [Integer]
    #
    def initialize(p, target=nil, selector=0) # :yields: theStatusLine
    end
    
    # Returns the temporary status message (i.e. same as _text_)
    def to_s
      text
    end
  end
end

Version data entries

37 entries across 37 versions & 2 rubygems

Version Path
fxruby-1.6.22.pre2-x86-mingw32 rdoc-sources/FXStatusLine.rb
fxruby-1.6.22.pre2 rdoc-sources/FXStatusLine.rb
fxrubi-1.6.22.pre1-x86-mingw32 rdoc-sources/FXStatusLine.rb
fxrubi-1.6.22.pre1 rdoc-sources/FXStatusLine.rb
fxruby-1.6.20-x86-mingw32 rdoc-sources/FXStatusLine.rb
fxruby-1.6.20-x86-linux rdoc-sources/FXStatusLine.rb
fxruby-1.6.20 rdoc-sources/FXStatusLine.rb
fxruby-1.6.20-universal-darwin-10 rdoc-sources/FXStatusLine.rb
fxruby-1.6.19-x86-mingw32 rdoc-sources/FXStatusLine.rb
fxruby-1.6.14-mswin32 rdoc-sources/FXStatusLine.rb
fxruby-1.6.13-mswin32 rdoc-sources/FXStatusLine.rb
fxruby-1.6.10 rdoc-sources/FXStatusLine.rb
fxruby-1.6.11 rdoc-sources/FXStatusLine.rb
fxruby-1.6.12 rdoc-sources/FXStatusLine.rb
fxruby-1.6.13 rdoc-sources/FXStatusLine.rb
fxruby-1.6.14-universal-darwin-9 rdoc-sources/FXStatusLine.rb
fxruby-1.6.15-universal-darwin-9 rdoc-sources/FXStatusLine.rb
fxruby-1.6.14 rdoc-sources/FXStatusLine.rb
fxruby-1.6.15-x86-mswin32-60 rdoc-sources/FXStatusLine.rb
fxruby-1.6.15 rdoc-sources/FXStatusLine.rb