Delphi Pages Forums  

Go Back   Delphi Pages Forums > Delphi Forum > General

Lost Password?

Reply
 
Thread Tools Display Modes
  #1  
Old 03-23-2005, 11:59 AM
>>Terabyte<< >>Terabyte<< is offline
Senior Member
 
Join Date: Aug 2003
Posts: 592
Default 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.
Reply With Quote
  #2  
Old 03-23-2005, 09:34 PM
quickfix76 quickfix76 is offline
Member
 
Join Date: Mar 2005
Posts: 36
Default RE: Make an inactive window active

procedure TForm1.ClickButtonBringFormToFront(Sender: TObject);

Begin

Form1.BringToFront;
Memo1.SetFocus; //Example
end;
Reply With Quote
  #3  
Old 03-24-2005, 03:01 AM
>>Terabyte<< >>Terabyte<< is offline
Senior Member
 
Join Date: Aug 2003
Posts: 592
Default 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
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On

Forum Jump


All times are GMT. The time now is 06:30 AM.


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