w_super_id.srw 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133
  1. $PBExportHeader$w_super_id.srw
  2. forward
  3. global type w_super_id from w_publ_base
  4. end type
  5. type sle_pass from singlelineedit within w_super_id
  6. end type
  7. type cb_1 from uo_imflatbutton within w_super_id
  8. end type
  9. type st_1 from statictext within w_super_id
  10. end type
  11. end forward
  12. global type w_super_id from w_publ_base
  13. integer width = 1623
  14. integer height = 600
  15. string title = "请输入用户口令"
  16. boolean minbox = false
  17. windowtype windowtype = response!
  18. sle_pass sle_pass
  19. cb_1 cb_1
  20. st_1 st_1
  21. end type
  22. global w_super_id w_super_id
  23. type variables
  24. string ls_syspass
  25. end variables
  26. on w_super_id.create
  27. int iCurrent
  28. call super::create
  29. this.sle_pass=create sle_pass
  30. this.cb_1=create cb_1
  31. this.st_1=create st_1
  32. iCurrent=UpperBound(this.Control)
  33. this.Control[iCurrent+1]=this.sle_pass
  34. this.Control[iCurrent+2]=this.cb_1
  35. this.Control[iCurrent+3]=this.st_1
  36. end on
  37. on w_super_id.destroy
  38. call super::destroy
  39. destroy(this.sle_pass)
  40. destroy(this.cb_1)
  41. destroy(this.st_1)
  42. end on
  43. event close;call super::close;CloseWithReturn(this,ls_syspass)
  44. end event
  45. type cb_func from w_publ_base`cb_func within w_super_id
  46. boolean visible = false
  47. integer x = 41
  48. integer y = 276
  49. boolean enabled = false
  50. end type
  51. event cb_func::clicked;ls_syspass = trim(sle_pass.text)
  52. close(parent)
  53. end event
  54. type cb_exit from w_publ_base`cb_exit within w_super_id
  55. integer x = 974
  56. integer y = 272
  57. integer taborder = 40
  58. string text = "取消"
  59. end type
  60. event cb_exit::clicked;call super::clicked;halt
  61. end event
  62. type sle_pass from singlelineedit within w_super_id
  63. event key pbm_keydown
  64. integer x = 576
  65. integer y = 104
  66. integer width = 622
  67. integer height = 100
  68. integer taborder = 10
  69. boolean bringtotop = true
  70. integer textsize = -9
  71. integer weight = 400
  72. fontcharset fontcharset = gb2312charset!
  73. fontpitch fontpitch = variable!
  74. string facename = "宋体"
  75. long textcolor = 33554432
  76. boolean password = true
  77. integer limit = 15
  78. borderstyle borderstyle = stylelowered!
  79. end type
  80. event key;If key = KeyEnter! Or Key = KeyDownArrow! Then //
  81. cb_1.POSTEVENT(CLICKED!)
  82. Return 0
  83. End If
  84. end event
  85. type cb_1 from uo_imflatbutton within w_super_id
  86. integer x = 462
  87. integer y = 272
  88. integer width = 311
  89. integer height = 96
  90. integer taborder = 30
  91. boolean bringtotop = true
  92. boolean default = true
  93. end type
  94. event clicked;call super::clicked;ls_syspass=trim(sle_pass.text)
  95. if ls_syspass='' then
  96. Messagebox('错误','口令不能为空!', StopSign!, OK! )
  97. sle_pass.setfocus()
  98. return
  99. end if
  100. close(parent)
  101. end event
  102. type st_1 from statictext within w_super_id
  103. integer x = 279
  104. integer y = 128
  105. integer width = 288
  106. integer height = 48
  107. boolean bringtotop = true
  108. integer textsize = -9
  109. integer weight = 400
  110. fontcharset fontcharset = gb2312charset!
  111. fontpitch fontpitch = variable!
  112. string facename = "宋体"
  113. long textcolor = 33554432
  114. long backcolor = 67108864
  115. string text = "用户口令:"
  116. alignment alignment = right!
  117. boolean focusrectangle = false
  118. end type