Autor Beitrag
jasocul
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 6395
Erhaltene Danke: 149

Windows 7 + Windows 10
Sydney Prof + CE
BeitragVerfasst: Mi 01.12.04 20:30 
Ich habe eine ganz schicke Komponente gebastelt. Was, dass bleibt noch geheim. DB-Entwickler werden sich aber freuen, wenn ich sie zur Verfügung stelle :wink: .
Folgendes Problem:
Eine Eigenschaft der Komponente wird mit einem TDBGrid verbunden. Lösche ich nun das DBGrid, bekomme ich Schutzverletzungen. Die Ursache ist mir schon klar. Das braucht mir keiner zu erklären.
Die Frage ist, wie stelle ich fest, ob die Komponenten-Eigenschaften während der DesignTime geändert werden? Ich bin mir ziemlich sicher, dass es da eine Variable oder Funktion gibt, die man in der Komponente abfragen kann. Damit könnte ich dann auch meinen Fehler abfangen.
Wer schreibt mir denn bitte mal, wie die heißt.
Motzi
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 2931

XP Prof, Vista Business
D6, D2k5-D2k7 je Prof
BeitragVerfasst: Mi 01.12.04 20:43 
Schau dir mal TComponent.Notification() an...

_________________
gringo pussy cats - eef i see you i will pull your tail out by eets roots!
jasocul Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 6395
Erhaltene Danke: 149

Windows 7 + Windows 10
Sydney Prof + CE
BeitragVerfasst: Mi 01.12.04 20:46 
Jep. Das wars. Heißen Dank.
Ich hoffe, dass meine Komponente noch vor Weihnachten so gut ist, dass ich mit traue, sie hier zu veröffentlichen.