AGB  ·  Datenschutz  ·  Impressum  







Anmelden
Nützliche Links
Registrieren
Zurück Delphi-PRAXiS Programmierung allgemein GUI-Design mit VCL / FireMonkey / Common Controls Delphi im stringgrid eingabe mit pfeiltaste bestätigen
Thema durchsuchen
Ansicht
Themen-Optionen

im stringgrid eingabe mit pfeiltaste bestätigen

Ein Thema von tom_po · begonnen am 12. Mai 2006 · letzter Beitrag vom 13. Mai 2006
 
tom_po

Registriert seit: 5. Feb 2006
137 Beiträge
 
Delphi 7 Enterprise
 
#21

Re: im stringgrid eingabe mit pfeiltaste bestätigen

  Alt 12. Mai 2006, 20:35
Gut, dass du mich noch mal angeregt hast, deinen Code zu testen, jetzt gehts auf einmal. Weiss nicht, was ich vorher falsch gemacht habe...??
Keine Fehlermeldung mehr...

Jetzt fehlt nur noch dasselbe mit der Pfeiltaste nach links...kannst Du mir da nochmals helfen??

Habe es so probiert, geht aber nicht:
Delphi-Quellcode:
procedure Tlote.StringGrid1KeyDown(Sender: TObject; var Key: Word;
  Shift: TShiftState);
begin
 if (Key = VK_RIGHT) and
      (GetCaretPosition(StringGrid1) = Length(TMyGrid(StringGrid1).InplaceEditor.EditText))
      and (StringGrid1.Col < StringGrid1.ColCount - 1) then begin
         StringGrid1.Col := StringGrid1.Col + 1;
 if (Key = VK_LEFT) and
      (GetCaretPosition(StringGrid1) = Length(TMyGrid(StringGrid1).InplaceEditor.EditText))
      and (StringGrid1.Col < StringGrid1.ColCount - 1) then begin
         StringGrid1.Col := StringGrid1.Col - 1;
   end;
   end;
end;
  Mit Zitat antworten Zitat
 


Forumregeln

Es ist dir nicht erlaubt, neue Themen zu verfassen.
Es ist dir nicht erlaubt, auf Beiträge zu antworten.
Es ist dir nicht erlaubt, Anhänge hochzuladen.
Es ist dir nicht erlaubt, deine Beiträge zu bearbeiten.

BB-Code ist an.
Smileys sind an.
[IMG] Code ist an.
HTML-Code ist aus.
Trackbacks are an
Pingbacks are an
Refbacks are aus

Gehe zu:

Impressum · AGB · Datenschutz · Nach oben
Alle Zeitangaben in WEZ +1. Es ist jetzt 01:21 Uhr.
Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024-2025 by Thomas Breitkreuz