Autor Beitrag
Egbert
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 47

Win XP
D4 Prof
BeitragVerfasst: So 23.11.03 15:29 
Bei Prg-Start lade ich die zuletzt verwendete Datei in ein StringGrid. Leider ist der Cursor nicht sichtbar, sondern erst wenn die StringGrid angeklickt wird. Wie bekomme ich den Cursor sofort zu sehen.
Wird eine Datei allerdings über Menüaufruf eingeladen, ist der Cursor sofort sichtbar.
Wer kann mir helfen?
Schon jetzt Danke… Egbert
Meine EmailAdr: egbertmusmann@gmx.de
mr_data
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 31

Win XP, Win2K
D5, D6 Pers.
BeitragVerfasst: So 23.11.03 15:33 
Hallo,

hast du mal Stringgrid1.Setfocus versucht ?

_________________
"Sehnst du dich nach den Tagen zurück, wo Männer noch Männer waren und ihre Gerätetreiber selbst schrieben?" (Linux-Freigabe 0.02)
------------------------------------
Tschüß Data
Egbert Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 47

Win XP
D4 Prof
BeitragVerfasst: So 23.11.03 15:50 
Wenn es damit getan wäre, hätte ich das Forum nicht gebraucht. Aber trotzdem Danke für deine Antwort
Egbert...
Egbert Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 47

Win XP
D4 Prof
BeitragVerfasst: So 23.11.03 18:44 
Habe die Lösung gefunden und möchte sie gern denen weitergeben, die gleiche Probleme haben. Ob dieses allerdings die beste Lösung ist, sei dahingestellt.

ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
procedure TForm1.FormPaint(Sender: TObject);
var Btn:TButton;
begin
  Btn:=TButton.Create(Self);
  try
    Btn.Parent:=Self;
    Btn.Setfocus;
    StringGrid1.Setfocus;
  finally
    Btn.free;
  end;
end;


Viel Spass damit... Egbert

Moderiert von user profile iconUGrohne: Delphi-Tags eingefügt