w_main_child_in.srw 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596
  1. $PBExportHeader$w_main_child_in.srw
  2. forward
  3. global type w_main_child_in from w_mface_base
  4. end type
  5. type p_rb from picture within w_main_child_in
  6. end type
  7. end forward
  8. global type w_main_child_in from w_mface_base
  9. integer x = 1001
  10. integer y = 80
  11. integer width = 2601
  12. integer height = 1352
  13. boolean titlebar = false
  14. string title = ""
  15. boolean controlmenu = false
  16. boolean minbox = false
  17. boolean maxbox = false
  18. boolean resizable = false
  19. boolean border = false
  20. windowtype windowtype = child!
  21. p_rb p_rb
  22. end type
  23. global w_main_child_in w_main_child_in
  24. on w_main_child_in.create
  25. int iCurrent
  26. call super::create
  27. this.p_rb=create p_rb
  28. iCurrent=UpperBound(this.Control)
  29. this.Control[iCurrent+1]=this.p_rb
  30. end on
  31. on w_main_child_in.destroy
  32. call super::destroy
  33. destroy(this.p_rb)
  34. end on
  35. event open;
  36. string ls_picturename
  37. CHOOSE CASE sys_version
  38. CASE 802001
  39. if sys_ifoem = 1 then
  40. ls_picturename = ProfileString (sys_inioem, "oem", "syb_picture",'syb_picture')
  41. p_rb.PictureName = "graphics\" + ls_picturename //'mf_in_rlpic_biz.bmp'
  42. ELSE
  43. p_rb.PictureName = "graphics\商业版.png" //'mf_in_rlpic_biz.bmp'
  44. END IF
  45. CASE 802002
  46. if sys_ifoem = 1 then
  47. ls_picturename = ProfileString (sys_inioem, "oem", "gyb_picture",'gyb_picture')
  48. p_rb.PictureName = "graphics\" + ls_picturename //'mf_in_rlpic_biz.bmp'
  49. ELSE
  50. p_rb.PictureName = "graphics\工业版.png" //'mf_in_rlpic.bmp'
  51. END IF
  52. CASE 802003
  53. if sys_ifoem = 1 then
  54. ls_picturename = ProfileString (sys_inioem, "oem", "gybj_picture",'gybj_picture')
  55. p_rb.PictureName = "graphics\" + ls_picturename //'mf_in_rlpic_biz.bmp'
  56. ELSE
  57. p_rb.PictureName = "graphics\工业版+.png" //'mf_in_rlpic+.bmp'
  58. END IF
  59. END CHOOSE
  60. //IF sys_version = 802002 THEN
  61. // p_rb.PictureName = 'mf_in_rlpic.bmp'
  62. //ELSE
  63. // p_rb.PictureName = 'mf_in_rlpic+.bmp'
  64. //END IF
  65. SetNull(io_cont)
  66. Timer(sys_option_switch_chktime,This)
  67. end event
  68. event mousemove;call super::mousemove;//window ls_w
  69. //ls_w=this.parentwindow()
  70. //ls_w.triggerevent("mousemove")
  71. end event
  72. event closequery;return 1
  73. end event
  74. event key;f_x_genapp_frame()
  75. end event
  76. type p_rb from picture within w_main_child_in
  77. event mousemove pbm_mousemove
  78. integer width = 2615
  79. integer height = 1356
  80. boolean originalsize = true
  81. string picturename = "graphics\工业版.png"
  82. boolean focusrectangle = false
  83. end type
  84. event mousemove;parent.triggerevent("mousemove")
  85. end event