[Lazarus] What conditional define can I use to cover all LCL programs on Mac (Classic or OS X)?
Bart
bartjunk64 at gmail.com
Fri Sep 2 19:06:22 CEST 2011
Hi,
In some TMaskEdit component I hardcoded the use of the Ctrl-key in KeyDown.
I understand that on a Mac in this situation the Meat key should be used.
Now I want to do something like this:
const
{$ifdef allpossiblemacplatforms}
ssModifier = ssMeta;
{$else}
ssModifier = ssCtrl;
{$endif}
What define should I use for the {$ifdef allpossiblemacplatforms} part?
The alternative would be to write widgetset implementations for the
controls KeyDown procedure, which seems a little bit overkill to me.
Bart
More information about the Lazarus
mailing list