Solved

How to give my form an organic shape ?

Posted on 2000-04-30
5
189 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
[X]
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
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

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

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

Suggested Solutions

Title # Comments Views Activity
How to call a form that is in a DLL  from an application? 13 98
Delphi Form ownership 4 157
Working with hours 3 87
Not able to call Delphi XE10 dll function from Delphi 6.0 4 56
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…
Hello everybody This Article will show you how to validate number with TEdit control, What's the TEdit control? TEdit is a standard Windows edit control on a form, it allows to user to write, read and copy/paste single line of text. Usua…
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …
I've attached the XLSM Excel spreadsheet I used in the video and also text files containing the macros used below. https://filedb.experts-exchange.com/incoming/2017/03_w12/1151775/Permutations.txt https://filedb.experts-exchange.com/incoming/201…

734 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