w_pos_msg.srw 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100
  1. $PBExportHeader$w_pos_msg.srw
  2. forward
  3. global type w_pos_msg from w_publ_base
  4. end type
  5. type st_msg from statictext within w_pos_msg
  6. end type
  7. type cb_1 from uo_imflatbutton within w_pos_msg
  8. end type
  9. end forward
  10. global type w_pos_msg from w_publ_base
  11. integer width = 2286
  12. integer height = 324
  13. boolean titlebar = false
  14. string title = ""
  15. boolean controlmenu = false
  16. boolean minbox = false
  17. windowtype windowtype = response!
  18. long backcolor = 255
  19. st_msg st_msg
  20. cb_1 cb_1
  21. end type
  22. global w_pos_msg w_pos_msg
  23. type variables
  24. decimal cur_sec
  25. end variables
  26. event open;call super::open;String ls_msg
  27. ls_msg = Message.StringParm
  28. IF st_msg.Text <> '' THEN
  29. st_msg.Text = ls_msg
  30. END IF
  31. Timer(0.1)
  32. end event
  33. on w_pos_msg.create
  34. int iCurrent
  35. call super::create
  36. this.st_msg=create st_msg
  37. this.cb_1=create cb_1
  38. iCurrent=UpperBound(this.Control)
  39. this.Control[iCurrent+1]=this.st_msg
  40. this.Control[iCurrent+2]=this.cb_1
  41. end on
  42. on w_pos_msg.destroy
  43. call super::destroy
  44. destroy(this.st_msg)
  45. destroy(this.cb_1)
  46. end on
  47. event timer;call super::timer;cur_sec = cur_sec + 0.1
  48. if cur_sec > 1 then
  49. timer(0)
  50. close(this)
  51. end if
  52. end event
  53. type cb_func from w_publ_base`cb_func within w_pos_msg
  54. boolean visible = false
  55. end type
  56. type cb_exit from w_publ_base`cb_exit within w_pos_msg
  57. boolean visible = false
  58. end type
  59. type st_msg from statictext within w_pos_msg
  60. integer x = 18
  61. integer y = 80
  62. integer width = 2254
  63. integer height = 176
  64. boolean bringtotop = true
  65. integer textsize = -28
  66. integer weight = 700
  67. fontcharset fontcharset = gb2312charset!
  68. fontpitch fontpitch = variable!
  69. string facename = "宋体"
  70. long textcolor = 33554432
  71. long backcolor = 255
  72. string text = "查无记录!"
  73. alignment alignment = center!
  74. boolean focusrectangle = false
  75. end type
  76. type cb_1 from uo_imflatbutton within w_pos_msg
  77. integer x = 1271
  78. integer y = 444
  79. integer taborder = 20
  80. boolean bringtotop = true
  81. boolean default = true
  82. end type
  83. event clicked;call super::clicked;timer(0)
  84. close(parent)
  85. end event