Solved

Make transparent & easy draggable form

Posted on 2004-07-30
3
192 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 34

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 34

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

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

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
Print Graphic and Text to Epson TM-T88v 12 372
Dev Express grid collapse 2 45
Base1 Encode/Decode 3 81
How to save the image in the .cds File ClientDataSet? 1 22
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…
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…
Established in 1997, Technology Architects has become one of the most reputable technology solutions companies in the country. TA have been providing businesses with cost effective state-of-the-art solutions and unparalleled service that is designed…

809 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