This member of Class WaveLinkWidget is supported on: Palm, CE
The DisplayFlags Property determines the label formatting flags of the widget.
Syntax
public long getDisplayFlags()
public void setDisplayFlags(long displayFlags)
Parameters
displayFlags |
The variable that specifies the label formatting flags |
Returns
The label formatting flags
Remarks
Valid settings for the label formatting flags include:
CENTERJUST - Center justify the label
LEFTJUST - Left justify the label
RIGHTJUST - Right justify the label
The additional possible flags for a push button widget are:
PBFIXED - Size each push button equally
PBHORIZONTAL - Position push button horizontally
PBPROPORTIONAL - Position to the size of the text
PBVERTICAL - Postion push button vertically
See Constant Values for the numeric equates returned by the function.
Example
WaveLinkFactory factoryIface = new WaveLinkFactory();
WaveLinkWidgetCollection colIface = new WaveLinkWidgetCollection();
WaveLinkWidget myWidget;
try {
.
.
.
myWidget = factoryIface.CreateButton(4, 12, 0, 0, " Start ", colIface);
// Set the property to format the widget display.
myWidget.setDisplayFlags(WaveLinkWidget.CENTERJUST);
colIface.StoreWidgets();
}
catch (WaveLinkError wlErr) {
// Do error handling
}
Was this article useful?
The topic was:
Inaccurate
Incomplete
Not what I expected
Other