SftMask/OCX 6.5

SftMask.DropDownWidth Property

Softel vdm, Inc.

Defines the width of the drop down button.

Syntax       

Get

VB.NET

Style = object.DropDownWidth  As SftMaskDropDownWidthConstants

VB

Style = object.DropDownWidth  As SftMaskDropDownWidthConstants

C#.NET

SftMaskDropDownWidthConstants Style = object.DropDownWidth;

VC++

enum SftMaskDropDownWidthConstants Style = object->DropDownWidth;
enum SftMaskDropDownWidthConstants Style = object->GetDropDownWidth();

C

HRESULT object->get_DropDownWidth(enum SftMaskDropDownWidthConstants* Style);

Delphi

Style := object.DropDownWidth  : TOleEnum;

Put

VB.NET

object.DropDownWidth = Style  As SftMaskDropDownWidthConstants

VB

object.DropDownWidth = Style  As SftMaskDropDownWidthConstants

C#.NET

SftMaskDropDownWidthConstants object.DropDownWidth = Style;

VC++

enum SftMaskDropDownWidthConstants object->DropDownWidth = Style;
void object->PutDropDownWidth(enum SftMaskDropDownWidthConstants Style);

C

HRESULT object->put_DropDownWidth(enum SftMaskDropDownWidthConstants Style);

Delphi

object.DropDownWidth := Style  : TOleEnum;

object

A SftMask object.

Style

Defines the width of the drop down button.

Name

Value

Description

ddwidthSftMaskNormal

0

Normal - The width of the drop down button is determined automatically (based on the control's height) to make the button appear as square as possible.

ddwidthSftMaskVScroll

1

Width of a vertical scrollbar - The width of the drop down button is identical to the width of a vertical scrollbar as defined by the Windows API GetSystemMetrics(SM_CXVSCROLL) and a down arrow is displayed.

ddwidthSftMaskCalendar

2

On Windows Vista and above, if Windows themes are used, the drop down button is two times the width of a vertical scrollbar and an icon representing a popup calendar is displayed instead of a down arrow. On earlier operating systems or if Windows themes are not used, the ddwidthSftMaskCalendar is equivalent to ddwidthSftMaskVScroll.

Comments

The DropDownWidth property defines the width of the drop down button.

The EditStyle property controls the presence of the the drop down button.


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