Solved

Make transparent & easy draggable form

Posted on 2004-07-30
3
190 Views
Last Modified: 2010-04-05
Form's transparent properties will work just in WinXP. I want to do it in all Windows (putting a transparent image on it and the form's shape would be like the image). and how can I drag my form with any part of its surface (means I can drag it with not just its header but any part).

thank you
0
Comment
Question by:mehdi_m
  • 2
3 Comments
 
LVL 33

Accepted Solution

by:
Slick812 earned 50 total points
ID: 11686230
hello  mehdi_m, I would use a windows system Region to do a Shape for a Form from a bitmap in systems older than Win 2000, , , But,  it is NOT so easy to get a region from a bitmap, you might look at this EE question , which will show you code to do this -


http://www.experts-exchange.com/Programming/Programming_Languages/Delphi/Q_20353055.html


if you want to move the form with the mouse then get the  OnMouseDown  event for that form and use this code-
procedure TForm1.FormMouseDown(Sender: TObject; Button: TMouseButton;
  Shift: TShiftState; X, Y: Integer);
begin
if (Button = mbLeft) then
  begin
  ReleaseCapture;
  Form1.perform(WM_SysCommand, $F012, 0);
  end;
end;

- - - - - - - - - - - - - - - - - - - - - - - - - - - - -
ask questions if you need more information
0
 

Author Comment

by:mehdi_m
ID: 11692370
Thank you very much Slick812.
0
 
LVL 33

Expert Comment

by:Slick812
ID: 11696374
glad I could help - -, just a Note -

you may get some more responces to your questions if you offer more than 50 points
0

Featured Post

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

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

Suggested Solutions

Have you ever had your Delphi form/application just hanging while waiting for data to load? This is the article to read if you want to learn some things about adding threads for data loading in the background. First, I'll setup a general applica…
In my programming career I have only very rarely run into situations where operator overloading would be of any use in my work.  Normally those situations involved math with either overly large numbers (hundreds of thousands of digits or accuracy re…
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

831 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