Tech or Treat! Write an article about your scariest tech disaster to win gadgets!Learn more

x
?
Solved

Make Form Size Of Bitmap

Posted on 1998-11-16
9
Medium Priority
?
157 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
[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
  • 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
Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

 
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 200 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

On Demand Webinar: Networking for the Cloud Era

Did you know SD-WANs can improve network connectivity? Check out this webinar to learn how an SD-WAN simplified, one-click tool can help you migrate and manage data in the cloud.

Question has a verified solution.

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

In this tutorial I will show you how to use the Windows Speech API in Delphi. I will only cover basic functions such as text to speech and controlling the speed of the speech. SAPI Installation First you need to install the SAPI type library, th…
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…
We’ve all felt that sense of false security before—locking down external access to a database or component and feeling like we’ve done all we need to do to secure company data. But that feeling is fleeting. Attacks these days can happen in many w…
Please read the paragraph below before following the instructions in the video — there are important caveats in the paragraph that I did not mention in the video. If your PaperPort 12 or PaperPort 14 is failing to start, or crashing, or hanging, …
Suggested Courses

647 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