w_inputbox_decimal.srw 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107
  1. $PBExportHeader$w_inputbox_decimal.srw
  2. forward
  3. global type w_inputbox_decimal from w_publ_base
  4. end type
  5. type cb_que from uo_imflatbutton within w_inputbox_decimal
  6. end type
  7. type em_1 from editmask within w_inputbox_decimal
  8. end type
  9. end forward
  10. global type w_inputbox_decimal from w_publ_base
  11. integer x = 23
  12. integer y = 24
  13. integer width = 1920
  14. integer height = 364
  15. string title = "请填入"
  16. boolean controlmenu = false
  17. boolean minbox = false
  18. windowtype windowtype = response!
  19. long backcolor = 67108864
  20. cb_que cb_que
  21. em_1 em_1
  22. end type
  23. global w_inputbox_decimal w_inputbox_decimal
  24. type variables
  25. S_INPUTBOX_decimal S_OBJSTRU
  26. end variables
  27. on w_inputbox_decimal.create
  28. int iCurrent
  29. call super::create
  30. this.cb_que=create cb_que
  31. this.em_1=create em_1
  32. iCurrent=UpperBound(this.Control)
  33. this.Control[iCurrent+1]=this.cb_que
  34. this.Control[iCurrent+2]=this.em_1
  35. end on
  36. on w_inputbox_decimal.destroy
  37. call super::destroy
  38. destroy(this.cb_que)
  39. destroy(this.em_1)
  40. end on
  41. event open;call super::open;S_OBJSTRU=MESSAGE.PowerObjectParm
  42. S_OBJSTRU.has_rslt = 0
  43. this.title=S_OBJSTRU.TITLE
  44. em_1.TEXT=string(S_OBJSTRU.value)
  45. em_1.setfocus()
  46. em_1.selecttext(1,len(em_1.TEXT))
  47. end event
  48. event close;CloseWithReturn(this,S_OBJSTRU)
  49. end event
  50. type cb_func from w_publ_base`cb_func within w_inputbox_decimal
  51. boolean visible = false
  52. integer x = 859
  53. integer y = 124
  54. boolean enabled = false
  55. end type
  56. type cb_exit from w_publ_base`cb_exit within w_inputbox_decimal
  57. integer x = 1477
  58. integer y = 156
  59. integer width = 325
  60. string text = "取消"
  61. end type
  62. type cb_que from uo_imflatbutton within w_inputbox_decimal
  63. integer x = 1115
  64. integer y = 156
  65. integer width = 325
  66. integer height = 96
  67. integer taborder = 30
  68. boolean default = true
  69. string normalpicname = "ok.bmp"
  70. end type
  71. event clicked;call super::clicked;S_OBJSTRU.value = dec(em_1.Text)
  72. S_OBJSTRU.has_rslt = 1
  73. Close(parent)
  74. end event
  75. type em_1 from editmask within w_inputbox_decimal
  76. integer x = 87
  77. integer y = 52
  78. integer width = 1714
  79. integer height = 84
  80. integer taborder = 10
  81. boolean bringtotop = true
  82. integer textsize = -9
  83. integer weight = 400
  84. fontcharset fontcharset = gb2312charset!
  85. fontpitch fontpitch = variable!
  86. string facename = "宋体"
  87. long textcolor = 33554432
  88. borderstyle borderstyle = stylelowered!
  89. maskdatatype maskdatatype = decimalmask!
  90. string mask = "#,###,###,##0.########"
  91. end type