w_message_err.srw 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119
  1. $PBExportHeader$w_message_err.srw
  2. forward
  3. global type w_message_err from w_publ_base
  4. end type
  5. type mle_1 from multilineedit within w_message_err
  6. end type
  7. end forward
  8. global type w_message_err from w_publ_base
  9. integer width = 2811
  10. integer height = 1532
  11. string title = "提示信息"
  12. boolean minbox = false
  13. windowtype windowtype = response!
  14. mle_1 mle_1
  15. end type
  16. global w_message_err w_message_err
  17. type variables
  18. string ins_msg
  19. CONSTANT int GWL_STYLE = -16
  20. CONSTANT long WS_THICKFRAME = 262144
  21. CONSTANT long WS_SYSMENU = 524288
  22. end variables
  23. on w_message_err.create
  24. int iCurrent
  25. call super::create
  26. this.mle_1=create mle_1
  27. iCurrent=UpperBound(this.Control)
  28. this.Control[iCurrent+1]=this.mle_1
  29. end on
  30. on w_message_err.destroy
  31. call super::destroy
  32. destroy(this.mle_1)
  33. end on
  34. event open;call super::open;//ULong ll_style
  35. //ll_style = GetWindowLongA(Handle(THIS), gwl_style)
  36. //IF ll_style <> 0 THEN
  37. // SetWindowLongA(Handle(THIS), gwl_style, ll_style + WS_THICKFRAME + WS_SYSMENU)
  38. //END IF
  39. //
  40. //
  41. //this.width = 2450
  42. //this.height = 1192
  43. ins_msg = Message.StringParm
  44. mle_1.Text = ins_msg
  45. end event
  46. event resize;call super::resize;//IF THIS.Width < 2000 THEN
  47. // THIS.Width = 2000
  48. //END IF
  49. //
  50. //IF THIS.Height < 900 THEN
  51. // THIS.Height = 900
  52. //END IF
  53. //
  54. //mle_1.Width = THIS.Width - 30
  55. //mle_1.Height = THIS.Height - 20
  56. //
  57. end event
  58. type cb_func from w_publ_base`cb_func within w_message_err
  59. integer x = 928
  60. integer y = 1344
  61. integer width = 302
  62. integer height = 100
  63. string text = "复制"
  64. string normalpicname = "COPY.BMP"
  65. toolbaralignment pic_align = alignatleft!
  66. boolean border = true
  67. end type
  68. event cb_func::clicked;Clipboard(mle_1.text)
  69. messagebox('系统提示','复制成功!')
  70. end event
  71. type cb_exit from w_publ_base`cb_exit within w_message_err
  72. integer x = 1591
  73. integer y = 1344
  74. integer width = 302
  75. integer height = 100
  76. string text = "确定"
  77. integer picsize = 16
  78. end type
  79. type mle_1 from multilineedit within w_message_err
  80. event keydown pbm_keydown
  81. integer width = 2793
  82. integer height = 1328
  83. integer taborder = 30
  84. boolean bringtotop = true
  85. integer textsize = -9
  86. integer weight = 400
  87. fontcharset fontcharset = gb2312charset!
  88. fontpitch fontpitch = variable!
  89. string facename = "宋体"
  90. long textcolor = 33554432
  91. boolean vscrollbar = true
  92. integer tabstop[] = {1,2}
  93. boolean displayonly = true
  94. borderstyle borderstyle = stylelowered!
  95. end type
  96. event keydown;IF KeyDown(keyA!) and KeyDown(keycontrol!) then
  97. this.SelectText( 1,len(this.text))
  98. end if
  99. IF KeyDown(KeyControl!) AND KeyDown(KeyC!) THEN
  100. mle_1.copy()
  101. end if
  102. end event