<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Hi John,<br>
<br>
Have you tried to set the tab order to 1 (or 0 - can't remember which
is the "accepted" first) for this control ?<br>
<br>
Cheers,<br>
<br>
Pieter<br>
<br>
On 10/06/2010 21:20, John Bird wrote:
<blockquote cite="mid:9328102237AA4ADDB0BF506812422C8E@JohnSony2"
type="cite">
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
<meta name="GENERATOR" content="MSHTML 8.00.7600.16588">
<div><font face="Arial" size="2">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.</font></div>
<div> </div>
<div><font face="Arial" size="2">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.</font></div>
<div> </div>
<div><font face="Arial" size="2">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...</font></div>
<div> </div>
<div><font face="Arial" size="2">Note I have already done code like
Edit1.Setfocus -- it does not fix the problem.</font></div>
<div> </div>
<div><font face="Arial" size="2">Anyone have any ideas??? Normal
build and compile all and deleting all dcus has not fixed it.</font></div>
<div> </div>
<div><font face="Arial" size="2">Also is there any way to force a
Tedit to have its text selected. </font></div>
<div> </div>
<div><font face="Arial" size="2">John</font></div>
<pre wrap="">
<fieldset class="mimeAttachmentHeader"></fieldset>
_______________________________________________
NZ Borland Developers Group - Delphi mailing list
Post: <a class="moz-txt-link-abbreviated" href="mailto:delphi@delphi.org.nz">delphi@delphi.org.nz</a>
Admin: <a class="moz-txt-link-freetext" href="http://delphi.org.nz/mailman/listinfo/delphi">http://delphi.org.nz/mailman/listinfo/delphi</a>
Unsubscribe: send an email to <a class="moz-txt-link-abbreviated" href="mailto:delphi-request@delphi.org.nz">delphi-request@delphi.org.nz</a> with Subject: unsubscribe</pre>
</blockquote>
<br>
</body>
</html>