MaxTrackSize Property
Description
Used to set the maximum size that a Pane can be re-sized to.
Property Type
Read-only property
Syntax (Visual Basic)
Public Property MaxTrackSize() As [DockingPaneTrackSize](XtremeDockingPane~DockingPaneTrackSize.md)
Remarks
This can be used to "lock" a pane. If both the MinTrackSize and MaxTrackSize are set to the same dimensions, you will not be able to re-size the pane. Also see NormalizeSplitters.
Example
MaxTrackSize Sample (Visual Basic)
This sample illustrates how to set the minimum and maximum sizes of a docking pane. You will see how to make a pane so that it cannot be re-sized.
Dim A As Pane, B As Pane
' Retrieve a pointer to some docking panes
Set A = DockingPaneManager.FindPane(1)
Set B = DockingPaneManager.FindPane(2)
' Specifies that Pane A can be no smaller than 100 x 100
A.MinTrackSize.SetSize 100, 100
' Specifies that Pane A can be no larger than 150 x 150
A.MaxTrackSize.SetSize 150, 150
' Pane B cannot be re-sized because the Min and Max sizes are set to the
' same dimensions.
' Specifies that Pane B can be no smaller than 130 x 130
B.MinTrackSize.SetSize 130, 130
' Specifies that Pane B can be no larger than 130 x 130
B.MaxTrackSize.SetSize 130, 130
See Also
Copyright (c) 1998-2024 Codejock Technologies. All rights reserved.