All Frameworks  Class Hierarchy  This Framework  Indexes

ApplicationFrame Macro NewAccess

Macro NewAccess (className,variableName,objectName)
Creates an access.
Role: The workshop (or workbench) is a bag of accesses and this macro allows you to create one access. To build your workshop (or workbench) you must chain accesses with the SetAccessChild or SetAccessNext macro. If you want to display an access just before a given one, you can use the SetAccessAnchorName macro.
Parameters:
classname
The name of the class created :
CATCmdContainer
  • To create a menubar. Then use the macro
SetWorkshopMenu (or SetWorkbenchMenu ) to attach the menubar to the workshop (or to the workbench).
  • To create a menu.
  • To create a sub menu.
  • To create an icon box.
  • To create a toolbar. Then use the AddToolbarView macro to declare the new toolbar.
  • CATCmdWorkshop
    To create a workshop. It's the return value of the CATIWorkshop.CreateWorkshop method
    CATCmdWorkbench
    To create a workbench. It's the return value of the CATIWorkbench.CreateWorkbench method
    CATCmdStarter
    To create a starter. Then to attach a command header to this starter use the SetAccessCommand macro
    CATCmdSeparator
    To create a separator between accesses.
    variableName
    The pointer to the instance created
    objectName
    The name of the access. This name is used to reference resources except for a CATCmdStarter or a CATCmdSeparator.

    This object is included in the file: CATCreateWorkshop.h

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