Delphi Pages Forums

Delphi Pages Forums (http://www.delphipages.com/forum/index.php)
-   General (http://www.delphipages.com/forum/forumdisplay.php?f=2)
-   -   Make an inactive window active (http://www.delphipages.com/forum/showthread.php?t=131139)

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

Make an inactive window active
 
Hi,
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);

Begin

Form1.BringToFront;
Memo1.SetFocus; //Example
end;

>>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.