[lazarus] OnExit event...

Tony Maro TonyM at nlisc.com
Sun Sep 29 17:59:02 EDT 2002


In my attempts to work around some of the modal issues and such here's what I've tried and run into:

I've added a property to the TMCalEdit control called "ShowAsPanel" that instead of popping up a window will actually create a panel on the form that houses the edit box, just under the edit box.

I've tried handling the OnExit event for the calendar control, but one of two things happens.

If I create and show the panel and calender, then call setfocus on the calendar, it instantly fires the onexit event.

If I create and show the panel and calendar, and DONT call setfocus, it never fires the onexit event.  I have no way of tracking when a user clicks out of the TCalendar component.

Any ideas?  If you guys need deeper info I can post the app, but it's getting pretty big...

-Tony






More information about the Lazarus mailing list