DisplayFlags Property

This member of WaveLinkWidget Object is supported on: Palm, CE

The DisplayFlags property stores and retrieves the label formatting flags of the widget.

VB

DsplFlags = object.DisplayFlags

object.DisplayFlags = DsplFlags

VC++

HRESULT hr = object->get_DisplayFlags(long *DsplFlags);

HRESULT hr = object->put_DisplayFlags(long DsplFlags);

Return Values

DsplFlags

The variable that retrieves the label formatting flags

Parameters

DsplFlags

The variable that specifies the label formatting flags

Remarks

Valid settings for the label formatting flag are:

CENTERJUST

Center-justified label text

LEFTJUST

Left-justified label text

RIGHTJUST

Right-justified label text

The possible additional formatting flags for a push button widget are:

PBHORIZONTAL

Positions a push button widget horizontally.

PBVERTICAL

Positions a push button widget vertically.

PBPROPORTIONAL

Sizes each box of a push button widget to the size of the text that it contains.

PBFIXED

Sizes each box of a push button widget to the same size.

Example

' VB Sample Code
Dim wlwidgcoll As New WaveLinkWidgetCollection
Dim myFactory As New WaveLinkFactory
Dim myWidget As WaveLinkWidget
.
.
.
' Create a widget
Set myWidget = myFactory.CreateButton (1, 2, 0, 0, "Go", _
wlwidgcoll)
' Set the property to format the widget display
myWidget.DisplayFlags = CENTERJUST
wlwidgcoll.StoreWidgets

 


Was this article useful?    

The topic was:

Inaccurate

Incomplete

Not what I expected

Other

Privacy and Legal