w_rp_name.srw 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128
  1. $PBExportHeader$w_rp_name.srw
  2. forward
  3. global type w_rp_name from window
  4. end type
  5. type cb_2 from commandbutton within w_rp_name
  6. end type
  7. type cb_1 from commandbutton within w_rp_name
  8. end type
  9. type sle_1 from singlelineedit within w_rp_name
  10. end type
  11. type st_1 from statictext within w_rp_name
  12. end type
  13. end forward
  14. global type w_rp_name from window
  15. integer width = 1339
  16. integer height = 384
  17. boolean titlebar = true
  18. string title = "选择名称"
  19. boolean controlmenu = true
  20. windowtype windowtype = response!
  21. long backcolor = 67108864
  22. string icon = "AppIcon!"
  23. boolean center = true
  24. cb_2 cb_2
  25. cb_1 cb_1
  26. sle_1 sle_1
  27. st_1 st_1
  28. end type
  29. global w_rp_name w_rp_name
  30. type variables
  31. string ls_rpname
  32. end variables
  33. on w_rp_name.create
  34. this.cb_2=create cb_2
  35. this.cb_1=create cb_1
  36. this.sle_1=create sle_1
  37. this.st_1=create st_1
  38. this.Control[]={this.cb_2,&
  39. this.cb_1,&
  40. this.sle_1,&
  41. this.st_1}
  42. end on
  43. on w_rp_name.destroy
  44. destroy(this.cb_2)
  45. destroy(this.cb_1)
  46. destroy(this.sle_1)
  47. destroy(this.st_1)
  48. end on
  49. event open;
  50. ls_rpname=message.stringparm
  51. sle_1.text=ls_rpname
  52. end event
  53. event close;CLOSEWITHRETURN(THIS,ls_rpname)
  54. end event
  55. type cb_2 from commandbutton within w_rp_name
  56. integer x = 850
  57. integer y = 200
  58. integer width = 402
  59. integer height = 92
  60. integer taborder = 30
  61. integer textsize = -9
  62. integer weight = 400
  63. fontcharset fontcharset = gb2312charset!
  64. fontpitch fontpitch = variable!
  65. string facename = "宋体"
  66. string text = "取消"
  67. end type
  68. event clicked;ls_rpname='cancel'
  69. close(parent)
  70. end event
  71. type cb_1 from commandbutton within w_rp_name
  72. integer x = 425
  73. integer y = 200
  74. integer width = 402
  75. integer height = 92
  76. integer taborder = 20
  77. integer textsize = -9
  78. integer weight = 400
  79. fontcharset fontcharset = gb2312charset!
  80. fontpitch fontpitch = variable!
  81. string facename = "宋体"
  82. string text = "确定"
  83. end type
  84. event clicked;ls_rpname=trim(sle_1.text)
  85. close(parent)
  86. end event
  87. type sle_1 from singlelineedit within w_rp_name
  88. integer x = 123
  89. integer y = 96
  90. integer width = 1120
  91. integer height = 84
  92. integer taborder = 10
  93. integer textsize = -9
  94. integer weight = 400
  95. fontcharset fontcharset = gb2312charset!
  96. fontpitch fontpitch = variable!
  97. string facename = "宋体"
  98. long textcolor = 33554432
  99. borderstyle borderstyle = stylelowered!
  100. end type
  101. type st_1 from statictext within w_rp_name
  102. integer x = 27
  103. integer y = 24
  104. integer width = 457
  105. integer height = 56
  106. integer textsize = -9
  107. integer weight = 400
  108. fontcharset fontcharset = gb2312charset!
  109. fontpitch fontpitch = variable!
  110. string facename = "宋体"
  111. long textcolor = 33554432
  112. long backcolor = 67108864
  113. string text = "输入表的名称:"
  114. boolean focusrectangle = false
  115. end type