User Tools

Site Tools


createcontrol_a_virtual_to_create_the_edit_control_.htm
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

createcontrol_a_virtual_to_create_the_edit_control_.htm.txt · Last modified: 2021/04/15 15:57 by 127.0.0.1