Questions tagged [trackbar]

a graphical widget in Winforms, also called a slider in other environments.

A track bar is a graphical widget in in which the user sets a value by moving a cursor on a line. Other environments such as jQuery call this control .

Resources

205 questions
3
votes
2 answers

How can I bind a winforms Opacity to a TrackBar (slider)

I've got a winform with a BindingSource that has an int property named Opacity in its DataSource. I also have a TrackBar on the winform that I want to use to control the Opacity of the winform. I've bound the Value property on the TrackBar to the…
Allen Rice
  • 19,068
  • 14
  • 83
  • 115
3
votes
3 answers

How to set custom ticks on a TTrackBar in Delphi 2010?

I tried to set the tick style to tsManual, the min and max position to 1 and 100 respectively and add ticks at 9, 19, 79 and 89 and no ticks are shown at all except the detault first and last which the control automatically shows. I tried other…
Eric Fortier
  • 760
  • 1
  • 7
  • 16
3
votes
1 answer

Specific values/intervals on a Trackbar

What I'm trying to do here is put down a trackbar like the one on Windows XP to change resolution: (http://puu.sh/7Li5h.png) I want to set specific intervals/increment values like in the picture above. Currently the lines underneath the actual bar…
Droes
  • 65
  • 1
  • 8
3
votes
1 answer

System.Windows.Forms.TrackBar memory use with a large maximum value

I have a control that contains a System.Windows.Forms.TrackBar. I was setting its maximum value to ~200,000,000. When I did this, the control required 800MB of memory. Reducing the maximum value to 2,000,000 used a more reasonable amount of…
GreenRibbon
  • 299
  • 2
  • 16
3
votes
4 answers

Read Trackbar control value in C++/WinAPI program

I am writing a simple GUI application in Visual C++/Windows API. I have a Trackbar control on the dialogbox defined in resources as: CONTROL "",IDC_SLIDER1045,"msctls_trackbar32",0x50010000,23,52,141,16,0x00000000 I want to show the trackbar value…
David
  • 417
  • 1
  • 9
  • 18
2
votes
2 answers

Customizing the TrackBar control in .NET

I am trying to develop application that would let me mark A-B points on the timeline. How do I draw lines on the trackbar to mark a specific point/value? Also, how do I hide the ticks in the trackbar control when TickStyle is set to Both?
GPX
  • 3,506
  • 10
  • 52
  • 69
2
votes
2 answers

Creating multiple trackbars in Opencv Python

Trying to create 3 trackbars for 1 window. Im taking an image. Coverting it to gray. Using non local means aka blurring it. Passing it thru a threshold called bino. Doing an edge detection on it. Using the edge detection to find contours. Sorting…
Mogarbobac
  • 97
  • 2
  • 10
2
votes
1 answer

Slider/Trackbar alternative

Anyone know of a custom control that looks like this Volume control http://img806.imageshack.us/img806/9366/volumecontrol.png and works similarly to slider or trackbar? I tried googling but all I found was this, w/c is similar to the built-in…
sjlewis
  • 780
  • 2
  • 13
  • 25
2
votes
2 answers

Can not change audio position with trackbar in C#

I am working in a small audio player. You know, with the simplest stuff and functions. I am having an issue when changing the trackbar's value (scrolling), this trackbar displays the current audio position. When I drag the trackbar's slider, audio…
ChrisCreateBoss
  • 323
  • 7
  • 21
2
votes
2 answers

How to create Trackbars which do not call any function? OpenCV 3.1 with Python 2.7

I'm trying to threshold an image. I have used the cv2.createTrackbar function as- cv2.createTrackbar('High H','image',0,179, None). Now the last part is what I'm having trouble with. Further in my code, I use highH = cv2.getTrackbarPos('High…
user6026311
2
votes
1 answer

c# Disable ScrollWheel on Trackbar

How can I disable the valuechange with mouse wheel on trackbars? When scrolling down on the interface users can change trackbar values by mistake I'm using Windows forms c#. I couldn't find no property to stop this event..
miguelmpn
  • 1,859
  • 1
  • 19
  • 25
2
votes
1 answer

How to redraw a line using values from a trackBar in realtime?

I was just wondering if you could help me with this problem. In my program I must use the paint event to draw a line which acts as a "turret". I must use a trackbar to choose the angle at which I will "fire" this turret. My problem is I'm not sure…
2
votes
2 answers

Trackbar to choose color. Using C++, opencv

In my project, user should select a color for some process. There are some applications on the internet. They create three trackbars for RGB values of color but I don't want to do it like that. I want to create a trackbar below or something…
ffttyy
  • 853
  • 2
  • 19
  • 49
2
votes
0 answers

Make disabled sliders in Winforms appear more 'subtle'

When you set Enabled = false to a TrackBar, the result looks to the uninitiated user that the trackbar is still enabled (we superusers can tell, but that's only because we know what to look for). How can I make the trackbar more 'greyed out' to…
Dan W
  • 3,520
  • 7
  • 42
  • 69
2
votes
1 answer

How to draw using trackbar?

well how do you draw in C# using variables? ive managed to draw some shapes but only when i hardcode in the lengths. i need to draw shapes using a trackbar to get the lengths. public abstract class Shape { //private String shape; private…
user3006443
  • 33
  • 1
  • 4
1 2
3
13 14