I'm using VB.Net 2013 with v2016.1 of the UltraWinGrid with 2 cells that have the UltraTrackBare as the editor. We have implemented these track bars to allow the user to tell us the start position and length of a line segment and we control the Min and Max values to prevent overlapping segments along the line.
The problem I am seeing is that when the length trackbar cell loses focus the Thumb is moving from the location that indicates the current length of the line to what looks like the Min value for the Trackbar. But when the cell receives focus again the Thumb returns to the correct location. I'm sure that I probably have some code that is causing this behavior but I've not found anything yet.
Has anyone else seen this or similar behavior on the TractBar?
Thanks,
Jamie
Hi Jamie,
In order to observe this behavior we need a sample or more details about your application setup. Please send us a sample with UltraTrackBar thumb moves when cell loses focus issue reproduced in it along with the steps to reproduce it. If you cannot send us a sample then please elaborate on the details of the TrackBars setup. We will further look into this issue as soon as we receive the requested information.
Sincerely,Sahaja KokkalagaddaAssociate Software Developer
Thanks So Much,
I've attached a zip file containing the solution and project.
Some additional information that I'm sure will help that didn't seem relevant when I posted this issue is that I can not debug this code in the VB.NET environment as I get an ArgumentOutOfRange exception that does not seem to be a problem when running the compiled application.
So I'm confident that it is probably something dumb that I'm just not seeing.
Thanks Again,
Jamie Irwin
Please modify the mAdjustMinMaxForStartOfSegmentChange Sub so that oTrackBarRender.MaxValue is set with oTrackBarEdit.MaxValue not with oTrackBarEdit.MinValue. (Line 1176 in frmDynamicSegmentationWiz.VB). By modifying your code as suggested you can resolve the ArgumentOutOfRange exception.
Thanks so much! That was exactly the fix I need. I guess I'd been look at it so long I was blind to the "stupid" mistake I had made.
Thanks Again!