All Frameworks Class Hierarchy This Framework Previous Next Indexes
System.IUnknown | +---System.IDispatch | +---System.CATBaseUnknown | +---CATIParameterEditorFactory
Usage: an implementation of this interface is supplied and you must use it as is. You should not reimplement it.
interface CATIParameterEditorFactory
Interface giving access to a factory for standard parameters editors.
Role: It is implemented as an extension of CATApplicationFrame and CATInteractiveApplication object (you can use either one of them depending on the context)
and is used to obtain a parameter editor.
public virtual HRESULT CreateParameterEditor( | const CATDialog* | iParent, |
const CATString& | iName, | |
CATBoolean | iWithContextualMenu, | |
CATIParameterEditor*& | oParameterEditor) = 0 |
CATApplicationFrame *pApplicationFrame = CATApplicationFrame::GetFrame(); CATIParameterEditorFactory *poEditorFactory = NULL; HRESULT hr = pApplicationFrame->QueryInterface(CATIParameterEditorFactory::ClassId(), (void**) &poEditorFactory); if (SUCCEEDED(hr)) { CATIParameterEditor *poParmEditor = NULL; hr = poEditorFactory->CreateParameterEditor(iParent, iName, 1, poParmEditor); if (SUCCEEDED(hr)) { poParmEditor->SetParameter(iParameter); CATDlgFrame *pFrame = poParmEditor->GetFrame(); pFrame->SetGridConstraints(... ... poParmEditor->Release(); } poEditorFactory->Release(); }
Copyright © 2003, Dassault Systèmes. All rights reserved.