Symbian Developer Library

SYMBIAN OS V6.1 EDITION FOR C++

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



Location: uikon.rh

Resource Struct TBAR_PICBUT

TBAR_PICBUT

Support

Supported from 6.0

Description

A toolbar button that can hold two pictures in addition to label text.

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=EEikCtTwoPictureCommandButton;

ID of the type of control (a CEikTwoPictureCommandButton) 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 first bitmap in the bmpfile file.A default value of 0xffff indicates no bitmap.

WORD bmpmask=0xffff;

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

WORD bmpsecondid=0xffff;

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

WORD bmpsecondmask=0xffff;

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