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

Reply via email to