Link to home
Start Free TrialLog in
Avatar of MichaelB98
MichaelB98

asked on

Make Form Size Of Bitmap

I want to make a form the size of a bitmap.  I don't want to see the form status bar up top and no part of the form around this bitmap.  The bitmap is not a rectangle so I do not know how to accomplish this...
Avatar of BlackMan
BlackMan

Check this article, it might come handy to you...
http://www.delumpa.com/tips/forms/forms4.htm
hi michael,

 or use this http://www.lawrenz.com/coolform/index.htm

blackmans tip is also real handy. A must-read article when you want to do the stuff you want. But pitty, it doesn't explains how to give your form the curves of your bitmap. This component does everything you need (it is free).

regards, Zif.
I have decided my problem is a little different now that I got into it.  I have found a way to get my bitmap on the screen, but I need the form to be resizable.  It is easy to have the form resizeable if I have a form caption bar, but I do not want the bar up top.  
Here's a couple of lines of code that'll remove the bar from the top:

SetWindowLong( Handle, GWL_STYLE,
GetWindowLong( Handle, GWL_STYLE ) and not WS_CAPTION );
ClientHeight := Height;

why don't you make the form invisible ?
this way, only the image will be visible.

bryan

Avatar of MichaelB98

ASKER

That doesn't allow me to still resize the window...
DelphiExpert, Re-answer the question and I will accept it.  It works...
ASKER CERTIFIED SOLUTION
Avatar of delphiexpert
delphiexpert

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
you can also do

Form1.BorderStyle:= bsNone

to  remove the bar from the top.

bryan