TreeListBeginLoad

Note: This page includes content based on the F1 documentation for Centura development. It may be partially converted to support APF development, but should be regarded to be of uncertain actuality. It is provided as is. Eventually, it should be replaced by documentation available from within Visual Studio.

SalNumber TreeListBeginLoad(  )

The TreeListBeginLoad method prepares the list box for bulk loading of nodes. Applications should call this method before inserting a potentially large number of nodes in the list.

The TreeListEndLoad restores settings to their normal values after bulk loading of nodes. Applications must call this method after calling TreeListBeginLoad and inserting the nodes.

Returns

This method does not return a value.

Comments

Calling this method will among other things turn off screen repainting to increase performance while inserting nodes. It is however essential to call TreeListEndLoad when all nodes have been inserted to turn screen repainting back on. If this is forgotten the list will not repaint and will appear to have "frozen".

Example

lbCompanyList.TreeListBeginLoad();
...<insert lot's of nodes>...
lbCompanyList.TreeListEndLoad();