m_dft.srm 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596
  1. $PBExportHeader$m_dft.srm
  2. forward
  3. global type m_dft from menu
  4. end type
  5. type m_0 from menu within m_dft
  6. end type
  7. type m_设定默认 from menu within m_0
  8. end type
  9. type m_取消默认 from menu within m_0
  10. end type
  11. type m_0 from menu within m_dft
  12. m_设定默认 m_设定默认
  13. m_取消默认 m_取消默认
  14. end type
  15. global type m_dft from menu
  16. m_0 m_0
  17. end type
  18. end forward
  19. global type m_dft from menu
  20. m_0 m_0
  21. end type
  22. global m_dft m_dft
  23. on m_dft.create
  24. m_dft=this
  25. call super::create
  26. this.m_0=create m_0
  27. this.Item[UpperBound(this.Item)+1]=this.m_0
  28. end on
  29. on m_dft.destroy
  30. call super::destroy
  31. destroy(this.m_0)
  32. end on
  33. type m_0 from menu within m_dft
  34. m_设定默认 m_设定默认
  35. m_取消默认 m_取消默认
  36. end type
  37. on m_0.create
  38. call super::create
  39. this.m_设定默认=create m_设定默认
  40. this.m_取消默认=create m_取消默认
  41. this.Item[UpperBound(this.Item)+1]=this.m_设定默认
  42. this.Item[UpperBound(this.Item)+1]=this.m_取消默认
  43. end on
  44. on m_0.destroy
  45. call super::destroy
  46. destroy(this.m_设定默认)
  47. destroy(this.m_取消默认)
  48. end on
  49. type m_设定默认 from menu within m_0
  50. end type
  51. on m_设定默认.create
  52. call super::create
  53. this.text = "设定默认"
  54. end on
  55. on m_设定默认.destroy
  56. call super::destroy
  57. end on
  58. event clicked;if isvalid(w_mtrldef_edit) then
  59. w_mtrldef_edit.triggerevent('ue_dft_set')
  60. elseif isvalid(w_mtrldef_edit_popup) then
  61. w_mtrldef_edit_popup.triggerevent('ue_dft_set')
  62. end if
  63. end event
  64. type m_取消默认 from menu within m_0
  65. end type
  66. on m_取消默认.create
  67. call super::create
  68. this.text = "取消默认"
  69. end on
  70. on m_取消默认.destroy
  71. call super::destroy
  72. end on
  73. event clicked;if isvalid(w_mtrldef_edit) then
  74. w_mtrldef_edit.triggerevent('ue_dft_cancel')
  75. elseif isvalid(w_mtrldef_edit_popup) then
  76. w_mtrldef_edit_popup.triggerevent('ue_dft_cancel')
  77. end if
  78. end event