SetReBarStyle SEToolBar

<< Click to Display Table of Contents >>

Navigation:  SEUIXP Classes for X# > Classes > SEToolBar >

SetReBarStyle SEToolBar

Previous pageReturn to chapter overviewNext page

Purpose

Set the styles of the rebar control. If the toolbar is no rebar, this mehtod has no function.

 

Prototype

METHOD SetReBarStyle(kStyle, lEnable) CLASS SEToolBar

 

Arguments

<kStyle>

The rebar style to set. Available styles see below.

[<lEnable>]

A logical value. TRUE turns the style on, FALSE turns it off. The default value is TRUE.

 

 

Rebar Control Styles

 

Rebar controls support a variety of control styles in addition to standard window styles.

 

Constants

 

RBS_AUTOSIZE

The rebar control will automatically change the layout of the bands when the size or position of the control changes. An RBN_AUTOSIZE notification will be sent when this occurs.

 

RBS_BANDBORDERS

The rebar control displays narrow lines to separate adjacent bands.

 

RBS_DBLCLKTOGGLE

The rebar band will toggle its maximized or minimized state when the user double-clicks the band. Without this style, the maximized or minimized state is toggled when the user single-clicks on the band.

 

RBS_FIXEDORDER

The rebar control always displays bands in the same order. You can move bands to different rows, but the band order is static.

 

RBS_REGISTERDROP

The rebar control generates RBN_GETOBJECT notification messages when an object is dragged over a band in the control. To receive the RBN_GETOBJECT notifications, initialize OLE with a call to OleInitialize or CoInitialize.

 

RBS_VARHEIGHT

The rebar control displays bands at the minimum required height, when possible. Without this style, the rebar control displays all bands at the same height, using the height of the tallest visible band to determine the height of other bands.

 

RBS_VERTICALGRIPPER

The size grip will be displayed vertically instead of horizontally in a vertical rebar control. This style is ignored for rebar controls that do not have the CCS_VERT style.