A r t i c l e s
Capture Delphi Form OnMove Event
You can capture when a form moves very easily, if your version of delphi does not include an OnMove event for your Form.
TForm1 = class(TForm)
procedure OnMove(var Msg: TWMMove); message WM_MOVE;
procedure TForm1.OnMove(var Msg: TWMMove);
// to show that it works
caption:= 'Moved! Left: ' + inttostr(left);
For even more code clarity, you might want to make your own derived class for a custom form. That way you won't have to place the above code in each of your programs that you want to capture form movement.
Note: This Wiki is outdated, personal views may have changed.
This wiki contains info on life, health, humans, nature, programming, database, fads, paradigms, poems, principles, theories.
Articles may contain statements which some may find helpful and encouraging, or even discouraging.
Beware, I believe in the Grand Justice system.