RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TSplitter.OnCanResize Event

Occurs when the user tries to move the splitter with the mouse.

Pascal
property OnCanResize: TCanResizeEvent;
C++
__property TCanResizeEvent OnCanResize;

Write an OnCanResize event handler to conditionally prevent the user from resizing neighboring components using the splitter. 

The NewSize parameter indicates the size the associated control will have if the splitter is allowed to perform the resize. This value can be changed if the attempted resize can be partially allowed. The Accept parameter indicates whether the resize should be permitted at all. Set Accept to false to disallow any movement of the splitter. 

 

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