Navigation:  ABC Library Reference > EditClass > EditClass Methods >====== CreateControl (a virtual to create the edit control) C6H0009.jpg ====== Previous pageReturn to chapter overviewNext page

CreateControl, VIRTUAL, PROTECTED

blk2blue.jpg

The CreateControl method is a virtual placeholder to create the appropriate window control for derived classes.

Implementation:

The Init method calls the CreateControl method. The CreateControl method must set the value of the FEQ property.

Example:

EditClass.Init PROCEDURE(UNSIGNED FieldNo,UNSIGNED ListBox,*? UseVar)

CODE

SELF.ListBoxFeq = ListBox

SELF.CreateControl()

ASSERT(SELF.Feq)

SELF.UseVar &= UseVar

SELF.Feq{PROP:Text} = ListBox{PROPLIST:Picture,FieldNo}

SELF.Feq{PROP:Use} = UseVar

SELF.SetAlerts

See Also:     FEQ, EditCheckClass.CreateControl, EditColorClass.CreateControl, EditEntryClass.CreateControl, EditFileClass.CreateControl, EditDropListClass.CreateControl, EditMultiSelectClass.CreateControl