Package Win32::GUI::Rebar

Back to the Packages


Constructor

new Win32::GUI::Rebar(PARENT, %OPTIONS)

Creates a new Rebar object; can also be called as PARENT->AddRebar(%OPTIONS). Class specific %OPTIONS are:

  -bandborders => 0/1 (default 0)
    display a border to separate bands.
  -fixedorder => 0/1 (default 0)
    band position cannot be swapped.
  -imagelist => Win32::GUI::ImageList object
  -varheight => 0/1 (default 1)
    display bands using the minimum required height.


Methods

BandCount()

Returns the number of bands in the Rebar control.

DeleteBand(INDEX)

Deletes the zero-based INDEX band from the Rebar.

InsertBand(%OPTIONS)

Inserts a new band in the Rebar control. Allowed %OPTIONS are:

  -index => position or -1 to add it at the end, default -1
  -image => index of an image from the associated ImageList
  -bitmap => Win32::GUI::Bitmap object
  -child => child control
  -foreground => COLOR
  -background  => COLOR
  -width => pixels
  -minwidth => pixels
  -minheight => pixels
  -text => string

RowCount()

Returns the number of rows in the Rebar control.


Events

HeightChange()

Sent when the height of the Rebar control has changed.