w_view_dscrp_log.srw 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159
  1. $PBExportHeader$w_view_dscrp_log.srw
  2. forward
  3. global type w_view_dscrp_log from w_publ_base
  4. end type
  5. type cb_1 from uo_imflatbutton within w_view_dscrp_log
  6. end type
  7. type mle_dscrp from multilineedit within w_view_dscrp_log
  8. end type
  9. type gb_1 from groupbox within w_view_dscrp_log
  10. end type
  11. type st_msg from statictext within w_view_dscrp_log
  12. end type
  13. end forward
  14. global type w_view_dscrp_log from w_publ_base
  15. integer width = 2286
  16. integer height = 1632
  17. string title = ""
  18. boolean minbox = false
  19. windowtype windowtype = response!
  20. cb_1 cb_1
  21. mle_dscrp mle_dscrp
  22. gb_1 gb_1
  23. st_msg st_msg
  24. end type
  25. global w_view_dscrp_log w_view_dscrp_log
  26. type variables
  27. s_view_dscrp s_view
  28. end variables
  29. on w_view_dscrp_log.create
  30. int iCurrent
  31. call super::create
  32. this.cb_1=create cb_1
  33. this.mle_dscrp=create mle_dscrp
  34. this.gb_1=create gb_1
  35. this.st_msg=create st_msg
  36. iCurrent=UpperBound(this.Control)
  37. this.Control[iCurrent+1]=this.cb_1
  38. this.Control[iCurrent+2]=this.mle_dscrp
  39. this.Control[iCurrent+3]=this.gb_1
  40. this.Control[iCurrent+4]=this.st_msg
  41. end on
  42. on w_view_dscrp_log.destroy
  43. call super::destroy
  44. destroy(this.cb_1)
  45. destroy(this.mle_dscrp)
  46. destroy(this.gb_1)
  47. destroy(this.st_msg)
  48. end on
  49. event open;call super::open;s_view = Message.PowerObjectParm
  50. mle_dscrp.Text = s_view.dscrp
  51. IF not s_view.editmode THEN
  52. cb_1.Visible = FALSE
  53. cb_exit.Visible = FALSE
  54. mle_dscrp.DisplayOnly = TRUE
  55. THIS.Title = s_view.Title + ' - 查看状态'
  56. mle_dscrp.height = 1392
  57. ELSE
  58. cb_1.Visible = TRUE
  59. cb_exit.Visible = TRUE
  60. mle_dscrp.DisplayOnly = FALSE
  61. THIS.Title = s_view.Title + ' - 编辑状态'
  62. mle_dscrp.height = 1248
  63. END IF
  64. st_msg.text = '已输入' + string(len(mle_dscrp.text)) + '个字节'
  65. end event
  66. event close;call super::close;closewithreturn(this,s_view)
  67. end event
  68. type cb_func from w_publ_base`cb_func within w_view_dscrp_log
  69. boolean visible = false
  70. end type
  71. type cb_exit from w_publ_base`cb_exit within w_view_dscrp_log
  72. integer x = 1349
  73. integer y = 1388
  74. string text = "取消"
  75. end type
  76. type cb_1 from uo_imflatbutton within w_view_dscrp_log
  77. integer x = 640
  78. integer y = 1388
  79. integer width = 311
  80. integer height = 96
  81. integer taborder = 20
  82. boolean bringtotop = true
  83. string normalpicname = "ok.bmp"
  84. end type
  85. event clicked;call super::clicked;IF mle_dscrp.Text <> s_view.dscrp THEN
  86. s_view.dscrp = mle_dscrp.Text
  87. END IF
  88. Close(PARENT)
  89. end event
  90. type mle_dscrp from multilineedit within w_view_dscrp_log
  91. event enchange pbm_enchange
  92. integer x = 55
  93. integer y = 104
  94. integer width = 2176
  95. integer height = 1248
  96. integer taborder = 30
  97. boolean bringtotop = true
  98. integer textsize = -9
  99. integer weight = 400
  100. fontcharset fontcharset = gb2312charset!
  101. fontpitch fontpitch = variable!
  102. string facename = "宋体"
  103. long textcolor = 33554432
  104. boolean vscrollbar = true
  105. boolean autovscroll = true
  106. integer limit = 2000
  107. borderstyle borderstyle = stylelowered!
  108. boolean hideselection = false
  109. end type
  110. event enchange;st_msg.text = '已输入' + string( len(this.text)) + '个字节'
  111. end event
  112. type gb_1 from groupbox within w_view_dscrp_log
  113. integer x = 18
  114. integer width = 2245
  115. integer height = 1516
  116. integer taborder = 30
  117. integer textsize = -9
  118. integer weight = 400
  119. fontcharset fontcharset = gb2312charset!
  120. fontpitch fontpitch = variable!
  121. string facename = "宋体"
  122. long textcolor = 33554432
  123. long backcolor = 134217739
  124. end type
  125. type st_msg from statictext within w_view_dscrp_log
  126. integer x = 59
  127. integer y = 44
  128. integer width = 562
  129. integer height = 48
  130. boolean bringtotop = true
  131. integer textsize = -9
  132. integer weight = 400
  133. fontcharset fontcharset = gb2312charset!
  134. fontpitch fontpitch = variable!
  135. string facename = "宋体"
  136. long textcolor = 33554432
  137. long backcolor = 134217739
  138. boolean focusrectangle = false
  139. end type