Jump to content
Xtreme .Net Talk

Recommended Posts

Posted
How can I get my splitter to do it's thing while it's being moved instead of after it has been dropped?

TT

(*_*)

 

There are 10 types of people in this world;

those that understand binary and those that don't.

Posted

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.

Posted

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.

TT

(*_*)

 

There are 10 types of people in this world;

those that understand binary and those that don't.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...