Toolbar 'PldTools' 'Floating' 100 500
Begin
     Button PLDCOMP.BMP  Pld:Compile
     Button PLDSIM.BMP   Pld:Simulate
     Button CONFIG.BMP   Pld:Configure
     Button PINLOC.BMP   Pld:TogglePin
End

UpdateResource
Begin
     Kind                Menu
     Name                TextEditMenu
     Action              Add
     ReferencePosition   After
     ReferenceItem       '宏指令语言指导[&G]'  *
     Description
     Begin
          MenuItem MarkedSeparator PLD
          MenuItem 'PLD 设计主题[&P]'           'Client:RunHelpTopic(FileName=\help\pldusr.hlp|Topic=Contents)'
          MenuItem 'CUPL-HDL PLD 设计[&C]'      'Client:RunHelpTopic(FileName=\help\pldusr.hlp|Topic=CreatingYourCompilerSourceFile)'
          MenuItem '配置编译器[&M]'             'Client:RunHelpTopic(FileName=\help\pldusr.hlp|Topic=CompilerOptions)'
          MenuItem 'PLD 设计指南[&T]'           'Client:RunHelpTopic(FileName=\help\pldusr.hlp|Topic=SampleDesignSession)'
          MenuItem 'PLD 参考[&R]'               'Client:RunHelpTopic(FileName=\help\pldusr.hlp|Topic=PldReference)'
     End
End

UpdateResource
Begin
     Kind                Menu
     Name                SchematicMenu
     Action              Add
     ReferencePosition   After
     ReferenceItem       '印制板同步[&Z]'  *
     Description
     Begin
          MenuItem MarkedSeparator PLD
          MenuItem 'PLD 设计主题[&P]'           'Client:RunHelpTopic(FileName=\help\pldusr.hlp|Topic=Contents)'
          MenuItem '原理图-基于 PLD 设计[&H]'   'Client:RunHelpTopic(FileName=\help\pldusr.hlp|Topic=SchematicPldDesign)'
          MenuItem '配置编译器[&M]'             'Client:RunHelpTopic(FileName=\help\pldusr.hlp|Topic=CompilerOptions)'
          MenuItem 'PLD 设计指南[&T]'           'Client:RunHelpTopic(FileName=\help\pldusr.hlp|Topic=SampleDesignSession)'
          MenuItem 'PLD 参考[&R]'               'Client:RunHelpTopic(FileName=\help\pldusr.hlp|Topic=PldReference)'
     End
End

UpdateResource
Begin
     Kind                Menu
     Name                TextEditMenu
     Action              Add
     ReferencePosition   After
     ReferenceItem       '工具[&T]' *
     Description
     Begin
          Popup 'PLD[&D]'
          Begin
               MenuItem '编译[&C]'       PLD:Compile
               MenuItem '模拟[&S]'       PLD:Simulate
               MenuItem SEPARATOR
               MenuItem '配置[&I]...'    PLD:Configure
          End
     End
End

UpdateResource
Begin
     Kind                Menu
     Name                TextEditMenu
     Action              Add
     ReferencePosition   After
     ReferenceItem       '主工具条[&M]' *
     Description
     Begin
          MenuItem 'PLD 工具条[&P]'                    'Client:CustomizeResources(ToggleToolbar=PLD 工具|$Description=打开或关闭 PLD 工具条)'
     End
End

UpdateResource
Begin
     Kind                Menu
     Name                SchematicMenu
     Action              Add
     ReferencePosition   After
     ReferenceItem       '工具[&T] {T}' *
     Description
     Begin
          Popup 'PLD'
          Begin
               MenuItem '编译[&C]'          PLD:Compile
               MenuItem '模拟[&S]'          PLD:Simulate
               MenuItem SEPARATOR           
               MenuItem '配置[&I]...'       PLD:Configure
               MenuItem '切换管脚位置[&T]'  PLD:TogglePin
          End
     End
End

UpdateResource
Begin
     Kind                Menu
     Name                SchematicMenu
     Action              Add
     ReferencePosition   After
     ReferenceItem       '数字符号[&G]' *
     Description
     Begin
          MenuItem 'PLD 工具条[&P]'                    'Client:CustomizeResources(ToggleToolbar=PLD 工具|$Description=打开或关闭 PLD 工具条)'
     End
End
