AddExistingControl - control does not select, activates
Publicado: Lun Feb 07, 2022 1:57 pm
Hi,
after i inserted the control into the Form, it is not selected, (I need to click on control to activate in object inspector).
I will email you a small complete project.
Regards,
after i inserted the control into the Form, it is not selected, (I need to click on control to activate in object inspector).
I will email you a small complete project.
Código: Seleccionar todo
if nsBtn = BTN_MSK
with object oCtrl:=TDbMaskEdit():New(oParent)
:SetBounds( aPos[1], aPos[2], 80, 20 )
//:oDataField:=cField
:Create()
end with
endif
//oPlugin:IInspector:AddControl(oCtrl, oParent) // It does not work properly, see: https://forum.xailer.com/viewtopic.php?t=14192
oPlugin:IInspector:oActiveForm:AddExistingControl(oCtrl)
//oPlugin:IInspector:SetControl(oCtrl)