Class Fox::FXBitmapView
In: rdoc-sources/FXBitmapView.rb
Parent: FXScrollArea

The Bitmap View widget display a scrollable view of a monochrome bitmap image; the bitmap is not owned by the bitmap frame so it must be explicitly deleted elsewhere. Thus, a single bitmap image can be displayed inside multiple bitmap view widgets.

Bitmap alignment styles

BITMAPVIEW_NORMAL:Normal mode is centered
BITMAPVIEW_CENTER_X:Centered horizontally
BITMAPVIEW_LEFT:Left-aligned
BITMAPVIEW_RIGHT:Right-aligned
BITMAPVIEW_CENTER_Y:Centered vertically
BITMAPVIEW_TOP:Top-aligned
BITMAPVIEW_BOTTOM:Bottom-aligned

Events

SEL_RIGHTBUTTONPRESS:sent when the right mouse button goes down; the message data is an FXEvent instance.
SEL_RIGHTBUTTONRELEASE:sent when the right mouse button goes up; the message data is an FXEvent instance.

Methods

new  

Attributes

alignment  [RW]  Current alignment [Integer]
bitmap  [RW]  The bitmap [FXBitmap]
offColor  [RW]  The color used for the "off" bits in the bitmap [FXColor]
onColor  [RW]  The color used for the "on" bits in the bitmap [FXColor]

Public Class methods

[Validate]