Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Splitbar & moving objects in data window

Status
Not open for further replies.

mastercontrol

Programmer
Apr 19, 2011
8
CH
Hello,

I made splitbar in the to separate datawindow on two parts. Splitbar working, so if I move it it goes to the left or to the right. Code of that is :
st_1.of_register( tvi_1, st_1.LEFT )
st_1.of_register( dw_ss, st_1.RIGHT )

but I need to move not only these two main objects, but also need move other objects (commandbuttons, StaticText fields, etc) according to my movings of splitbar.
How is better to do that? Basically I need synchronize splitbar with other objects according to move of splitbar.
 
So, nobody could help me in this question and I spent some time and find solution. Probably, somebody has/ will have similar problems.
In my case splitbar is defined as st_1 object.
In st_1 make new event pbm_move, add code in the pbm_move event (in my case):

If st_1.width > 0 Then
st_info.x = st_1.x + 200 + st_1.width
st_total.x = st_1.x + 800 + st_1.width
End if

where 200 and 800 is mine defined width position, but you can make whenever you want.

Further, in DataWindow Open event add code (in my case):

st_1.of_register( tv_ebis, st_1.LEFT )
st_1.of_register( ddlb_dars, st_1.LEFT )
st_1.of_register( dw_split, st_1.RIGHT )

This is it. Splitbar should work.

Cheers



 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top