Solved

Make transparent & easy draggable form

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

Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

Join & Write a Comment

This article explains how to create forms/units independent of other forms/units object names in a delphi project. Have you ever created a form for user input in a Delphi project and then had the need to have that same form in a other Delphi proj…
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…
This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're looking for how to monitor bandwidth using netflow or packet s…
This video demonstrates how to create an example email signature rule for a department in a company using CodeTwo Exchange Rules. The signature will be inserted beneath users' latest emails in conversations and will be displayed in users' Sent Items…

746 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

9 Experts available now in Live!

Get 1:1 Help Now