All Frameworks  Class Hierarchy  This Framework  Previous  Next  Indexes

CATIAApplicationFrame Class CATComboWeight

System.IUnknown
  |
  +---System.IDispatch
    |
    +---System.CATBaseUnknown
      |
      +---System.CATEventSubscriber
        |
        +---System.CATCommand
          |
          +---Dialog.CATDialog
            |
            +---Dialog.CATDlgBox
              |
              +---Dialog.CATDlgFrame
                |
                +---CATComboWeight
 

Usage: you must use this class as is. You should never derive it.


public class CATComboWeight

Class to create a combo to choose a weight (thickness) of a line.
Role:This class constructs a combo to select a line weigth among 63 values.
These 63 values follow the thicknesses displayed and modifiable in Tools/Options/Display/Thickness.

When a weight is selected, a CATDlgComboSelectNotification notification is sent, and you can retrieves the index of the weight type thanks to the GetSelect

See also:
CATComboColor, CATComboDashed, CATComboSymbol


Constructor and Destructor Index


o CATComboWeight(CATDialog*,CATString&,CATDlgStyle,int,unsigned int)
Constructs a combo to choose a weight of a line.
o ~CATComboWeight()

Method Index


o GetSelect()
Retrieves the index of the weight choosen.
o SetSelect(unsigned int)
Sets the index of the weight.

Constructor and Destructor


o CATComboWeight
public CATComboWeight(CATDialog* iParent,
const CATString& iDialogObjectName,
CATDlgStyle iStyle= NULL,
const int iWeightInit= 1,
unsigned int iAutoComboAvailable= 0)
Constructs a combo to choose a weight of a line.
Parameters:
iParent
The dialog's parent.
iDialogObjectName
The name of the dialog object.
iStyle
Internal usage. Set NULL the legal value.
iWeightInit
The index of the first weight displayed. The value ranges from 1 to 63, and the default value is 1 .
iAutoComboAvailable
Internal usage, set 0 as the default value.
o ~CATComboWeight
public virtual ~CATComboWeight()

Methods


o GetSelect
public unsigned int GetSelect()
Retrieves the index of the weight choosen.
Returns:
Index of the weight.This value ranges from 1 to 63.
o SetSelect
public void SetSelect( const unsigned int iWeight)
Sets the index of the weight.
Parameters:
iWeight
Index of the weight.This value ranges from 1 to 63.

This object is included in the file: CATComboWeight.h
If needed, your Imakefile.mk should include the module: CATIAApplicationFrame

Copyright © 2003, Dassault Systèmes. All rights reserved.