esgici wrote:Roberto Lopez wrote:
I'll do a better thing. I'll let you o find the answer
.
Well... agreed; this is better..
But no the best!
A last question for this topic : How we will find answer
[37] unless you said :
aJustify := _HMG_SYSDATA [ 37 ]
Is this possible by only looking at the source code ?
--
esgici
I guess yes
The line 300 in h_grid.prg says:
_HMG_SYSDATA [ 37 ] [k] := aJust
Being 'aJust' the justify array passed as parameter to _DefineGrid procedure.
For clarification on the prior topic arrond line 4493 in 'h_windows.prg' you'll find:
Code: Select all
*------------------------------------------------------------------------------*
Procedure InstallEventHandler ( cProcedure )
*------------------------------------------------------------------------------*
aadd ( _HMG_SYSDATA [ 60 ] , AllTrim ( Upper ( cProcedure ) ) )
Return
*------------------------------------------------------------------------------*
Procedure InstallPropertyHandler ( cPropertyName , cSetProcedure , cGetProcedure )
*------------------------------------------------------------------------------*
aadd ( _HMG_SYSDATA [ 61 ] , { AllTrim ( Upper ( cPropertyName ) ) , AllTrim ( Upper ( cSetProcedure ) ) , AllTrim ( Upper ( cGetProcedure ) ) } )
Return
*------------------------------------------------------------------------------*
Procedure InstallMethodHandler ( cEventName , cMethodProcedure )
*------------------------------------------------------------------------------*
aadd ( _HMG_SYSDATA [ 62 ] , { AllTrim ( Upper ( cEventName ) ) , AllTrim ( Upper ( cMethodProcedure ) ) } )
Return
So:
_HMG_SYSDATA [ 60 ] is the user events array,
_HMG_SYSDATA [ 61 ] is the user properties array
_HMG_SYSDATA [ 62 ] is the user methods array
But more important is that you don't need to know these 'numbers' since UCI hides for you.
You must not acces that array directly, but via the procedures InstallEventHandler, InstallPropertyHandle and InstallMethodHandler.
Regards,
Roberto.