Delphi Pages Forums

Delphi Pages Forums (
-   General (
-   -   Make an inactive window active (

>>Terabyte<< 03-23-2005 11:59 AM

Make an inactive window active
I am trying to use the appactivate function from sndkeys32.pas to bring a window of my choice from the background into the foreground as the active window.
Unfortunatly this seems to happen:

Appactivate make the active window come to the front...
if i i then make another window active and the command is executed again.. the command doesnt seem to have an effect.

Almost as if it works once... and if you change the active window to somthing else.. and execute the command again.. it wont work....

so my question is does anybody know a more solid method or routine for making deactivated windows activated?

Thanks alot.

quickfix76 03-23-2005 09:34 PM

RE: Make an inactive window active
procedure TForm1.ClickButtonBringFormToFront(Sender: TObject);


Memo1.SetFocus; //Example

>>Terabyte<< 03-24-2005 03:01 AM

RE: Make an inactive window active
sorry i should have made it clear
its a 3rd party window
its not a window within my program
it is an external applications window which i want to bring to the front from my program

All times are GMT. The time now is 09:48 PM.

Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2019, vBulletin Solutions, Inc.