u_function_list.sru 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119
  1. $PBExportHeader$u_function_list.sru
  2. $PBExportComments$By PBKiller v2.5.18(http://kivens.nease.net)
  3. forward
  4. global type u_function_list from listview
  5. end type
  6. end forward
  7. global type u_function_list from listview
  8. integer width = 480
  9. integer height = 300
  10. integer textsize = -9
  11. integer weight = 400
  12. fontcharset fontcharset = gb2312charset!
  13. fontpitch fontpitch = variable!
  14. string facename = "宋体"
  15. string pointer = "HyperLink!"
  16. boolean border = false
  17. boolean autoarrange = true
  18. boolean trackselect = true
  19. boolean twoclickactivate = true
  20. string largepicturename[] = {"",""}
  21. integer largepicturewidth = 32
  22. integer largepictureheight = 32
  23. long largepicturemaskcolor = 536870912
  24. string smallpicturename[] = {""}
  25. long smallpicturemaskcolor = 536870912
  26. string statepicturename[] = {""}
  27. long statepicturemaskcolor = 536870912
  28. event ue_find ( string arg_str )
  29. end type
  30. global u_function_list u_function_list
  31. type variables
  32. public u_function_panel iuo_parent
  33. end variables
  34. forward prototypes
  35. public subroutine of_reset ()
  36. end prototypes
  37. event ue_find(string arg_str);Long ll_i,handel
  38. listviewitem l_lvi
  39. this.setredraw( false)
  40. FOR ll_i = 1 To This.TotalItems ( )
  41. handel = This.GetItem(ll_i, l_lvi)
  42. IF Pos(l_lvi.Label,arg_str) > 0 THEN
  43. l_lvi.HasFocus = True
  44. l_lvi.Selected = True
  45. This.SetItem(handel,l_lvi)
  46. EXIT
  47. END IF
  48. NEXT
  49. //this.resize( this.width , this.height )
  50. this.setredraw( true)
  51. end event
  52. public subroutine of_reset ();deleteitems()
  53. end subroutine
  54. event constructor;hide()
  55. return
  56. end event
  57. on u_function_list.create
  58. end on
  59. on u_function_list.destroy
  60. end on
  61. event doubleclicked;listviewitem l_lvi
  62. getitem(index,l_lvi)
  63. iuo_parent.is_selectedid = string(l_lvi.data)
  64. iuo_parent.is_msg = string(l_lvi.label )
  65. //shizy
  66. iuo_parent.triggerevent("ue_doubleclickfunc")
  67. return
  68. end event
  69. event rightclicked;m_xls_pop m_xls
  70. m_xls = create m_xls_pop
  71. m_xls.m_panel.m_expandall.enabled = false
  72. m_xls.m_panel.m_collapseall.enabled = false
  73. m_xls.m_panel.m_pop_panelrefresh.enabled = false
  74. m_xls.m_panel.m_displayid.enabled = false
  75. m_xls.iuo_parent =iuo_parent
  76. //shizy
  77. if iuo_parent.iuo_list[iuo_parent.ii_curgroup].view = listviewlargeicon! then
  78. iuo_parent.is_smallicon = "N"
  79. else
  80. iuo_parent.is_smallicon = "Y"
  81. end if
  82. if iuo_parent.is_smallicon = "N" then
  83. m_xls.m_panel.m_smallicon.checked = false
  84. else
  85. m_xls.m_panel.m_smallicon.checked = true
  86. end if
  87. m_xls.m_panel.popmenu( this.x+ iuo_parent.x+ pointerx(),this.y+pointery() )
  88. return
  89. end event
  90. event clicked;
  91. listviewitem l_lvi
  92. getitem(index,l_lvi)
  93. iuo_parent.is_selectedid = string(l_lvi.data)
  94. //shizy
  95. iuo_parent.triggerevent("ue_clickfunc")
  96. return
  97. end event