Title: Message
In your unit define TMyWinControl = class(TWinControl);
 
Then go TMyWinControl(mcCalendar).OnExit := MyOnExit;
 
This works because classes can see the protected (and maby private?) parts of other classes defined inthe same unit.
 
Stacey
-----Original Message-----
From: Paul Mckenzie [mailto:[EMAIL PROTECTED]
Sent: Thursday, 18 March 2004 14:14
To: Delphi List - Delphi
Subject: [DUG] OnExit

I have a MonthCalendar that I create dynamically and want to assign an OnExit event handler...
Assigning and OnDblClick works fine. The problem is, OnExit is a protected property of TWinControl.
How can I get code to fire On Exit ?
 
BTW: How does this work in the IDE for a design-time created control ?
 
Regards
Paul McKenzie
Analyst Programmer
SMSS Ltd.
 
_______________________________________________
Delphi mailing list
[EMAIL PROTECTED]
http://ns3.123.co.nz/mailman/listinfo/delphi

Reply via email to