James,

Try SetActiveWindow (FindWindow('TForm','Title')).

or SetForegroundWindow (FindWindow('TForm','Title')).

The difference is SetForegroundWindow activates the application as well -
and will most probably be needed for Delphi apps (because they contain a
hidden TApplication window that acts as a main window).  Hope this helps.

Regards,
Dennis.

> -----Original Message-----
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On
> Behalf Of [EMAIL PROTECTED]
> Sent: Friday, 5 November 1999 16:37
> To: Multiple recipients of list delphi
> Subject: [DUG]: Giving another application focus
>
>
> Hi all
>
> What message would I send to a window to bring it to the front from
> another app.
>
> Somthing like Sendmessage(FindWindow('TForm','Title'),message,0,0) or
> maybe is there a better way. I have tried sending the message
> WM_Setfocus
> but it didn't work.
>
> Thanx james
>
>
> --------------------------------------------------------------
> -------------
>     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