Ir al contenido


Foto

[TRUCO DELPHI] Estatus de los Indicadores del Teclado.


  • Por favor identifícate para responder
No hay respuestas en este tema

#1 sir.dev.a.lot

sir.dev.a.lot

    Advanced Member

  • Miembros
  • PipPipPip
  • 545 mensajes
  • Location127.0.0.1

Escrito 25 agosto 2016 - 11:33

[TRUCO DELPHI] Estatus de los Indicadores del Teclado.


delphi
  1. Procedure TForm1.GetStatusInfo;
  2. const
  3. CapPanel = 1;
  4. NumPanel = 2;
  5. ScrlPanel = 3;
  6. DatePanel = 4;
  7. begin
  8. with StatusBar1 do
  9. begin
  10. if GetKeyState(VK_CAPITAL) <> 0 then
  11. StatusBar1.Panels[CapPanel].Text := ' CAP'
  12. else
  13. StatusBar1.Panels[CapPanel].Text := '';
  14. if GetKeyState(VK_NUMLOCK) <> 0 then
  15. StatusBar1.Panels[NumPanel].Text := ' NUM'
  16. else
  17. StatusBar1.Panels[NumPanel].Text := '';
  18. if GetKeyState(VK_SCROLL) <> 0 then
  19. StatusBar1.Panels[ScrlPanel].Text := ' SCRL'
  20. else
  21. StatusBar1.Panels[ScrlPanel].Text := '';
  22. StatusBar1.Panels[DatePanel].Text := FormatDateTime(' mmmm D, YYYYY',
  23. now);
  24. end;
  25. End;

Saludos!


  • 3




IP.Board spam blocked by CleanTalk.