this.of_setresize(true)
inv_resize.of_Register(dw_2,inv_resize.SCALErightBOTTOM)
//SCALEbottom SCALErightBOTTOM
//inv_resize.of_Register(dw_2,inv_resize.FIXEDRIGHTbottom)
在需要使用的窗口中定義一個實例
n_cst_resize inv_resize;
在open事件中注冊窗口上的控件
inv_resize = create nvo_resize
inv_resize.of_SetOrigSize (this.WorkSpaceWidth(),
this.WorkSpaceHeight())
inv_resize.of_Register(dw_list, 0, 0, 0, 100)
inv_resize.of_Register(st_hsplitbar, 0, 0, 0, 0)
inv_resize.of_Register(dw_main, 0, 0, 100,0)
inv_resize.of_Register(st_vsplitbar, 0, 0, 0, 0)
inv_resize.of_Register(dw_preview, 0, 0, 100, 100)
//參數:
1.控件對象
2.移動時的X坐標位移百分數
3.移動時的Y坐標位移百分數
4.移動時的WIDTH坐標位移百分數
5.移動時的HEIGHT坐標位移百分數
在resize事件中寫入
inv_resize.Event wfc_Resize (sizetype, This.WorkSpaceWidth(),
This.WorkSpaceHeight())
在需要使用的窗口中定義一個實例
n_cst_resize inv_resize;
在open事件中注冊窗口上的控件
inv_resize = create nvo_resize
inv_resize.of_SetOrigSize (this.WorkSpaceWidth(),
this.WorkSpaceHeight())
inv_resize.of_Register(dw_list, 0, 0, 0, 100)
inv_resize.of_Register(st_hsplitbar, 0, 0, 0, 0)
inv_resize.of_Register(dw_main, 0, 0, 100,0)
inv_resize.of_Register(st_vsplitbar, 0, 0, 0, 0)
inv_resize.of_Register(dw_preview, 0, 0, 100, 100)
//參數:
1.控件對象
2.移動時的X坐標位移百分數
3.移動時的Y坐標位移百分數
4.移動時的WIDTH坐標位移百分數
5.移動時的HEIGHT坐標位移百分數
在resize事件中寫入
inv_resize.Event pfc_Resize (sizetype, This.WorkSpaceWidth(),
This.WorkSpaceHeight())
// Register the controls with the SplitBar
st_v1.of_Register(dw_1, st_v1.left)
st_v1.of_Register(lv_1, st_v1.right)
posted on 2010-07-12 17:23
Ke 閱讀(1173)
評論(0) 編輯 收藏 所屬分類:
powerBuilder