w_waitforreconnect.srw 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124
  1. $PBExportHeader$w_waitforreconnect.srw
  2. forward
  3. global type w_waitforreconnect from window
  4. end type
  5. type p_1 from picture within w_waitforreconnect
  6. end type
  7. type st_1 from statictext within w_waitforreconnect
  8. end type
  9. type cb_cancel from commandbutton within w_waitforreconnect
  10. end type
  11. type st_msg from statictext within w_waitforreconnect
  12. end type
  13. end forward
  14. global type w_waitforreconnect from window
  15. integer width = 1815
  16. integer height = 356
  17. windowtype windowtype = response!
  18. long backcolor = 67108864
  19. string icon = "AppIcon!"
  20. boolean center = true
  21. p_1 p_1
  22. st_1 st_1
  23. cb_cancel cb_cancel
  24. st_msg st_msg
  25. end type
  26. global w_waitforreconnect w_waitforreconnect
  27. type variables
  28. string ins_ori_msg
  29. decimal ins_cursec=3
  30. end variables
  31. on w_waitforreconnect.create
  32. this.p_1=create p_1
  33. this.st_1=create st_1
  34. this.cb_cancel=create cb_cancel
  35. this.st_msg=create st_msg
  36. this.Control[]={this.p_1,&
  37. this.st_1,&
  38. this.cb_cancel,&
  39. this.st_msg}
  40. end on
  41. on w_waitforreconnect.destroy
  42. destroy(this.p_1)
  43. destroy(this.st_1)
  44. destroy(this.cb_cancel)
  45. destroy(this.st_msg)
  46. end on
  47. event open;st_msg.text=string(ins_cursec)+' '+'秒后关闭'
  48. timer(1)
  49. end event
  50. event timer;ins_cursec=ins_cursec - 1
  51. st_msg.text=string(ins_cursec)+' '+'秒后关闭'
  52. if ins_cursec<=0 then
  53. timer(0)
  54. close(this)
  55. end if
  56. end event
  57. type p_1 from picture within w_waitforreconnect
  58. integer width = 1829
  59. integer height = 160
  60. string picturename = "graphics\jdt_banner.jpg"
  61. boolean focusrectangle = false
  62. end type
  63. type st_1 from statictext within w_waitforreconnect
  64. integer x = 59
  65. integer y = 216
  66. integer width = 585
  67. integer height = 76
  68. integer textsize = -9
  69. integer weight = 400
  70. fontcharset fontcharset = ansi!
  71. fontpitch fontpitch = variable!
  72. fontfamily fontfamily = swiss!
  73. string facename = "Arial"
  74. long textcolor = 33554432
  75. long backcolor = 67108864
  76. string text = "连接已断开,请重新登录!"
  77. boolean focusrectangle = false
  78. end type
  79. type cb_cancel from commandbutton within w_waitforreconnect
  80. integer x = 1495
  81. integer y = 208
  82. integer width = 265
  83. integer height = 92
  84. integer taborder = 10
  85. integer textsize = -9
  86. integer weight = 400
  87. fontcharset fontcharset = ansi!
  88. fontpitch fontpitch = variable!
  89. fontfamily fontfamily = swiss!
  90. string facename = "Arial"
  91. string text = "取消"
  92. end type
  93. event clicked;close(parent)
  94. end event
  95. type st_msg from statictext within w_waitforreconnect
  96. integer x = 663
  97. integer y = 216
  98. integer width = 315
  99. integer height = 76
  100. integer textsize = -9
  101. integer weight = 400
  102. fontcharset fontcharset = ansi!
  103. fontpitch fontpitch = variable!
  104. fontfamily fontfamily = swiss!
  105. string facename = "Arial"
  106. string pointer = "HourGlass!"
  107. long textcolor = 33554432
  108. long backcolor = 67108864
  109. boolean focusrectangle = false
  110. end type