Autor Beitrag
Steffen2412
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 22



BeitragVerfasst: Di 06.09.05 09:12 
Hallo,

ich nutze in meiner Form ein DBGrid mit Indicator.
Nun möchte ich das immer wenn ich auf eienn bestimmten Indicator klicke ein Event ausgelöst wird, ich finde aber nirgends ein passendes.
Kann mir da jemand helfen?


Steffen
cartridge
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 209

Win XP
D4 Prof,D6 Prof
BeitragVerfasst: Di 06.09.05 17:15 
Es wird ja das Ereignis OnCellClick ausgewertet. Mehr aber auch nicht. Jetzt kommt es darauf an, was Du ermitteln willst. Denn das einzige, was am Indicator ersichtlich ist, ist der aktuell ausgewählte Record.

Gruß
Ingo
Steffen2412 Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 22



BeitragVerfasst: Di 06.09.05 19:46 
Das mit dem CellClick Event funktioniert nur wenn ich direkt eine Zelle anklicke und wird nicht ausgelöst wenn ich den Indicator anklicke.
Mein Problem ist, das ich aufgrund der gerade markierten Zeil des DBGrids, Buttons enablen/disablen möchte, aber dazu kein Event finde.
Martin1966
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 1068

Win 2000, Win XP
Delphi 7, Delphi 2005
BeitragVerfasst: Mi 07.09.05 09:21 
Dazu musst du wohl das DBGrid ableiten und die Methode MouseUp überschreiben.

Lg Martin