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...
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.
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;
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
this way, only the image will be visible.
bryan
ASKER
That doesn't allow me to still resize the window...
ASKER
DelphiExpert, Re-answer the question and I will accept it. It works...
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
you can also do
Form1.BorderStyle:= bsNone
to remove the bar from the top.
bryan
Form1.BorderStyle:= bsNone
to remove the bar from the top.
bryan
http://www.delumpa.com/tips/forms/forms4.htm