m_main_fx.srm 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159
  1. $PBExportHeader$m_main_fx.srm
  2. $PBExportComments$协同系统主menu
  3. forward
  4. global type m_main_fx from menu
  5. end type
  6. type m_软件 from menu within m_main_fx
  7. end type
  8. type m_关于 from menu within m_软件
  9. end type
  10. type m_退出 from menu within m_软件
  11. end type
  12. type m_软件 from menu within m_main_fx
  13. m_关于 m_关于
  14. m_退出 m_退出
  15. end type
  16. global type m_main_fx from menu
  17. m_软件 m_软件
  18. end type
  19. end forward
  20. global type m_main_fx from menu
  21. m_软件 m_软件
  22. end type
  23. global m_main_fx m_main_fx
  24. on m_main_fx.create
  25. m_main_fx=this
  26. call super::create
  27. this.menustyle = contemporarymenu!
  28. this.menutextcolor = 16777215
  29. this.menubackcolor = 27099959
  30. this.menuhighlightcolor = 134217731
  31. this.textsize = -9
  32. this.weight = 400
  33. this.fontpitch = variable!
  34. this.fontfamily = swiss!
  35. this.facename = "Tahoma"
  36. this.titlebackcolor = 134217730
  37. this.bitmapbackcolor = 27099959
  38. this.menubitmaps = true
  39. this.titlegradient = true
  40. this.toolbartextcolor = 134217746
  41. this.toolbarbackcolor = 67108864
  42. this.toolbarhighlightcolor = 134217741
  43. this.toolbargradient = true
  44. this.bitmapgradient = true
  45. this.m_软件=create m_软件
  46. this.Item[UpperBound(this.Item)+1]=this.m_软件
  47. end on
  48. on m_main_fx.destroy
  49. call super::destroy
  50. destroy(this.m_软件)
  51. end on
  52. type m_软件 from menu within m_main_fx
  53. m_关于 m_关于
  54. m_退出 m_退出
  55. end type
  56. on m_软件.create
  57. call super::create
  58. this.text = "系统"
  59. this.menustyle = contemporarymenu!
  60. this.menutextcolor = 16777215
  61. this.menubackcolor = 27099959
  62. this.menuhighlightcolor = 134217731
  63. this.textsize = -9
  64. this.weight = 400
  65. this.facename = "Tahoma"
  66. this.titlebackcolor = 134217730
  67. this.bitmapbackcolor = 27099959
  68. this.menubitmaps = true
  69. this.titlegradient = true
  70. this.toolbartextcolor = 134217746
  71. this.toolbarbackcolor = 67108864
  72. this.toolbarhighlightcolor = 134217741
  73. this.toolbargradient = true
  74. this.bitmapgradient = true
  75. this.m_关于=create m_关于
  76. this.m_退出=create m_退出
  77. this.Item[UpperBound(this.Item)+1]=this.m_关于
  78. this.Item[UpperBound(this.Item)+1]=this.m_退出
  79. end on
  80. on m_软件.destroy
  81. call super::destroy
  82. destroy(this.m_关于)
  83. destroy(this.m_退出)
  84. end on
  85. type m_关于 from menu within m_软件
  86. end type
  87. on m_关于.create
  88. call super::create
  89. this.text = "关于"
  90. this.menustyle = contemporarymenu!
  91. this.menutextcolor = 16777215
  92. this.menubackcolor = 27099959
  93. this.menuhighlightcolor = 134217731
  94. this.textsize = -9
  95. this.weight = 400
  96. this.facename = "Tahoma"
  97. this.titlebackcolor = 134217730
  98. this.bitmapbackcolor = 27099959
  99. this.menubitmaps = true
  100. this.titlegradient = true
  101. this.toolbartextcolor = 134217746
  102. this.toolbarbackcolor = 67108864
  103. this.toolbarhighlightcolor = 134217741
  104. this.toolbargradient = true
  105. this.bitmapgradient = true
  106. end on
  107. on m_关于.destroy
  108. call super::destroy
  109. end on
  110. event clicked;
  111. if not IsValid(w_about_fx) then
  112. Open(w_about_fx)
  113. end if
  114. end event
  115. type m_退出 from menu within m_软件
  116. end type
  117. on m_退出.create
  118. call super::create
  119. this.text = "退出"
  120. this.menustyle = contemporarymenu!
  121. this.menutextcolor = 16777215
  122. this.menubackcolor = 27099959
  123. this.menuhighlightcolor = 134217731
  124. this.textsize = -9
  125. this.weight = 400
  126. this.facename = "Tahoma"
  127. this.titlebackcolor = 134217730
  128. this.bitmapbackcolor = 27099959
  129. this.menubitmaps = true
  130. this.titlegradient = true
  131. this.toolbartextcolor = 134217746
  132. this.toolbarbackcolor = 67108864
  133. this.toolbarhighlightcolor = 134217741
  134. this.toolbargradient = true
  135. this.bitmapgradient = true
  136. end on
  137. on m_退出.destroy
  138. call super::destroy
  139. end on
  140. event clicked;//
  141. if IsValid(w_main_fx) then
  142. Close(w_main_fx)
  143. end if
  144. end event