TechnoTone Posted March 3, 2004 Posted March 3, 2004 How can I get my splitter to do it's thing while it's being moved instead of after it has been dropped? Quote TT (*_*) There are 10 types of people in this world; those that understand binary and those that don't.
wildfire1982 Posted March 3, 2004 Posted March 3, 2004 What splitter are you referring to? Quote Chris
TechnoTone Posted March 3, 2004 Author Posted March 3, 2004 The control in .NET toolbox. What other types are there? Quote TT (*_*) There are 10 types of people in this world; those that understand binary and those that don't.
sjn78 Posted March 3, 2004 Posted March 3, 2004 I tried this once without too much success but it should be able to be done..didn't have the time when I was trying it. Setup a global x and splitter pos variable and on the Splitter MouseDown I think, grab your mouse x and splitter position. Then on the mousemove event I think or it may be splitter moved, make sure the mouse button is depressed and get the mouse x position again. Then calc the change of movement (xNewPos - x) and then add that difference to the orginal position of the splitter. Then redraw your form. I don't think the method above will work properly at first, but you should be able to get something to work along those lines. Quote
TechnoTone Posted March 4, 2004 Author Posted March 4, 2004 Nope - already tried that. When you are moving the splitter with the mouse it is being moved up and down (or left and right) across the form. Setting the position of it just moves the same visible bar. The problem is, it won't cause the other controls to resize until you release it. I've even tried the PerfomLayout method but that seems to have no effect. There must be a way of doing this. I thought it would be a simple property but no - that would be too easy. Quote TT (*_*) There are 10 types of people in this world; those that understand binary and those that don't.
TechnoTone Posted March 4, 2004 Author Posted March 4, 2004 Anyone? Quote TT (*_*) There are 10 types of people in this world; those that understand binary and those that don't.
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.