addControl - how to add control?
Publicado: Lun Ene 03, 2022 4:15 pm
Hi,
I'm trying to create a plugin to insert controls on the Form. Where am I going wrong?
I added the control, but with problems... Control is in edit mode
different problem
I'm trying to create a plugin to insert controls on the Form. Where am I going wrong?
I added the control, but with problems... Control is in edit mode
Código: Seleccionar todo
with object oObj:=TDbMaskEdit():New(::IInspector:oActiveForm) // Parent is TFormEditor
:SetBounds( 50, 30, 80, 20 )
:cVarname := "oTmp" + ToString(++nId)
:Create()
end with
::IInspector:AddControl( oObj, ::IInspector:oActiveForm, .t. )
// doc: AddControl( <oCtrl>, <oParent>, <lSelect> ): add a new control.
Código: Seleccionar todo
with object oObj:=TDbMaskEdit()
:SetBounds( 50, 30, 80, 20 )
:cVarname := "oTmp" + ToString(++nId)
end with
::IInspector:AddControl( oObj, ::IInspector:oActiveForm, .t. ) // Parent is TFormEditor