Hi, I was wondering how I could specify my own images (from my project resource file) for the buttons in a vertical track bar. Is this possible? if so how?
I probably need to do this at run-time due as the user is able to change themes which I suspect will cause things to go wrong.
Regards
Toby
I am struggling with an feature that I'd like to implement.
Basically, I'd like a visual cue that indicates the current value of the range as end user changes the value of the range.
My TrackBar has 1440 minutes and I'd like to display what minute they're on without it being guess work.
I attached a screenshot of my implementation of the track bar.
Ideally, I'd like to display a label underneath the TrackbarThumbElement that would update as the value updates and then disappear. Any ideas how I might be able to update the UI with the current value of the range as the end user is manipulating the control?
In simple mode, binding works correctly.
..............
//Define property
private float start;
public float Start
{
get => start;
set
{
if (value == Start) return;
start = value;
OnPropertyChanget("Start");
}
}
..............................................
//Binding
radTrackBar1.DataBindings.Add("Value", Data, "Start", true, DataSourceUpdateMode.OnPropertyChanged);
radTrackBar2.DataBindings.Add("Value", Data, "Start", true, DataSourceUpdateMode.OnPropertyChanged);
.........................................................
How can I use binding in range mod?
radTrackBar1.Ranges[0].Start = 1;
radTrackBar1.Ranges[0].End = 50;
radTrackBar2.Ranges[0].Start = 1;
radTrackBar2.Ranges[0].End = 50;
//Define property ??????????????????????
//Binding ??????????????????????????
Thanks!
I am currently facing two issues using the RadTrackBar control.
First issue:
When the width of the control is smaller then 100px, the text and graphics bar are cut off (see image).
For this reason the control is not usable with a smaller size then 100px
Second issue:
When setting label style and tick style to none the control height is automatically set to 16px.
When switching to Material theme, the button shown on mousedown is larger then these 16px and the image is cut-off.
For issue 2 there is a workaround, setting minimum size of the control will "fix" this but is there a solution for issue 1?
Best regards
Patrick Vossen
Is there away to use the tracking component to track between 2 values. What I'm trying to mimic is a video time status bar. I want the user to be able to set the IN and OUT between the start time and the end time. Then when they play the video it will have a current status bar between the IN and OUT that shows the current time of the clip that is playing.
I attached an image of what Adobe premiere looks like. I know it can't look like this but would love to be able to do something like it that would have a tracker that has a min of 0 and max of lets say 60 (secs) then a user set the IN at 4 (sec) and OUT at 20 (sec) then when they play the thumb will move between those 2 numbers. Even if it's just a visual background range color that is set between those 2 numbers it would work. I just need to make it so that it's visual that the user selected those 2 ranges.
Hope this makes sense.
Hi. I'm looking to use the RadTrackBar as a selector for hours. For example, far left would be 0700 (7am) and far right would be 1400 (2pm).
I cannot figure out how to disable/turn off/colorize the TrackBarIndicatorElement behind the slider. I want just the bar with the slider. As the user moves it, there should not be any color displayed in the bar. Is that possible?
Hello all together!
I am currently experiencing the below issues with RadTrackBar.
TrackBar.Minimum is set to 50.
TrackBar.Maximum is set to 150.
TrackBar.Value is set to 100.
I guess, everybody should now expect the track bar to move the knob in the exact middle of the control. But it simply doesn't. When looking at the track bar's minimum, maximum and value properties during FormLoad event, I discovered that the minimum changed to 19.
What I did next was searching for the number in the designer class of the respective form, assuming that Visual Studio somehow messed it up as it is always doing from time to time. But nothing found here. Setting the minimum value again in FormLoad fixes the problem, but this should not be the default approach when working with a RadTrackBar. So this must be a bug, right?
In attempting to make use of this control there are a number of series issues with it.
Firstly, when attempting to add ranges to the range collection via the properties in visual studio 2017, this doesn't work.
What happens is the ranges you add are created in the Designer.cs of the form you are working on, but are not associated with the TrackBar you created them from. (see attachment 1.) If you click the ranges collection again after adding one of the ranges, it naturally shows up empty. So currently the only way to add ranges is to do so programmatically.
Secondly, performance issues, setting the maximum of of the trackbar to 1000+ and it becomes unreasonably slow, and unresponsive.
Thirdly, Assigning a value that exceeds ranges of the minimum or maximum, results in a popup message stating "The Value should be between minimum and maximum" no exception is thrown. (this looks like it was supposed to be a design time response)
Setting a range to the start and end points to the minimum and maximum values of the trackbar, often results in one of the thumbs not being visible on the screen after loading. (see second attachment)
I've seen elsewhere on the forum that the suggested performance fix was to apply basically scaling to the trackbar to reduce the number of elements that it needs to render, but when using the control to say track the position of media in seconds, scaling doesn't really work.