Einzelnen Beitrag anzeigen

Benutzerbild von himitsu
himitsu

Registriert seit: 11. Okt 2003
Ort: Elbflorenz
43.166 Beiträge
 
Delphi 12 Athens
 
#6

Re: [OS] - Feststelltasten (Capslock) Anzeige für Notebooks

  Alt 29. Okt 2009, 11:11
Ein "legitimer" Workaround
Und wenn du es nur prüfst, wenn ein entsprechendes KeyBoardEvent reingekommen ist, dann würde ich es mal als "verkraftbar" ansehn.

Na OK, man könnte auch mal nachsehn, ob im KeyState nicht doch irgendwo der richtige Status versteckt ist.

GetKeyState, aber mit etwas Glück ist das auch wo anders so
If the low-order bit is 1, the key is toggled. A key, such as the CAPS LOCK key, is toggled if it is turned on. The key is off and untoggled if the low-order bit is 0. A toggle key's indicator light (if any) on the keyboard will be on when the key is toggled, and off when the key is untoggled.
Garbage Collector ... Delphianer erzeugen keinen Müll, also brauchen sie auch keinen Müllsucher.
my Delphi wish list : BugReports/FeatureRequests
  Mit Zitat antworten Zitat