Solved

Using User32's SetFocus

Posted on 1997-07-07
2
1,116 Views
Last Modified: 2008-02-26
I want to to use the user32.dll's API:
SetFocus(myHWND);
But Delphi thinks I want to use the
method SetFocus which takes no
parameters, what do I do?
0
Comment
Question by:dr_gonzo
2 Comments
 
LVL 4

Accepted Solution

by:
erajoj earned 40 total points
ID: 1338361
Just like this:

  Windows.SetFocus(...);

/// John
0
 

Author Comment

by:dr_gonzo
ID: 1338362
YES, my compiler stops telling
me I'm a bad guy...
...BUT The window still hasn't
got the focus, proberly my variable
messing things up,
TNXe6,
Dr. Gonzo
0

Featured Post

Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

Join & Write a Comment

A lot of questions regard threads in Delphi.   One of the more specific questions is how to show progress of the thread.   Updating a progressbar from inside a thread is a mistake. A solution to this would be to send a synchronized message to the…
This article explains how to create forms/units independent of other forms/units object names in a delphi project. Have you ever created a form for user input in a Delphi project and then had the need to have that same form in a other Delphi proj…
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…
This video shows how to remove a single email address from the Outlook 2010 Auto Suggestion memory. NOTE: For Outlook 2016 and 2013 perform the exact same steps. Open a new email: Click the New email button in Outlook. Start typing the address: …

758 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

22 Experts available now in Live!

Get 1:1 Help Now