CreateControl (a virtual to create the edit control) 


Top  Previous  Next

 

CreateControl, VIRTUAL, PROTECTED

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