Hi DAW
Trying to customize tooltip formats for cCjGrid, and per CJ help it should be done by customizing the object ToolTipContext associated with the cjGrid crontrol.
By default, in std classes, this COM object is not initialized.
But, when I try to initialize it I get the error below:
Code:
E:\Projetos\DataFlex\DAW Examples\Exemplos_JSON_Db2\Programs\ExemplosJSON.exeImpossível criar instância p/ objeto COM. ProgID/CLSID has not been set, psProgID is NULL
Erro: 4398
GET_ACTIVATE_OJSON_CONSTRAINT_HANDLE (10369) - oClientArea (244) - at address 71509
MSG_ACTIVATE_OJSON_CONSTRAINT (10370) - oClientArea (244) - at address 71459
MSG_ONEXECUTE (8103) - oJsonConstraintMenuItem (146) - at address 68478
MSG_EXECUTE (8102) - oJsonConstraintMenuItem (146) - at address 46729
MSG_ONCOMEXECUTE (7149) - oCommandBarSystem (101) - at address 45719
[start] - at address 71765
Code:
Object oMyCjToolTipContext is a cCJToolTipContext
// Set peAutoCreate to acAutoCreate <<-- error here, if auto-create enabled.
Procedure OnCreate
Set ComMaxTipWidth to 800
End_Procedure
End_Object
Send CreateComObject of oMyCjToolTipContext <<-- or. error here when trying to initialize it manually.
Regards