Autor Beitrag
ebs
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 213

Suse Linux 9.2, Win 98, Win NT, Win XP, Win for Workgroups, Win XP SP2, Dos 6.1
D3 Prof, D2005 PE, Delphi 2006 Prof.
BeitragVerfasst: Mo 07.11.05 16:19 
Hallo! :D
Scheinbat krieg ich heute nichts auf die Reihe :(
Ich habe ein Stringgrid. Ich will das aber nur zur darstellung verwenden, deshalb soll man nichts markieren können. Das habe ich aber auch noch hingekriegt. :mrgreen: Meim Problem ist vielmehr, fass Delphi von Anfang an einige Zellen markiert. Wie schalte ich das aus?
Matthias-K
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 271

Win95, Win98, Win2000, WinXP, Linux
D2, D4 Client/Server, D5 Enterprise, D6 Enterprise, D7 Enterprise, Delphi2005, C/C++ 3.0, C/C ++ 5.0, C/C++ 6.0
BeitragVerfasst: Mo 07.11.05 16:38 
indem du einem anderen element den focus gibst.

matthias

_________________
Ein Spezialist ist ein Mensch, der immer mehr von immer weniger weis, bis er alles von nichts weis!
smiegel
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 992
Erhaltene Danke: 1

WIN 7
D7 Prof., C#, RAD XE Prof.
BeitragVerfasst: Di 08.11.05 10:31 
Hallo,

versuche es einmal damit:
ausblenden Delphi-Quelltext
1:
2:
3:
...
  StringGrid1.Selection:=TGridRect(Rect(-1, -1, -1, -1));
...

_________________
Gruß Smiegel
Ich weiß, daß ich nichts weiß, aber ich weiß mehr als die, die nicht wissen, daß sie nichts wissen. (Sokrates)
Keldorn
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 2266
Erhaltene Danke: 4

Vista
D6 Prof, D 2005 Pro, D2007 Pro, DelphiXE2 Pro
BeitragVerfasst: Di 08.11.05 12:42 
Bei smiegels Lösung darf man nur nicht außerhalb des Grids am Mausrad drehen, sonst sieht man eine AV. Man kann aber die beiden mousewheel-Ereignisse abfrangen und entsprechend reagieren.

Mfg Frank

_________________
Lükes Grundlage der Programmierung: Es wird nicht funktionieren.
(Murphy)