Solved

Make Form Size Of Bitmap

Posted on 1998-11-16
9
150 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
 
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
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 
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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

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…
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…
Windows 10 is mostly good. However the one thing that annoys me is how many clicks you have to do to dial a VPN connection. You have to go to settings from the start menu, (2 clicks), Network and Internet (1 click), Click VPN (another click) then fi…
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…

896 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

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now