Still struggling I'm afraid...
I've tried adding the SetMouseDown event to the OnMouseDown event for my invisible shapes I have around the edges of my form but when that procedure is called I get an External SIGSEGV from the line:
anchor_g.Left := AForm.Left;
right at the start of that procedure.
I'm obviously doing something very wrong.
- I've added uResize to the first uses clause in my main form's unit.
- I've added invisible shapes to the top, left, right and bottom of my main form.
- I've added the same OnMouseDown event to each of those invisible shapes.
I'm guessing I'm missing something here...
-FM
Copy uresize.pas and uresize.lfm into you project folder. Add uResize in the uses claus. Then add this line to your project *.lpr file
begin
....
Application.CreateForm(TResizeForm, ResizeForm); //<---- This
Application.Run;
end.
The error will gone.