Menu PCB3DMenu
Begin
     Popup '文件[&F] {F}'
     Begin
          MenuItem '新建[&N]...'               'Client:CreateNewDocument(SingleDocument=True)'
          MenuItem '新建设计[&G]...'         Client:CreateNewDocument
          MenuItem '打开[&O]...'               Client:OpenDocument
          MenuItem '关闭[&C]'                 Client:CloseDocument
          MenuItem '关闭设计[&D]'          Client:CloseProject
          MenuItem SEPARATOR
          MenuItem '设置打印机[&R]...'      PCB3D:SetupPrinter
          MenuItem '打印[&P]'                 PCB3D:PrintDocument
          MenuItem SEPARATOR
          MenuItem '退出[&X]'                  Client:QuitFromEDAClient
     End
     Popup '查看[&V] {V}'
     Begin
          MenuItem '适合板框[&F]'            'PCB3D:Zoom(Action=All)'
          MenuItem '选区[&A]'                 'PCB3D:Zoom(Action=Window)'
          MenuItem SEPARATOR
          MenuItem '放大[&I]'              'PCB3D:Zoom(Action=In)'
          MenuItem '缩小[&O]'             'PCB3D:Zoom(Action=Out)'
          MenuItem '刷新[&R]'              'PCB3D:Zoom(Action = Redraw)'
          MenuItem SEPARATOR
          MenuItem '设计管理器[&M]'        Client:ToggleDocumentManager
          MenuItem '状态栏[&S]'            Client:ToggleClientStatusBar
          MenuItem '命令状态栏[&N]'        Client:ToggleProcessStatusBar
          MenuItem '主工具条[&B]'         'Client:CustomizeResources(ToggleToolbar=TextTools)'
          MenuItem SEPARATOR
          MenuItem '参数选择[&P]...'        PCB3D:SetupPreferences
     End
     Popup '窗口[&W] {W}'
     Begin
          MenuItem '平铺[&T]\tShift+F4'                   Client:TileAllOpenDocuments
          MenuItem '层叠[&C]\tShift+F5'                Client:CascadeAllOpenDocuments
          MenuItem SEPARATOR
          MenuItem '水平平铺[&H]'               'Client:TileAllOpenDocuments(Mode=Horizontal)'
          MenuItem '垂直平铺[&V]'                 'Client:TileAllOpenDocuments(Mode=Vertical)'
          MenuItem SEPARATOR
          MenuItem '排列为图标[&I]'                    Client:WindowArrangeIcons
          MenuItem '关闭全部[&A]'                        Client:CloseAllOpenDocuments
     End
     Popup '帮助[&H] {H}'
     Begin
          MenuItem '内容[&C]'             'Client:RunHelpTopic(FileName=\Help\Protel.hlp|Topic=contents)'
          MenuItem SEPARATOR
          Popup '弹出[&P]'
          Begin
              Popup '缩放[&Z] {Z}'
              Begin
                  MenuItem '窗口[&W]'       'PCB3D:Zoom(Action=Window)'
                  MenuItem SEPARATOR
                  MenuItem '放大[&I]'           'PCB3D:Zoom(Action=In)'
                  MenuItem '缩小[&O]'          'PCB3D:Zoom(Action=Out)'
                  MenuItem '重绘[&R]'       'PCB3D:Zoom(Action = Redraw)'
                  MenuItem SEPARATOR
                  MenuItem '全部[&A]'          'PCB3D:Zoom(Action=All)'
              End
              Popup '滚屏[&P] {P}'
              Begin
                  MenuItem '左[&L]'         'PCB3D:Pan(Action=Left)'
                  MenuItem '右[&R]'        'PCB3D:Pan(Action=Right)'
                  MenuItem '上[&U]'           'PCB3D:Pan(Action=Up)'
                  MenuItem '下[&D]'         'PCB3D:Pan(Action=Down)'
              End
          End
          MenuItem SEPARATOR
          MenuItem '关于[&S]'              Client:HelpAbout
     End
End

HotKeyTable 'PCB3DHotKeyTable'
Begin
     Key 'PCB3D:Zoom(Action=Redraw)'     End                                     EndKey
     Key Client:RunHelpTopic                F1                                      EndKey
     Key Client:TileAllOpenDocuments        F4                  Shift               EndKey
     Key Client:CascadeAllOpenDocuments     F5                  Shift               EndKey
     Key 'PCB3D:Zoom(Action=In)'         PgUp                                    EndKey
     Key 'PCB3D:Zoom(Action=Down)'       PgDn                                    EndKey
     Key 'PCB3D:Pan(Action=Left)'        Left                                    EndKey
     Key 'PCB3D:Pan(Action=Right)'       Right                                   EndKey
     Key 'PCB3D:Pan(Action=Up)'          Up                                      EndKey
     Key 'PCB3D:Pan(Action=Down)'        Down                                    EndKey
     Key 'PCB3D:Pan(Action=Recentre)'    Home                                    EndKey
     Key 'PCB3D:OrientView(Action=Left)' Left              Ctrl                  EndKey
     Key 'PCB3D:OrientView(Action=Right)'Right             Ctrl                  EndKey
     Key 'PCB3D:OrientView(Action=Up)'   Up                Ctrl                  EndKey
     Key 'PCB3D:OrientView(Action=Down)' Down              Ctrl                  EndKey
End

Toolbar PCB3DToolBar 'Fixed Top' 1 1 50 'True' 5000
Begin
     Button 'PROJMAN.BMP'                   Client:ToggleDocumentManager
     Separator
     Button 'FILEOPEN.BMP'                  Client:OpenDocument
     Button 'FILESAVE.BMP'                  Client:SaveDocument
     Button 'PRINT.BMP'                     PCB3D:SetupPrinter
     Separator
     Button 'ZOOMIN.BMP'                   'PCB3D:Zoom(Action=In)'
     Button 'ZOOMOUT.BMP'                  'PCB3D:Zoom(Action=Out)'
     Button 'ZOOMDOC.BMP'                  'PCB3D:Zoom(Action=All)'
     Button 'ZOOMWIND.BMP'                 'PCB3D:Zoom(Action=Window)'
     Separator
     Button 'HELP.BMP'                      Client:RunHelpTopic
End

