SftBox/OCX 4.5

SftBoxDropDown.ButtonStyle Property

Softel vdm, Inc.

Defines the appearance of the drop down button.

Syntax       

Get

VB.NET

Style = object.ButtonStyle  As SftBoxDropDownButtonStyleConstants

VB

Style = object.ButtonStyle  As SftBoxDropDownButtonStyleConstants

C#.NET

SftBoxDropDownButtonStyleConstants Style = object.ButtonStyle;

VC++

enum SftBoxDropDownButtonStyleConstants Style = object->ButtonStyle;
enum SftBoxDropDownButtonStyleConstants Style = object->GetButtonStyle();

C

HRESULT object->get_ButtonStyle(enum SftBoxDropDownButtonStyleConstants* Style);

Delphi

Style := object.ButtonStyle  : TOleEnum;

Put

VB.NET

object.ButtonStyle = Style  As SftBoxDropDownButtonStyleConstants

VB

object.ButtonStyle = Style  As SftBoxDropDownButtonStyleConstants

C#.NET

SftBoxDropDownButtonStyleConstants object.ButtonStyle = Style;

VC++

enum SftBoxDropDownButtonStyleConstants object->ButtonStyle = Style;
void object->PutButtonStyle(enum SftBoxDropDownButtonStyleConstants Style);

C

HRESULT object->put_ButtonStyle(enum SftBoxDropDownButtonStyleConstants Style);

Delphi

object.ButtonStyle := Style  : TOleEnum;

object

A SftBoxDropDown object.

Style

Defines the appearance of the drop down button

Style

Value

Description

constSftBoxDDStyleDefault

0

The button style appropriate for the Windows version is used. If Windows themes are available, the drop down button will be rendered using the defined theme's style. constSftBoxDDStyleDefault is the preferred and default setting. If a drop down button image has been defined (DropDown.Image property), the button is rendered using the style constSftBoxDDStyleClassic instead.

constSftBoxDDStyleWinClassic

1

The drop down button is painted by Windows, using a style as introduced originally by Windows 95/Windows 2000. If Windows themes are available, these are not honored. If a drop down button image has been defined (DropDown.Image property), the button is rendered using the style constSftBoxDDStyleClassic instead.

constSftBoxDDStyleClassic

2

This style is rendered by SftBox/OCX and never honors Windows themes. The SftBoxDropDown.HoverButton property has no effect if the button is rendered using this style.

constSftBoxDDStyleHover 

3

The drop down button is located next to the combo box control and is only visible when the control has the input focus or when the mouse cursor is located above the control. It is not visible at design-time. When using this style, the DropDown.Image property must define an image for the drop down button, otherwise an empty button is displayed. If Windows themes are available, the drop down button will be rendered using the defined theme's style.

constSftBoxDDStyleHoverNoThemes 

4

The drop down button is located next to the combo box control and is only visible when the control has the input focus or when the mouse cursor is located above the control. It is not visible at design-time. When using this style, the DropDown.Image property must define an image for the drop down button, otherwise an empty button is displayed. Windows themes are never used, even if available.

Comments

The ButtonStyle property defines the appearance of the drop down button.


Feedback / comments / error reports for this topic
© 2008 - Softel vdm, Inc. - www.softelvdm.com