?
Solved

Make Form Size Of Bitmap

Posted on 1998-11-16
9
Medium Priority
?
156 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
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
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

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

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

A lot of questions regard threads in Delphi.   One of the more specific questions is how to show progress of the thread.   Updating a progressbar from inside a thread is a mistake. A solution to this would be to send a synchronized message to the…
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…
NetCrunch network monitor is a highly extensive platform for network monitoring and alert generation. In this video you'll see a live demo of NetCrunch with most notable features explained in a walk-through manner. You'll also get to know the philos…
In this video you will find out how to export Office 365 mailboxes using the built in eDiscovery tool. Bear in mind that although this method might be useful in some cases, using PST files as Office 365 backup is troublesome in a long run (more on t…
Suggested Courses
Course of the Month13 days, 15 hours left to enroll

800 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