I actually wasn't as pissed off as that email read :)

Matt.
----- Original Message -----
From: Matthew Comb <[EMAIL PROTECTED]>
To: Multiple recipients of list delphi <[EMAIL PROTECTED]>
Sent: Sunday, December 19, 1999 9:49 AM
Subject: [DUG]: DLL focus bug?


> For those that are into dlls.
>
> I have noticed if you perform the following code from within a dll it
won't
> work.
>
> edit1.enabled:=false;
> edit1.enabled:=true;
> edit1.setfocus;
>
> this will only not work if edit1 ALREADY has focus when you implement this
> code.
>
> this on the other hand does work.
>
> {edit2 having focus}
> edit2.enabled:=false;
> edit1.enabled:=true;
> edit1.setfocus;
>
> and vice versa.
>
> Whats the deal here?
>
> Does the dll think that the edit control already has focus so doesn't send
> it the correct message, is this a bug or is there a work around?
>
> Cheers,
>
> Matt.
>
> --------------------------------------------------------------------------
-
>     New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
>                   Website: http://www.delphi.org.nz
>
>

---------------------------------------------------------------------------
    New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
                  Website: http://www.delphi.org.nz

Reply via email to