m_rpt_tool.srm 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209
  1. $PBExportHeader$m_rpt_tool.srm
  2. $PBExportComments$带工具条的窗口菜单
  3. forward
  4. global type m_rpt_tool from menu
  5. end type
  6. type m_tool from menu within m_rpt_tool
  7. end type
  8. type m_find from menu within m_tool
  9. end type
  10. type m_-92 from menu within m_tool
  11. end type
  12. type m_delete from menu within m_tool
  13. end type
  14. type m_insert from menu within m_tool
  15. end type
  16. type m_new from menu within m_tool
  17. end type
  18. type m_save from menu within m_tool
  19. end type
  20. type m_tool from menu within m_rpt_tool
  21. m_find m_find
  22. m_-92 m_-92
  23. m_delete m_delete
  24. m_insert m_insert
  25. m_new m_new
  26. m_save m_save
  27. end type
  28. type m_help from menu within m_rpt_tool
  29. end type
  30. type m_fh from menu within m_help
  31. end type
  32. type m_help from menu within m_rpt_tool
  33. m_fh m_fh
  34. end type
  35. end forward
  36. global type m_rpt_tool from menu
  37. m_tool m_tool
  38. m_help m_help
  39. end type
  40. global m_rpt_tool m_rpt_tool
  41. on m_rpt_tool.create
  42. m_rpt_tool=this
  43. this.m_tool=create m_tool
  44. this.m_help=create m_help
  45. this.Item[]={this.m_tool, &
  46. this.m_help}
  47. end on
  48. on m_rpt_tool.destroy
  49. destroy(this.m_tool)
  50. destroy(this.m_help)
  51. end on
  52. type m_tool from menu within m_rpt_tool
  53. m_find m_find
  54. m_-92 m_-92
  55. m_delete m_delete
  56. m_insert m_insert
  57. m_new m_new
  58. m_save m_save
  59. end type
  60. on m_tool.create
  61. this.Text="工具"
  62. this.Microhelp="工具"
  63. this.m_find=create m_find
  64. this.m_-92=create m_-92
  65. this.m_delete=create m_delete
  66. this.m_insert=create m_insert
  67. this.m_new=create m_new
  68. this.m_save=create m_save
  69. this.Item[]={this.m_find, &
  70. this.m_-92, &
  71. this.m_delete, &
  72. this.m_insert, &
  73. this.m_new, &
  74. this.m_save}
  75. end on
  76. on m_tool.destroy
  77. destroy(this.m_find)
  78. destroy(this.m_-92)
  79. destroy(this.m_delete)
  80. destroy(this.m_insert)
  81. destroy(this.m_new)
  82. destroy(this.m_save)
  83. end on
  84. type m_find from menu within m_tool
  85. end type
  86. on m_find.create
  87. this.Text="查询~tF3"
  88. this.Microhelp="查询(快键F3)"
  89. this.ToolBarItemName="Find!"
  90. this.ToolBarItemText="查询"
  91. this.ToolBarItemSpace=1
  92. this.Shortcut=114
  93. end on
  94. event clicked;parentwindow.event dynamic ue_cond()
  95. end event
  96. type m_-92 from menu within m_tool
  97. end type
  98. on m_-92.create
  99. this.Text="-"
  100. end on
  101. type m_delete from menu within m_tool
  102. end type
  103. on m_delete.create
  104. this.Text="删除~tF7"
  105. this.Microhelp="删除(快键F7)"
  106. this.ToolBarItemName="Custom080!"
  107. this.ToolBarItemText="删除"
  108. this.ToolBarItemSpace=1
  109. this.Shortcut=118
  110. end on
  111. event clicked;parentwindow.event dynamic ue_delete()
  112. end event
  113. type m_insert from menu within m_tool
  114. end type
  115. on m_insert.create
  116. this.Text="插入~tF5"
  117. this.Microhelp="中间加入(快键F5)"
  118. this.ToolBarItemName="Insert5!"
  119. this.ToolBarItemText="插入"
  120. this.ToolBarItemSpace=1
  121. this.Shortcut=116
  122. end on
  123. event clicked;parentwindow.event dynamic ue_new(1)
  124. end event
  125. type m_new from menu within m_tool
  126. end type
  127. on m_new.create
  128. this.Text="新增~tF6"
  129. this.Microhelp="最后增加(快键F6)"
  130. this.ToolBarItemName="SelectScript!"
  131. this.ToolBarItemText="新增"
  132. this.ToolBarItemSpace=1
  133. this.Shortcut=117
  134. end on
  135. event clicked;parentwindow.event dynamic ue_new(0)
  136. end event
  137. type m_save from menu within m_tool
  138. end type
  139. on m_save.create
  140. this.Text="存盘~tF12"
  141. this.Microhelp="存盘(快键F12)"
  142. this.ToolBarItemName="Save!"
  143. this.ToolBarItemText="存盘"
  144. this.ToolBarItemSpace=1
  145. this.Shortcut=123
  146. end on
  147. event clicked;parentwindow.event dynamic ue_save()
  148. parentwindow.setfocus()
  149. end event
  150. type m_help from menu within m_rpt_tool
  151. m_fh m_fh
  152. end type
  153. on m_help.create
  154. this.Text="系统&I"
  155. this.Microhelp="帮助"
  156. this.m_fh=create m_fh
  157. this.Item[]={this.m_fh}
  158. end on
  159. on m_help.destroy
  160. destroy(this.m_fh)
  161. end on
  162. type m_fh from menu within m_help
  163. end type
  164. on m_fh.create
  165. this.Text="返回~tAlt+F4"
  166. this.Microhelp="返回(快键Alt+F4)"
  167. this.ToolBarItemName="exit!"
  168. this.ToolBarItemText="返回"
  169. this.ToolBarItemSpace=1
  170. this.Shortcut=627
  171. end on
  172. event clicked;close(parentwindow)
  173. end event