Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

Irregular form shapes in Win 95

Posted on 1997-06-10
1
165 Views
Last Modified: 2012-05-04
Does anybody know how to make the main application's form irregularly shaped (just like circular clock for Win 95) in Delphi 2 ?

Thanx, Bocian
0
Comment
Question by:Bocian
1 Comment
 
LVL 1

Accepted Solution

by:
ygolan earned 50 total points
ID: 1336949
Take a look at the SetWindowRgn API call.

The following code will create an elliptic window (adapted from UNDU issue #17) :

procedure MakeEllipticForm(Form: TForm);
Var
  R: HRgn;
begin
  R := CreateEllipticRgn(-15,-15,Width+15,Height+15);
  SetWindowRgn(Form.Handle,R,True);
end;


0

Featured Post

Free Tool: Postgres Monitoring System

A PHP and Perl based system to collect and display usage statistics from PostgreSQL databases.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Have you ever had your Delphi form/application just hanging while waiting for data to load? This is the article to read if you want to learn some things about adding threads for data loading in the background. First, I'll setup a general applica…
Introduction I have seen many questions in this Delphi topic area where queries in threads are needed or suggested. I know bumped into a similar need. This article will address some of the concepts when dealing with a multithreaded delphi database…
This video shows how to use Hyena, from SystemTools Software, to bulk import 100 user accounts from an external text file. View in 1080p for best video quality.

808 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