?
Solved

invisible forms...

Posted on 1999-12-16
3
Medium Priority
?
138 Views
Last Modified: 2010-04-06
BUT.... the form has to have a green somthing on it.. for example a green filled circle, and all else around the circle is the windows background, so the form moves its just a hole to the desktop... so i need someway of capturing the canvas of other programs, and painting it onto my own form, leaving just a green circle... or more to the point, how do you make just a circular  form..... or either, i am very puzzled..

Craig C.
0
Comment
Question by:craig_capel
  • 2
3 Comments
 
LVL 10

Accepted Solution

by:
Lischke earned 360 total points
ID: 2287259
Craig, try this code:

procedure TMainForm.Button5Click(Sender: TObject);
var
  R: THandle;
begin
  R := CreateEllipticRgn(0, 0, 300, 200);
  SetWindowRgn(Handle, R, True);
end;

Ciao, Mike
0
 
LVL 2

Author Comment

by:craig_capel
ID: 2287329
Perfecto!!!!!!!!

thanks Craig C.
0
 
LVL 10

Expert Comment

by:Lischke
ID: 2287401
Yup :-)
0

Featured Post

[Webinar] Kill tickets & tabs using PowerShell

Are you tired of cycling through the same browser tabs everyday to close the same repetitive tickets? In this webinar JumpCloud will show how you can leverage RESTful APIs to build your own PowerShell modules to kill tickets & tabs using the PowerShell command Invoke-RestMethod.

Question has a verified solution.

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

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…
In this tutorial I will show you how to use the Windows Speech API in Delphi. I will only cover basic functions such as text to speech and controlling the speed of the speech. SAPI Installation First you need to install the SAPI type library, th…
Enter Foreign and Special Characters Enter characters you can't find on a keyboard using its ASCII code ... and learn how to make a handy reference for yourself using Excel ~ Use these codes in any Windows application! ... whether it is a Micr…
Watch the video to learn how one can deal with PST file corruption issue with an outstanding Kernel for Outlook PST Repair Tool easily. Using this tool, non-technical users can swiftly perform the repair process to restore their essential data witho…

599 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