w_col_choose.srw 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121
  1. $PBExportHeader$w_col_choose.srw
  2. forward
  3. global type w_col_choose from window
  4. end type
  5. type cb_1 from commandbutton within w_col_choose
  6. end type
  7. type rb_3 from radiobutton within w_col_choose
  8. end type
  9. type rb_2 from radiobutton within w_col_choose
  10. end type
  11. type rb_1 from radiobutton within w_col_choose
  12. end type
  13. end forward
  14. global type w_col_choose from window
  15. integer width = 686
  16. integer height = 424
  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_1 cb_1
  25. rb_3 rb_3
  26. rb_2 rb_2
  27. rb_1 rb_1
  28. end type
  29. global w_col_choose w_col_choose
  30. on w_col_choose.create
  31. this.cb_1=create cb_1
  32. this.rb_3=create rb_3
  33. this.rb_2=create rb_2
  34. this.rb_1=create rb_1
  35. this.Control[]={this.cb_1,&
  36. this.rb_3,&
  37. this.rb_2,&
  38. this.rb_1}
  39. end on
  40. on w_col_choose.destroy
  41. destroy(this.cb_1)
  42. destroy(this.rb_3)
  43. destroy(this.rb_2)
  44. destroy(this.rb_1)
  45. end on
  46. type cb_1 from commandbutton within w_col_choose
  47. integer x = 261
  48. integer y = 20
  49. integer width = 402
  50. integer height = 116
  51. integer taborder = 10
  52. integer textsize = -9
  53. integer weight = 400
  54. fontcharset fontcharset = gb2312charset!
  55. fontpitch fontpitch = variable!
  56. string facename = "宋体"
  57. string text = "确定"
  58. end type
  59. event clicked;String ls_new_string
  60. IF rb_1.Checked = True THEN
  61. ls_new_string = "left"
  62. ELSEIF rb_2.Checked = True THEN
  63. ls_new_string = "right"
  64. ELSEIF rb_3.Checked = True THEN
  65. ls_new_string = "whole"
  66. END IF
  67. CloseWithReturn(Parent,ls_new_string )
  68. end event
  69. type rb_3 from radiobutton within w_col_choose
  70. integer x = 32
  71. integer y = 208
  72. integer width = 238
  73. integer height = 84
  74. integer textsize = -9
  75. integer weight = 400
  76. fontcharset fontcharset = gb2312charset!
  77. fontpitch fontpitch = variable!
  78. string facename = "宋体"
  79. long textcolor = 33554432
  80. long backcolor = 67108864
  81. string text = "全列"
  82. boolean checked = true
  83. end type
  84. type rb_2 from radiobutton within w_col_choose
  85. integer x = 32
  86. integer y = 108
  87. integer width = 238
  88. integer height = 84
  89. integer textsize = -9
  90. integer weight = 400
  91. fontcharset fontcharset = gb2312charset!
  92. fontpitch fontpitch = variable!
  93. string facename = "宋体"
  94. long textcolor = 33554432
  95. long backcolor = 67108864
  96. string text = "右列"
  97. end type
  98. type rb_1 from radiobutton within w_col_choose
  99. integer x = 32
  100. integer y = 20
  101. integer width = 238
  102. integer height = 84
  103. integer textsize = -9
  104. integer weight = 400
  105. fontcharset fontcharset = gb2312charset!
  106. fontpitch fontpitch = variable!
  107. string facename = "宋体"
  108. long textcolor = 33554432
  109. long backcolor = 67108864
  110. string text = "左列"
  111. end type