Dialog CATDlgSplitter
Usage: you can derive this class.
public class CATDlgSplitter
Base class for splitters.
Role:
The splitter consists in an area split into two resizeable subareas by a sash that can be dragged along to resize,
decreasing one subarea while increasing the other. The split between the two subareas can be vertical or horizontal.
Each subarea can contain boxes and controls.
Use a splitter whenever you want to split an area into two resizable subareas.
Constructor and Destructor Index
- o
CATDlgSplitter(CATDialog*,CATString&,CATDlgStyle)
- Constructs a CATDlgSplitter.
- o
~CATDlgSplitter()
-
Method Index
- o
GetSashPosition(double&)
- Retrieves the splitter position.
- o
SetSashPosition(double)
- Sets the splitter position.
- o
SwitchChildren()
- Switches the splitter children.
Constructor and Destructor
o CATDlgSplitter
public CATDlgSplitter( | | iParent, |
| const | iObjectName, |
| | iStyle | =NULL) |
-
Constructs a CATDlgSplitter.
- Parameters:
-
- iParent
- The parent of the splitter.
- iObjectName
- The name of the splitter.
- iStyle
- The style of the splitter.
The style can be :
- CATDlgCtrHorizontal
- : the two subareas are horizontally aligned. The separator is then vertical.
- CATDlgCtrVertical
- : the two subareas are vertically aligned. The separator is then horizontal.
- CATDlgSplResizeFirstPane
- : the splitter shows the first subarea when first displayed.
o ~CATDlgSplitter
public virtual ~CATDlgSplitter( | ) |
-
Methods
o GetSashPosition
public GetSashPosition( | | oPosition) |
-
Retrieves the splitter position.
- Parameters:
-
- oPosition
- The returned position.
o SetSashPosition
public SetSashPosition( | | iPosition) |
-
Sets the splitter position.
- Parameters:
-
- iPosition
- The position to set.
o SwitchChildren
-
Switches the splitter children.
The child that occupied the first subarea occupies the second one, and conversely,
the child that occupied the second subarea occupies the first one.
This object is included in the file: CATDlgSplitter.h
If needed, your Imakefile.mk should include the module: DI0PANV2
Copyright © 1999-2014, Dassault Systèmes. All rights reserved.