int swo() { int x,y,w,w1; num x1,y1; w=gui_get_w("DateTimePicker_Voucher_Date")+312 x=gui_get_x("DateTimePicker_Voucher_Date")+w //单据日期X坐标 y=gui_get_y("DateTimePicker_Voucher_Date") +5//单据日期Y坐标 gui_disable("DateTimePicker_Voucher_Date") gui_create_button("ScrollBox_Base","swo",x,y,32,25,"更改","call_csp.voucher.BL.so"); return 1; }; int so() { gui_enable("DateTimePicker_Voucher_Date") return 1; } int create_voucher() { swo() return 1; } int func_show() { swo(); return 1; }; int func_win_resize() { int x,w; x=gui_get_x("DateTimePicker_Voucher_Date") w=gui_get_w("DateTimePicker_Voucher_Date")+310 x=x+w gui_set_x("swo",x) return 1; } 感觉还是不够完美,只是能够用罢了。 |