All Frameworks Class Hierarchy This Framework Previous Next Indexes
System.IUnknown | +---System.IDispatch | +---System.CATBaseUnknown | +---System.CATEventSubscriber | +---ApplicationFrame.CATCommandHeader | +---CATAfrDialogCommandHeader
Usage: you can derive this class.
public class CATAfrDialogCommandHeader
Base class to create a command header with a customized representation.
Role: This class enables you to create a command header with a
customized representation. It means a representation which will be not the
default one: a push button in a toolbar, and a push item in the
menu bar or a contextual menu.
To do that, you should implement the CATIAfrCommandHeaderRep interface on the class deriving of CATAfrDialogCommandHeader. This interface enables you to provide your specific representation in the toolbar, or/and the menubar, or/and the contextual menu. This representation is an instance of a class deriving of the CATAfrCommandHeaderRep class.
protected CATAfrDialogCommandHeader( | CATCommandHeader* | iHeaderToCopy) |
MyHeader::MyHeader(CATCommandHeader * iHeaderToCopy): CATAfrDialogCommandHeader(iHeaderToCopy) { }This method is called by the Clone method.
protected CATAfrDialogCommandHeader( | const CATString& | iHeaderIdentificator, | |
int | iState | = CATFrmAvailable) |
public virtual ~CATAfrDialogCommandHeader( | ) |
public CATCommandHeader * Clone( | ) |
CATCommandHeader * MyHeader::Clone () { return new MyHeader(this); }You must never call a Clone method. This method is called by the "frame". Today, it is called for your CAA instances in only one case: when the command header instance is created in an Add-in of the General workshop, refer to the CATIAfrGeneralWksAddin interface for more details about these Add-ins.
Copyright © 2003, Dassault Systèmes. All rights reserved.