Solved

How to give my form an organic shape ?

Posted on 2000-04-30
5
188 Views
Last Modified: 2010-05-18
I want to give my delphi form an organic shape.
How do I do that ?
What if I also want a permanent canvas ?
0
Comment
Question by:Azerthur
5 Comments
 
LVL 17

Expert Comment

by:inthe
ID: 2764345
have a look at coolform:

http://www.lawrenz.com/coolform/
0
 
LVL 1

Author Comment

by:Azerthur
ID: 2764364
sorry I have delphi 3 only !
0
 
LVL 3

Accepted Solution

by:
ckaneta earned 10 total points
ID: 2765162
Coolform does actually have a delphi3 version I believe, but here is another one anyhow

http://practicalsoft.hypermart.net/shareware/delphi/orgshape.zip
0
 
LVL 3

Expert Comment

by:ckaneta
ID: 2765168
and then, of course, there's the one I use:
http://www.torry.webnorth.com/vcl/forms/plasma.zip
0
 
LVL 1

Expert Comment

by:DonBartholomew
ID: 2768559
Here's sompe code for a polygone as a weird shaped window. That's not exactly organic, but let yer imagination work.

procedure TForm1.FormCreate(Sender: TObject);
var
   lPoints: array [0..11] of TPoint;
begin

    (* Define the lPoints of a W shape *)
    lPoints[0] := Point(0  , 0   );
    lPoints[1] := Point(50 , 0   );
    lPoints[2] := Point(180, 200 );
    lPoints[3] := Point(218, 100 );
    lPoints[4] := Point(256, 200 );
    lPoints[5] := Point(385, 0   );
    lPoints[6] := Point(435, 0   );
    lPoints[7] := Point(256, 300 );
    lPoints[8] := Point(218, 200 );
    lPoints[9] := Point(180, 300 );

    (* Define the region *)
    prRegion := CreatePolygonRgn(lPoints,// This a pointer to the previously defined lPoints
                               10,//  The number of lPoints
                               ALTERNATE);// The mode to be used for filling the window/polygon

    (* Set the window to have the above defined region *)
    SetWindowRgn(Handle,// The handle of your form
                 prRegion,// The handle of your defined region
                 True);// Indicates the window is to be redrawn now
end;


procedure TForm1.FormDestroy(Sender: TObject);
begin
    DeleteObject(prRegion);
end;
0

Featured Post

Active Directory Webinar

We all know we need to protect and secure our privileges, but where to start? Join Experts Exchange and ManageEngine on Tuesday, April 11, 2017 10:00 AM PDT to learn how to track and secure privileged users in Active Directory.

Question has a verified solution.

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

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…
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 video shows how to quickly and easily add an email signature for all users on Exchange 2016. The resulting signature is applied on a server level by Exchange Online. The email signature template has been downloaded from: www.mail-signatures…

820 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