Icon View Thread

The following is the text of the current message along with any replies.
Messages 1 to 2 of 2 total
Thread TForm.ShowModal - no active control
Fri, Jun 28 2013 10:27 AMPermanent Link

Christian Kaufmann

When I open a form with ShowModal, the first control has input focus.

I need to have a dialog, where no control has input focus in order to
avoid that a user clears the content of the first TEdit by accident.

I try with ActiveControl.RemoveFocus in OnShow, but it didn't work.

cu Christian
Mon, Jul 1 2013 1:51 PMPermanent Link

Tim Young [Elevate Software]

Elevate Software, Inc.

Avatar

Email timyoung@elevatesoft.com

Christian,

<< When I open a form with ShowModal, the first control has input focus.

I need to have a dialog, where no control has input focus in order to avoid
that a user clears the content of the first TEdit by accident.

I try with ActiveControl.RemoveFocus in OnShow, but it didn't work. >>

You currently can't do so.  I'll have to add an option to disable the
auto-focusing.

Tim Young
Elevate Software
www.elevatesoft.com
Image