SftOptions 1.0

SftOptions.InitializationComplete Method

Softel vdm, Inc.

Signals that all entries have been added.

Syntax       

VB.NET

object.InitializationComplete

VB

object.InitializationComplete

C#.NET

void object.InitializationComplete();

VC++

HRESULT object->InitializationComplete();

C

HRESULT object->raw_InitializationComplete();

Delphi

procedure object.InitializationComplete();

object

A SftOptions object.

Comments

The InitializationComplete method signals that all entries have been added.

If entries are added or removed, their properties (such as SftOptionsEntry.Text) are modified, which can affect horizontal scrolling, the InitializationComplete method should be used.

The InitializationComplete method recalculates the horizontal scrolling extent and optimizes the horizontal scrollbar.  If no entry is selected, the first entry is selected and the SelectionChange event occurs.

The InitializationComplete method does not have to be called if all properties and entries are defined at design-time.  However, it is perfectly acceptable to use the InitializationComplete method in this case.

Example

SftOptions1.Add "", "Topic1", "Sample Topic 1", entrySftOptionsTopic, "", "", _
    Nothing, "", "", "", ""
SftOptions1.Add "", "Topic2", "Sample Topic 2", entrySftOptionsTopic, "", "", _
    Nothing, "", "", "", ""
SftOptions1.InitializationComplete  

See Also  SftOptions Object | Object Hierarchy


Feedback / comments / error reports for this topic
© 2002 - Softel vdm, Inc. - www.softelvdm.com