Symbian Developer Library

SYMBIAN OS V6.1 EDITION FOR C++

[Index] [Glossary] [Previous] [Next]



Location: uikon.rh

Resource Struct TBAR_BUTTON

TBAR_BUTTON

Support

Supported from 6.0

Description

A button for a toolbar.

Resources with this structure are used in the controls[] field of a TOOLBAR resource to created and initialise a component button of the toolbar.

See also:

WORD type=0;

ID of the type of control to use.

WORD id=0;

The command invoked when this control is activated.

WORD flags=0;

Flags to set how the control is sized. This is either EEikToolBarCtrlHasSetMinLength (fixed length) or EEikToolBarCtrlIsStretchable (stretches to fill toolbar).

WORD length=0;

The length of this control. This is only used if flags is set to EEikToolBarCtrlHasSetMinLength.

BYTE version=0;

Unused.

WORD behavior=0; 

Button behaviour flags.

See also:

WORD layout=0;

Flags to define how the horizontal space is handled between the button’s text and image.

See also:

LTEXT helptxt="";

Help text for the button.

LLINK extension=0;

Unused.

LTEXT txt="";

Specifies the button’s text label.The default is none.

LTEXT bmpfile="";

Specifies the bitmap filename from which to read the button’s image.The default is the eikon .mbm file eikon.mbm.

WORD bmpid=0xffff;

Specifies the index of the bitmap in the bmpfile file.A default value of 0xffff indicates no bitmap.

WORD bmpmask=0xffff;

Specifies the index of the bitmap mask in the file. A default value of 0xffff indicates no bitmap mask.