Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2011-10

Size adjustments in TControl.DoDock

2 messages · 1 person · –

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Hans-Peter Diettrich

I don't understand why DoDock ignores the given rectangle, that was shown while the control has been dragged.

When the position or size should ever need an adjustment, this should be done by the *target* site (in DoAddDockClient).

DoDi

Reply by email

Hans-Peter Diettrich
to Hans-Peter Diettrich
I don't understand why DoDock ignores the given rectangle, that was shown while the control has been dragged.

Clarification:

TControl.DoDock should *never* change ARect itself (Delphi compatible).

Eventual adjustments can be made in an *overridden* implementation (see TCustomForm.DoDock), which calls inherited to do whatever is required - but not more.

Then entire block

   if NewDockSitenil then begin
   ...

should be removed.

DoDi

Reply by email