Solved

non-movable forms

Posted on 1998-04-27
2
231 Views
Last Modified: 2010-04-06
How to make a form that has title bar, but that is not movable by user
0
Comment
Question by:bor061297
  • 2
2 Comments
 
LVL 1

Accepted Solution

by:
Edo082297 earned 50 total points
ID: 1337746
type
  TForm1 = class(TForm)
  private
    procedure WMMove(var MSG: Tmessage); message WM_MOVE;
  public
    { Public declarations }
  end;

var
  Form1: TForm1;

implementation

{$R *.DFM}

procedure TForm1.WMMOVE(var MSG: TMessage);
begin
  Abort;
end;

Regards,
Edo

0
 
LVL 1

Expert Comment

by:Edo082297
ID: 1337747
Hi Bor,
   I suppose I should comment on what is going on. All that is happening is that your form is intercepting the windows message, and then issuing the Abort command, so that the message does not proceed, and the move is not performed.

Edo
0

Featured Post

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Convert Jpg /PNG To GIF 5 151
Best Firemonkey component pack 1 119
Downloading email attachments 2 80
Delphi problems to abort a printjob 9 25
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…
Microsoft Active Directory, the widely used IT infrastructure, is known for its high risk of credential theft. The best way to test your Active Directory’s vulnerabilities to pass-the-ticket, pass-the-hash, privilege escalation, and malware attacks …
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