All Frameworks Class Hierarchy This Framework Previous Next Indexes
System.IUnknown | +---System.IDispatch | +---System.CATBaseUnknown | +---System.CATEventSubscriber | +---System.CATCommand | +---Dialog.CATDialog | +---Dialog.CATDlgBox | +---Dialog.CATDlgFrame | +---CATDlgToolsOptionsFrame
Usage: you can derive this class.
public class CATDlgToolsOptionsFrame
Special frame to be used in the Tools/Options tab pages.
Role:
The CATDlgToolsOptionsFrame enables you to define sections of
standardized aspect within a tab page.
Beware! The use of the CATDlgGridConstraints style is mandatory inside the ToolsOptions frame.
The structure of the frame is as follows:
Title -----Separator----- ___________________ Icon | | | | | Options Frame | | | | | |___________________| ---Invisible Separator---
public CATDlgToolsOptionsFrame( | CATDialog* | iParent, | |
const CATString& | iIdentifier, | ||
const CATString& | iIconFileName, | ||
CATDlgStyle | iStyle | =NULL) |
iIdentifier.HeaderFrame.Global.Title = "My Frame Title";
where:
The styles CATDlgToolsOptionsNoIcon and CATDlgToolsOptionsInvisibleIcon are mutually exclusive. Each of them can be combined with the CATDlgToolsOptionsBottomFrame style.
public virtual ~CATDlgToolsOptionsFrame( | ) |
public virtual CATDlgFrame* GetOptionsFrame( | ) |
... CATDlgToolsOptionsFrame * pFrame1 = new CATDlgToolsOptionsFrame(this, "Frame1" , "I_MyIcon", CATDlgToolsOptionsBottomFrame); CATDlgFrame *pOptionsFrame1 = pFrame1->GetOptionsFrame(); CATDlgCheckButton *pCheck1 = new CATDlgCheckButton(pOptionsFrame1,"Check1"); CATDlgMultiList *pMultiList1 = new CATDlgMultiList(pOptionsFrame1,"MultiList1"); // // The retrieved "Options Frame", pOptionsFrame1, is the parent of the created check button, and multiple list. // //Both components are attached on 4 sides, and laying over 1 column and 1 row in the OptionsFrame1 // pCheck1 is in the 0,0 box, pMultiList1 in the 0,1 box. pCheck1 -> SetGridConstraints(0,0,1,1,CATGRID_4SIDES); pMultiList1 -> SetGridConstraints(0,1,1,1,CATGRID_4SIDES); //Now we want the multiple list to fit the entire OptionsFrame width. Thus the column 1 should be resizable. OptionsFrame1 -> SetGridColumnResizable(1,1); ...CATDlgFrame *pOptionsFrame1 = pFrame1->GetOptionsFrame(); ...
The resources for your controls are set in the CATxxx.CATNls and/or CATxxx.CATRsc. For example the text for the created check button is set as follows:
Frame1.IconAndOptionsFrame.OptionsFrame.Check1.Title = "Check this option";
where:
public virtual void SetSensitivity( | const CATULong& | iSensitivity) |
Copyright © 2003, Dassault Systèmes. All rights reserved.