This is a migrated thread and some comments may be shown as answers.

Problem with SplitterMoved Event

1 Answer 45 Views
Dock
This is a migrated thread and some comments may be shown as answers.
ManniAT
Top achievements
Rank 2
ManniAT asked on 17 Jan 2008, 02:37 PM
Hi,

to solve the problem described here
http://www.telerik.com/community/forums/thread/b311D-bamtct.aspx

I tried to handle the SplitterMoved event.
BUT - the SplitterEventArgs give the wrong values.
To reproduce it use the following steps:

Create an app with a dockmanager holding two panels.
For easy investigation move the splitter to some high XPositon.
Lets say - about the middle of your form.
Now add a handler to the SplitterMoved Event in the primary site.
Add a dummy code line there - for an example
int nX=e.SplitX;
Add a breakpoint at that line.
Now start debugging - and drag the splitter very far to the left.
Release the mouse button -- BP hit.
Now check the value of e.SplitX.
EXPECTED: some small value
GOT: the value where the splitter was before dragging!!!

To proof this is not a "SplitterMoved normal behaviour" do the following.
On the rigth pane of your docking add System.Windows.Forms.SplitContainer.
Place the splitter also into the middle of the container.
Add a handler for SplitterMoved.
Add the same dummy code line as for your other handler.
Place a breakpoint at this line of code.
Run your application.
FIRST: you will see an initial break in the SplitContainer SplitterMoved handler
>>this event is not fired for the PrimarySite !!
Continue debugging.
Move the splitter of the SplitContainer far to the left.
Release the mouse - BP hit.
Check the value of e.SplitX
It is a small number - as expected.

Regards

Manfred

1 Answer, 1 is accepted

Sort by
0
Julian Benkov
Telerik team
answered on 18 Jan 2008, 01:17 PM
Hi Manfred,

Thank you for contacting us and reporting these issues.

We managed to reproduce them. They will be addressed in the Q1 2008 release.

Your Telerik points have been updated. If you have any additional questions, please do not hesitate to write.

All the best,
Julian Benkov
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
Tags
Dock
Asked by
ManniAT
Top achievements
Rank 2
Answers by
Julian Benkov
Telerik team
Share this question
or