Class Fox::FXRuler
In: rdoc-sources/FXRuler.rb
Parent: FXFrame

An FXRuler widget can be placed alongside a document to measure position and size of entities within the document.

Events

The following messages are sent by FXRuler to its target:

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.

Ruler options

RULER_NORMAL:Default appearance (default)
RULER_HORIZONTAL:Ruler is horizontal (default)
RULER_VERTICAL:Ruler is vertical
RULER_TICKS_OFF:Tick marks off (default)
RULER_TICKS_TOP:Ticks on the top (if horizontal)
RULER_TICKS_BOTTOM:Ticks on the bottom (if horizontal)
RULER_TICKS_LEFT:Ticks on the left (if vertical)
RULER_TICKS_RIGHT:Ticks on the right (if vertical)
RULER_TICKS_CENTER:Tickmarks centered
RULER_NUMBERS:Show numbers
RULER_ARROW:Draw small arrow for cursor position
RULER_MARKERS:Draw markers for indentation settings
RULER_METRIC:Metric subdivision (default)
RULER_ENGLISH:English subdivision

Message identifiers:

ID_ARROW:write me

Methods

new  

Attributes

font  [RW]  The text font [FXFont]
helpText  [RW]  The status line help text for this ruler [String]
rulerStyle  [RW]  The ruler style [Integer]
textColor  [RW]  The current text color [FXColor]
tipText  [RW]  The tool tip message for this ruler [String]
value  [RW]  The slider value [Integer]

Public Class methods

[Validate]