Board index » delphi » Firing the Exit events on form
Rafel Coyle
![]() Delphi Developer |
Mon, 04 Feb 2002 03:00:00 GMT
|
Rafel Coyle
![]() Delphi Developer |
Mon, 04 Feb 2002 03:00:00 GMT
Firing the Exit events on form
I need to be able to modify the text from any of my tedit or comboboxes
on a form and call the exit event for that component if it is of that type. I don't have a way to know the name of the component so I can't use <componentnameexit>. I need to be able to use something like the form.controlcount or form .componentcount and be able to process from that list. |
Team
![]() Delphi Developer |
Tue, 05 Feb 2002 03:00:00 GMT
Re:Firing the Exit events on formQuoteIn article <37BC907E.788A3...@pfshouston.com>, Rafel Coyle wrote: Mike Orriss (TeamB) |
Team
![]() Delphi Developer |
Tue, 05 Feb 2002 03:00:00 GMT
Re:Firing the Exit events on formQuote> I need to be able to modify the text from any of my tedit or comboboxes for i:= 0 to componentcount-1 do For more classes it gets cumbersome if you cannot identify a common Peter Below (TeamB) 100113.1...@compuserve.com) |
Rafel Coyl
![]() Delphi Developer |
Tue, 05 Feb 2002 03:00:00 GMT
Re:Firing the Exit events on formPeter I have the examples that you wrote below, however, please show me how you would fire the exit event of the tedit within the loop. Thanks Quote"Peter Below (TeamB)" wrote: |
Team
![]() Delphi Developer |
Wed, 06 Feb 2002 03:00:00 GMT
Re:Firing the Exit events on formQuoteIn article <37BD8489.404FC...@pfshouston.com>, Rafel Coyle wrote: VCL itself sends to trigger the Exit event: with TEdit( Components[i] ) do begin The DoExit method which calls the Onexit handler is protected in TWincontrol, Peter Below (TeamB) 100113.1...@compuserve.com) |
Rafel Coyl
![]() Delphi Developer |
Fri, 08 Feb 2002 03:00:00 GMT
Re:Firing the Exit events on formThanks Peter, This might do the trick. Quote"Peter Below (TeamB)" wrote: |
Rafel Coyl
![]() Delphi Developer |
Fri, 08 Feb 2002 03:00:00 GMT
Re:Firing the Exit events on formOne last question. Is there a way to tell if the component has an exit event assigned. Quote"Peter Below (TeamB)" wrote: |
Team
![]() Delphi Developer |
Fri, 08 Feb 2002 03:00:00 GMT
Re:Firing the Exit events on formQuoteIn article <37C170AE.44C38...@pfshouston.com>, Rafel Coyle wrote: If Assigned( TEdit( components[i] ).OnExit ) Then This does not work in earlier versions if i remember correctly. There var Peter Below (TeamB) 100113.1...@compuserve.com) |
1. How to make Enter/Exit events fired for a fram
2. NoteBook Exit Event fires late
4. Child form in a component 'OnEnter fires on exit
5. Form Create, Form Show events not firing
6. DataSourceDataChange event fires when form is minimized?
7. Active Form not firing event (or I do not know how to capture it)
8. Firing Events in Active Forms (ActiveFormX) in BCB4