Enable Method

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

The Enable method enables or disables the widget.

VB

object.Enable EnableWidg

VC++

HRESULT hr = object->Enable(BOOL EnableWidg);

Parameters

EnableWidg

The variable that enables or disables the current widget. A True value enables the widget. A False value disables it.

Remarks

A disabled widget will appear on the RF screen, but it will not return when you click on it. Instead, a crosshatch pattern will fill any display text that the widget contains.

Unlike other widgets, a disabled hotspot widget will not appear on the RF screen.

Example

' VB Sample Code
wlwidgcoll As New WaveLinkWidgetCollection
myFactory As New WaveLinkFactory
myWidget As WaveLinkWidget
.
.
.
' Create a widget
Set myWidget = myFactory.CreateButton (1, 2, 0, 0, "Go", _
wlwidgcoll)
' Set the property to disable the widget
myWidget.InitialFlags = INITDISABLED
wlwidgcoll.StoreWidgets
.
.
.
' 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