CAA工具条的编写

时间:2022-11-09 10:26:46
CATCmdContainer* RAHPDGTool::CreateToolbars()
{
    // 第一个工具条
    NewAccess           (CATCmdContainer,       pToolbar1,  Tb1 );

    NewAccess           (CATCmdStarter,         pStarter1,      Starter1        );
    SetAccessCommand    (pStarter1,     "Starter1"                              );
    SetAccessChild      (pToolbar1, pStarter1                       );

    NewAccess           (CATCmdSeparator,       pRAHBasicSep1,          RAHBasicSep1    );
    SetAccessNext       (pSnapViewStarter,      pRAHBasicSep1                           );//图标间分割线

    NewAccess           (CATCmdStarter,         pColorMapStarter,       FSRH        );
    SetAccessCommand    (pColorMapStarter,      "ColorMap"                              );
    SetAccessNext       (pRAHBasicSep1,         pColorMapStarter                        );

    AddToolbarView      (pEngineeringToolbar,   1,                      Left            );


    // 第二个工具条
    NewAccess           (CATCmdContainer,       pDieDesignToolbar,      DieDesignTb     );
    SetAccessNext       (pEngineeringToolbar,   pDieDesignToolbar                       );//

    NewAccess           (CATCmdStarter,         pDrillHoleStarter,      DrillHole       );
    SetAccessCommand    (pDrillHoleStarter,     "DrillHole"                             );
    SetAccessChild      (pDieDesignToolbar,     pDrillHoleStarter                       );

    AddToolbarView      (pDieDesignToolbar,     1,                      Left            );


    return pEngineeringToolbar;
}