RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TSplitter.MouseDown Method

Dynamically locates the control that can be resized by the splitter.

Pascal
procedure MouseDown(Button: TMouseButton; Shift: TShiftState; X: Integer; Y: Integer); override;
C++
virtual __fastcall MouseDown(TMouseButton Button, TShiftState Shift, int X, int Y);

After calling the parent class's method, MouseDown locates the control that it is about to resize. Because this control is located dynamically, an application can delete or add aligned controls beside a splitter at runtime and the splitter will resize whichever control is currently beside it. 

 

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!