of_disableUpdate

Description

This method works much like PowerBuilder's setRedraw(FALSE). It turns off the update of the toolbar'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 toolbar are required. It will improve performance by not updating the toolbar on every change.

Examples

of_disableUpdate()

of_addItem('Open')
of_addItem('Save')
of_addSeparator()
of_addItem('Print')
of_addItem('Preview')

of_enableUpdate()

See Also

Last edited Sep 24, 2016 at 3:00 PM by cjharris02892, version 2