Autor Beitrag
nicron
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 21



BeitragVerfasst: Sa 23.11.02 19:00 
Wie kann man in einem Grid eine checkbox oder einen Button realisieren?

_________________
We do right noone remembers, we do wrong noone forgets...
Tino
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Veteran
Beiträge: 9839
Erhaltene Danke: 45

Windows 8.1
Delphi XE4
BeitragVerfasst: Sa 23.11.02 21:32 
Hallo,

du könntest entweder die OnDraw-Events benutzen und die Checkbox und/oder Buttons selbst zeichnen oder Du bastelst Dir einen eigenen Inplace-Editor. Ich persönlich würde zu der letzten Methode tendieren!

Gruß

TINO
nicron Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 21



BeitragVerfasst: So 24.11.02 04:44 
Titel: wie geht das
mit dem Inplace-editor? habe ich noch nie von gehört.

_________________
We do right noone remembers, we do wrong noone forgets...
Tino
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Veteran
Beiträge: 9839
Erhaltene Danke: 45

Windows 8.1
Delphi XE4
BeitragVerfasst: Mo 25.11.02 10:19 
Titel: Re: wie geht das
nicron hat folgendes geschrieben:
mit dem Inplace-editor? habe ich noch nie von gehört.

Darüber steht auch etwas in der Delphi Hilfe :-)

Das Objekt tCustomGrid (von dem auch tStringGrid abgeleitet ist) verfügt über die CreateEditor Methode. Diese müsstest Du überschreiben und als Ergebnis ein tInplaceEdit Objekt übergeben. Du musst dann natürlich eine Ableitung von tInplaceEdit erstellen. Schau Dir mal die Methoden und Eigenschaften von tInplaceEdit in der Delphi-Hilfe an!

Gruß
TINO