[lazarus] (no subject)
Marc Weustink
marc.weustink at cuperus.nl
Fri Jan 2 12:39:05 EST 2004
+ From: rstar at mnet-online.de [mailto:rstar at mnet-online.de]
+ Sent: vrijdag 2 januari 2004 14:26
+
+ I have a problem with the different key codes identifiers. I would
+ suggest a carnonical key code
+ like shown below. According to used platform/component-library the
+ dedicated key codes are always
+ being mapped to the same identifier Key_<name>.
+
+
+ //Kylix Qt : Key_Return = 4100;
+ //Microsoft : VK_RETURN = 13;
+ //Lazarus : key_Return = 13;
+ //GTK : GDK_KEY_Return = $FF0D;
Lazarus uses VK_<name> (and if you find a place where this isn't the case
it has to change, let me know)
The idea is that lazarus on all platforms produces the same code.
Eventually there will be an interface function where a VK_<name> can be
mapped to a platform specific value.
Marc
More information about the Lazarus
mailing list