of_disableUpdate

Description

This method works much like PowerBuilder's setRedraw(FALSE). It turns off the update of the XPListBar's display as changes are made and once called requires a call to of_enableUpdate to turn update back on.

Syntax

of_disableUpdate()

Parameter(s)

None

Return Value

None

Usage

This method is very useful when a lot of changes to a XPListBar are required. It will improve performance by not updating the XPListBar on every change.

Examples

of_disableUpdate()

Long                     ll_group
ll_group                 = of_addGroup('File')

of_addLabel('File', 'Open')
of_addLabel('File', 'Save')
of_addSeparator('File')
of_addLink(ll_group, 'Print')
of_addLink(ll_group, 'Preview')

of_enableUpdate()

See Also

Last edited Sep 24, 2016 at 4:57 PM by cjharris02892, version 4