m_item.srm 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. $PBExportHeader$m_item.srm
  2. forward
  3. global type m_item from menu
  4. end type
  5. end forward
  6. global type m_item from menu
  7. end type
  8. global m_item m_item
  9. event clicked;//
  10. if IsNull(this.Tag) then return
  11. if IsValid(w_main_fx) and IsValid(sys_func_pwr) then
  12. sys_func_pwr.SetFilter('')
  13. sys_func_pwr.Filter()
  14. long row, funcid
  15. row = sys_func_pwr.Find('objname="' + string(this.Tag) + '"', 1, sys_func_pwr.RowCount())
  16. if (row > 0) then
  17. funcid = sys_func_pwr.Object.funcid[row]
  18. w_main_fx.TriggerEvent('ue_main_menu_commnd', funcid, funcid)
  19. else
  20. MessageBox('提示', '请联系开发人员:ds_menu不存在窗口对象:' + string(this.Tag))
  21. end if
  22. end if
  23. end event
  24. on m_item.create
  25. m_item=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.fontfamily = swiss!
  34. this.facename = "Tahoma"
  35. this.titlebackcolor = 134217730
  36. this.bitmapbackcolor = 27099959
  37. this.menubitmaps = true
  38. this.titlegradient = true
  39. this.toolbartextcolor = 134217746
  40. this.toolbarbackcolor = 67108864
  41. this.toolbarhighlightcolor = 134217741
  42. this.toolbargradient = true
  43. this.bitmapgradient = true
  44. end on
  45. on m_item.destroy
  46. call super::destroy
  47. end on