Enable Method

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

The Enable Method enables or disables the specified widget.

Syntax

public void Enable(boolean enableWidget)
throws WaveLinkError

Parameters

enableWidget

A true or false value that determines whether the widget is enabled or disabled

Throws

WaveLinkError

Remarks

When the enableWidget parameter is set to true, the widget is enabled, when it is set to false, the widget is disabled.

A disabled widget appears on the screen, but does not return when you click it. The appearance of a disabled widget is platform dependent. Typically, a disabled widget is either grayed out or its display text is crosshatched.

A disabled hotspot widget does not appear on the RF screen.

Example

WaveLinkFactory factoryIface = new WaveLinkFactory();

WaveLinkWidgetCollection colIface = new WaveLinkWidgetCollection();

WaveLinkWidget myWidget

 

try {

.

.

.

myWidget = factoryIface.CreateButton(1, 2, 0, 0, " Go ", colIface);

// Set the property to disable the widget.

myWidget.setInitialFlags(WaveLinkWidget.INITDISABLED);

colIface.StoreWidgets();

}

catch (WaveLinkError wlErr) {

//Do error handling

}

.

.

.

// Now enable the disabled widget.

myWidget.Enable(true);

 


Was this article useful?    

The topic was:

Inaccurate

Incomplete

Not what I expected

Other

Privacy and Legal