w_rpt_message.srw 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209
  1. $PBExportHeader$w_rpt_message.srw
  2. $PBExportComments$进度显示--窗口
  3. forward
  4. global type w_rpt_message from Window
  5. end type
  6. type st_12 from statictext within w_rpt_message
  7. end type
  8. type st_3 from statictext within w_rpt_message
  9. end type
  10. type st_message2 from statictext within w_rpt_message
  11. end type
  12. type st_1 from statictext within w_rpt_message
  13. end type
  14. type st_2 from statictext within w_rpt_message
  15. end type
  16. type st_10 from statictext within w_rpt_message
  17. end type
  18. type st_11 from statictext within w_rpt_message
  19. end type
  20. end forward
  21. global type w_rpt_message from Window
  22. int X=1147
  23. int Y=804
  24. int Width=1376
  25. int Height=268
  26. long BackColor=12632256
  27. WindowType WindowType=popup!
  28. event ue_percent ( integer i_percent )
  29. st_12 st_12
  30. st_3 st_3
  31. st_message2 st_message2
  32. st_1 st_1
  33. st_2 st_2
  34. st_10 st_10
  35. st_11 st_11
  36. end type
  37. global w_rpt_message w_rpt_message
  38. type variables
  39. int ii_percent
  40. end variables
  41. event ue_percent;if ii_percent<i_percent and i_percent<=100 then
  42. ii_percent=i_percent
  43. st_10.width=13*i_percent
  44. st_11.text=string(i_percent)+'%'
  45. end if
  46. end event
  47. on w_rpt_message.create
  48. this.st_12=create st_12
  49. this.st_3=create st_3
  50. this.st_message2=create st_message2
  51. this.st_1=create st_1
  52. this.st_2=create st_2
  53. this.st_10=create st_10
  54. this.st_11=create st_11
  55. this.Control[]={this.st_12,&
  56. this.st_3,&
  57. this.st_message2,&
  58. this.st_1,&
  59. this.st_2,&
  60. this.st_10,&
  61. this.st_11}
  62. end on
  63. on w_rpt_message.destroy
  64. destroy(this.st_12)
  65. destroy(this.st_3)
  66. destroy(this.st_message2)
  67. destroy(this.st_1)
  68. destroy(this.st_2)
  69. destroy(this.st_10)
  70. destroy(this.st_11)
  71. end on
  72. event open;f_wcenter(this)
  73. string ls
  74. ls=message.StringParm
  75. st_1.text=ls
  76. st_10.width=13*0
  77. st_11.text='0%'
  78. if asc(left(ls,1))=asc('%') then
  79. st_1.text=mid(ls,2)
  80. this.Height=134
  81. end if
  82. end event
  83. type st_12 from statictext within w_rpt_message
  84. int X=32
  85. int Y=148
  86. int Width=1298
  87. int Height=88
  88. boolean Enabled=false
  89. boolean Border=true
  90. BorderStyle BorderStyle=StyleLowered!
  91. boolean FocusRectangle=false
  92. long BackColor=16777215
  93. int TextSize=-9
  94. int Weight=400
  95. string FaceName="宋体"
  96. FontPitch FontPitch=Variable!
  97. end type
  98. type st_3 from statictext within w_rpt_message
  99. int Y=128
  100. int Width=1371
  101. int Height=132
  102. boolean Enabled=false
  103. boolean Border=true
  104. BorderStyle BorderStyle=StyleRaised!
  105. boolean FocusRectangle=false
  106. long BackColor=79741120
  107. int TextSize=-12
  108. int Weight=400
  109. string FaceName="Arial"
  110. FontFamily FontFamily=Swiss!
  111. FontPitch FontPitch=Variable!
  112. end type
  113. type st_message2 from statictext within w_rpt_message
  114. int X=32
  115. int Y=36
  116. int Width=1294
  117. int Height=84
  118. boolean Enabled=false
  119. Alignment Alignment=Center!
  120. boolean FocusRectangle=false
  121. long TextColor=65280
  122. long BackColor=79741120
  123. int TextSize=-11
  124. int Weight=400
  125. string FaceName="Arial"
  126. FontFamily FontFamily=Swiss!
  127. FontPitch FontPitch=Variable!
  128. end type
  129. type st_1 from statictext within w_rpt_message
  130. int X=32
  131. int Y=24
  132. int Width=1298
  133. int Height=76
  134. boolean Enabled=false
  135. boolean BringToTop=true
  136. boolean Border=true
  137. BorderStyle BorderStyle=StyleLowered!
  138. string Text="提示信息"
  139. Alignment Alignment=Center!
  140. boolean FocusRectangle=false
  141. long TextColor=8388608
  142. long BackColor=79741120
  143. int TextSize=-11
  144. int Weight=400
  145. string FaceName="Arial"
  146. FontFamily FontFamily=Swiss!
  147. FontPitch FontPitch=Variable!
  148. end type
  149. type st_2 from statictext within w_rpt_message
  150. int Width=1371
  151. int Height=128
  152. boolean Enabled=false
  153. boolean Border=true
  154. BorderStyle BorderStyle=StyleRaised!
  155. boolean FocusRectangle=false
  156. long BackColor=79741120
  157. int TextSize=-12
  158. int Weight=400
  159. string FaceName="Arial"
  160. FontFamily FontFamily=Swiss!
  161. FontPitch FontPitch=Variable!
  162. end type
  163. type st_10 from statictext within w_rpt_message
  164. int X=32
  165. int Y=152
  166. int Width=649
  167. int Height=84
  168. boolean Enabled=false
  169. boolean BringToTop=true
  170. boolean Border=true
  171. BorderStyle BorderStyle=StyleLowered!
  172. boolean FocusRectangle=false
  173. long BackColor=16711680
  174. int TextSize=-9
  175. int Weight=400
  176. string FaceName="宋体"
  177. FontPitch FontPitch=Variable!
  178. end type
  179. type st_11 from statictext within w_rpt_message
  180. int X=608
  181. int Y=168
  182. int Width=146
  183. int Height=52
  184. boolean Enabled=false
  185. boolean BringToTop=true
  186. string Text="100%"
  187. boolean FocusRectangle=false
  188. long BackColor=16777215
  189. int TextSize=-9
  190. int Weight=400
  191. string FaceName="宋体"
  192. FontPitch FontPitch=Variable!
  193. end type