m_dfc_msg_item.srm 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  1. $PBExportHeader$m_dfc_msg_item.srm
  2. $PBExportComments$超级菜单
  3. forward
  4. global type m_dfc_msg_item from menu
  5. end type
  6. type m_temp from menu within m_dfc_msg_item
  7. end type
  8. global type m_dfc_msg_item from menu
  9. m_temp m_temp
  10. end type
  11. end forward
  12. shared variables
  13. end variables
  14. global type m_dfc_msg_item from menu
  15. m_temp m_temp
  16. end type
  17. global m_dfc_msg_item m_dfc_msg_item
  18. type variables
  19. GraphicObject igoObject
  20. end variables
  21. on m_dfc_msg_item.create
  22. m_dfc_msg_item=this
  23. call super::create
  24. this.m_temp=create m_temp
  25. this.Item[UpperBound(this.Item)+1]=this.m_temp
  26. end on
  27. on m_dfc_msg_item.destroy
  28. call super::destroy
  29. destroy(this.m_temp)
  30. end on
  31. type m_temp from menu within m_dfc_msg_item
  32. end type
  33. on m_temp.create
  34. call super::create
  35. this.text = "Temp"
  36. end on
  37. on m_temp.destroy
  38. call super::destroy
  39. end on
  40. event clicked;//====================================================================
  41. // 事件(Event): m_temp::clicked()
  42. //--------------------------------------------------------------------
  43. // 描述(Description): 菜单条触发时
  44. //--------------------------------------------------------------------
  45. // 参数(Arguments): (None)
  46. //--------------------------------------------------------------------
  47. // 返回(Returns): (None)
  48. //--------------------------------------------------------------------
  49. // 作者: 董伟勇 日期: 2003.05.15
  50. //--------------------------------------------------------------------
  51. // 修改历史:
  52. //
  53. //--------------------------------------------------------------------
  54. // 1998-2003 上海亿用软件有限公司 | DongSoft Team
  55. //====================================================================
  56. IF UpperBound(Item) = 0 THEN
  57. String dsEventName
  58. u_Dfc_Base_Func duFunc
  59. dsEventName = duFunc.uf_GetKeyValue(Tag, "Event")
  60. IF dsEventName <> "" THEN
  61. // 如果有效
  62. IF IsValid(igoObject) THEN
  63. igoObject.TriggerEvent(dsEventName)
  64. ELSE
  65. ParentWindow.TriggerEvent(dsEventName)
  66. END IF
  67. END IF
  68. END IF
  69. end event