Applies to
DataWindow controls
Description
If the HSplit Scroll property is enabled, the user can split the DataWindow control into two panes with separate scrollbars. The user moves the split bar to divide the DataWindow control into two panes.
If this property is not enabled, the user cannot split the DataWindow control.
Usage
In a painter
?To allow splitting the control into two panes:
?Check the HSplit Scrolling checkbox on the General tab page of the control's Properties view.
In scripts
The HSplitScroll property takes a boolean value. The following example allows splitting of a DataWindow control dw_1.
dw_1.HSplitScroll = TRUE
string ls_colx
ls_colx = dw_1.Object.emp_fname.x //emp_fname是要固定不动列的后面那个列名
dw_1.Object.datawindow.horizontalscrollsplit = ls_colx
dw_1.HSplitScroll = True
dw_1.Object.DataWindow.HorizontalScrollSplit = dw_1.object.amt_ctr_no.Width
dw_1.Object.DataWindow.HorizontalScrollPosition2 =dw_1.object.amt_ctr_no.Width
string colx,colwidth
this.HSplitScroll = True
colx = this.describe ( "veh_code.x " )
colwidth = this.describe ( "veh_code.width " )
colx = string (integer(colx) + integer(colwidth)+1)
this.Modify ( "datawindow.horizontalscrollsplit= "+colx)