Solved

Make Form Size Of Bitmap

Posted on 1998-11-16
9
153 Views
Last Modified: 2010-05-19
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...
0
Comment
Question by:MichaelB98
  • 2
  • 2
  • 2
  • +3
9 Comments
 
LVL 7

Expert Comment

by:BlackMan
ID: 1347047
Check this article, it might come handy to you...
http://www.delumpa.com/tips/forms/forms4.htm
0
 
LVL 8

Expert Comment

by:ZifNab
ID: 1347048
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.
0
 

Expert Comment

by:MichaelB082598
ID: 1347049
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.  
0
Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

 
LVL 1

Expert Comment

by:delphiexpert
ID: 1347050
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;

0
 
LVL 3

Expert Comment

by:bryan7
ID: 1347051
why don't you make the form invisible ?
this way, only the image will be visible.

bryan

0
 

Author Comment

by:MichaelB98
ID: 1347052
That doesn't allow me to still resize the window...
0
 

Author Comment

by:MichaelB98
ID: 1347053
DelphiExpert, Re-answer the question and I will accept it.  It works...
0
 
LVL 1

Accepted Solution

by:
delphiexpert earned 50 total points
ID: 1347054
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;
0
 
LVL 3

Expert Comment

by:bryan7
ID: 1347055
you can also do

Form1.BorderStyle:= bsNone

to  remove the bar from the top.

bryan

0

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering 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
Process Javascript errors with Delphi TWebBrowser 1 174
How to debug For loops? 3 56
JAudiorecorder record freezing the app 29 74
Installshield for Embarcadero EX 10.1 Berlin 4 60
The uses clause is one of those things that just tends to grow and grow. Most of the time this is in the main form, as it's from this form that all others are called. If you have a big application (including many forms), the uses clause in the in…
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…

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