Yes I have tried all sorts of things like setting TabStop  to false, and most 
hopefully setting the control second in the Tab Order list with focus going to 
another control and then doing a Setfocus to the one I want.   It still does 
not fix it.   Also been playing with Autoselect and ShowSelect, and IMEMode.   
Nothing makes any difference - I am convinced its something in the way the 
program is built

Is there a way to programatically set the focus more than what Setfocus does?

John

Hi John,

Have you tried to set the tab order to 1 (or 0 - can't remember which is the 
"accepted" first) for this control ?

Cheers,

Pieter

On 10/06/2010 21:20, John Bird wrote: 
  This one has me foxed.   I have a standard unit which is a form dialog at the 
start of many programs - which gets an access code and a password.

  In one program only it misbehaves - the Tedit fields never seem to get focus 
properly, so although the users can type text, there is no cursor and the 
onexit event of the TEdit does not fire.   Also default text in the Tedit does 
not show as selected.   Subsequent returns to this and other edit boxes do 
behave properly.

  This is Delphi 2007 - problem shows for this program on Windows 7 and XP.  XP 
Manifest is in use.  Very little processing before this dialog form is shown...

  Note I have already done code like Edit1.Setfocus   -- it does not fix the 
problem.

  Anyone have any ideas???   Normal build and compile all and deleting all dcus 
has not fixed it.

  Also is there any way to force a Tedit to have its text selected.   

  John

_______________________________________________
NZ Borland Developers Group - Delphi mailing list
Post: delphi@delphi.org.nz
Admin: http://delphi.org.nz/mailman/listinfo/delphi
Unsubscribe: send an email to delphi-requ...@delphi.org.nz with Subject: 
unsubscribe



--------------------------------------------------------------------------------


_______________________________________________
NZ Borland Developers Group - Delphi mailing list
Post: delphi@delphi.org.nz
Admin: http://delphi.org.nz/mailman/listinfo/delphi
Unsubscribe: send an email to delphi-requ...@delphi.org.nz with Subject: 
unsubscribe
_______________________________________________
NZ Borland Developers Group - Delphi mailing list
Post: delphi@delphi.org.nz
Admin: http://delphi.org.nz/mailman/listinfo/delphi
Unsubscribe: send an email to delphi-requ...@delphi.org.nz with Subject: 
unsubscribe

Reply via email to