m_dft_dwprint_item.srm 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. $PBExportHeader$m_dft_dwprint_item.srm
  2. $PBExportComments$超级菜单
  3. forward
  4. global type m_dft_dwprint_item from menu
  5. end type
  6. type m_默认格式 from menu within m_dft_dwprint_item
  7. end type
  8. global type m_dft_dwprint_item from menu
  9. m_默认格式 m_默认格式
  10. end type
  11. end forward
  12. shared variables
  13. end variables
  14. global type m_dft_dwprint_item from menu
  15. m_默认格式 m_默认格式
  16. end type
  17. global m_dft_dwprint_item m_dft_dwprint_item
  18. type variables
  19. end variables
  20. forward prototypes
  21. public subroutine f1 ()
  22. end prototypes
  23. public subroutine f1 ();
  24. end subroutine
  25. on m_dft_dwprint_item.create
  26. m_dft_dwprint_item=this
  27. call super::create
  28. this.text = "m_ljerp2_main_menu_item"
  29. this.m_默认格式=create m_默认格式
  30. this.Item[UpperBound(this.Item)+1]=this.m_默认格式
  31. end on
  32. on m_dft_dwprint_item.destroy
  33. call super::destroy
  34. destroy(this.m_默认格式)
  35. end on
  36. type m_默认格式 from menu within m_dft_dwprint_item
  37. end type
  38. event clicked;If upperbound(item) = 0 Then
  39. IF IsValid(w_curwin) THEN
  40. w_curwin.triggerevent('ue_viewprint',long(tag),long(tag))
  41. else
  42. w_curwin.triggerevent('ue_viewprint',0,0)
  43. end if
  44. end if
  45. end event
  46. on m_默认格式.create
  47. call super::create
  48. this.text = "默认格式"
  49. end on
  50. on m_默认格式.destroy
  51. call super::destroy
  52. end on