Scalabium Software

SMExport advertising
Knowledge for your independence'.
Home Delphi and C++Builder tips

#8: How can I disable a form movement?

Always in any tip collection I saw a question: how can I move a window by hit in any part of form? But I never saw a reverse question: how to disable a movement.

  TyourForm = class(TForm)
    { Private declarations }
    procedure WMNCHitTest(var Message: TWMNCHitTest); message WM_NCHITTEST;

procedure TyourForm.WMNCHitTest(var Message: TWMNCHitTest);

 with Message do
   if Result = HTCAPTION then
     Result := HTNOWHERE;

Published: August 6, 1999

See also
Paradox ActiveX
ABA Picture Convert
ABA Document Convert
Word Web-stream
Viewer for TNEF-files (winmail.dat)
SMImport suite
dBase Viewer
SMMsg suite
Mail parser (ActiveX)
Paradox to Text converter

Contact to webmaster


Borland Software Code Gear Scalabium Delphi tips

Copyright© 1998-2017, Scalabium Software. All rights reserved.

SMExport advertising