[Lazarus] Command constants (Lazarus internals)

Juha Manninen juha.manninen at phnet.fi
Fri Jan 22 15:27:23 CET 2010


>> I also would have changed those constants to enum to get rid of the const
>> array name mappings.

> I removed them in 23531.

Yes I see. Is it so easy? I still don't seem to understand the command and 
shortcut code fully. Where does the textual name for the command come from in 
your new code (like IDECommandToIdent)?
I only see a name in TKeyCommandRelationList.CreateDefaultMapping in unit 
KeyMapping, but it is a longer name, not the same as in the (now gone) const 
array had.

What do you say about my patch? The SynEdit commands can be used for Designer 
when mapped correctly and the code works.
Maybe there is a bigger plan for forwarding the commands. Now I just forwarded 
some of them.

Regards,
Juha Manninen




More information about the Lazarus mailing list