Solved

Using User32's SetFocus

Posted on 1997-07-07
2
1,118 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Comparing dates in Delphi. Greater than/ Less than 3 113
Correct Component for Shopping Cart. 2 95
Create a path if not exists 7 68
Base1 Encode/Decode 3 67
Objective: - This article will help user in how to convert their numeric value become words. How to use 1. You can copy this code in your Unit as function 2. than you can perform your function by type this code The Code   (CODE) The Im…
Introduction The parallel port is a very commonly known port, it was widely used to connect a printer to the PC, if you look at the back of your computer, for those who don't have newer computers, there will be a port with 25 pins and a small print…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.
This is a video that shows how the OnPage alerts system integrates into ConnectWise, how a trigger is set, how a page is sent via the trigger, and how the SENT, DELIVERED, READ & REPLIED receipts get entered into the internal tab of the ConnectWise …

930 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

13 Experts available now in Live!

Get 1:1 Help Now