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( | iParent, | ||
const | iIdentifier, | ||
const | iIconFileName, | ||
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 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 SetSensitivity( | const | iSensitivity) |
Copyright © 1999-2014, Dassault Systèmes. All rights reserved.