EnableWidgets Method

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

The EnableWidgets method causes all widgets within the current collection to be enabled or disabled.

VB

object.EnableWidgets EnableWidgs

VC++

HRESULT hr = object->EnableWidgets(BOOL EnableWidgs);

Parameters

EnableWidgs

The variable that enables or disables the widgets. A True value enables the widgets; a False value disables them.

Example

' VB Sample Code
wlwidgcoll As New WaveLinkWidgetCollection
myFactory As New WaveLinkFactory
myWidget As WaveLinkWidget
.
.
.
' Create one or more widgets
Set myWidget = myFactory.CreateButton (1, 2, 0, 0, "Go", _
wlwidgcoll)
' Set the property to disable the widget(s)
myWidget.InitialFlags = INITDISABLED
wlwidgcoll.StoreWidgets
.
.
.
' Now enable the disabled widget(s)
wlwidgcoll.EnableWidgets True

 


Was this article useful?    

The topic was:

Inaccurate

Incomplete

Not what I expected

Other

Privacy and Legal