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
2
votes
1 answer

c# backgoundworker and trackbar

I have a problem with backgroundworkers. I have a trackbar, and when the user changes its value, then a new backgroundworker starts. There is a list of all backgroundworkers, and when a new one is started, all workers in the list call…
2
votes
2 answers

How to pass user data using OpenCV trackbar

Currently I have a number of sliders that are used to change image values. I am using the OpenCV track bar for the slider which has a callback to a different function for each of my sliders. I would like to have my sliders callback point to a single…
Tom smith
  • 670
  • 2
  • 15
  • 31
2
votes
1 answer

Is cvCreateTrackbar available in emguCV?

I'm in the process of converting my application that was using an old OpenCV wrapper to EmguCV (updated and very good wrapper). So far so good, except that in one of my class, I was using 3 trackbars to adjust the threshold in some filters. The…
Jean-François Côté
  • 4,200
  • 11
  • 52
  • 88
1
vote
3 answers

can't get value of trackbar on menu strip

I've added a trackbar to menu strip manually because vs 2008 doesn't allow me to do. However, i can't get the value of trackbar. Form1.cs: [ToolStripItemDesignerAvailability(ToolStripItemDesignerAvailability.MenuStrip | …
dum
  • 228
  • 2
  • 4
  • 17
1
vote
1 answer

Problem with controlling playback speed in C# using the NAudio library

I am trying to use the following code to control the playback speed of an audio object with NAudio library but am running into some problem. How can I alter the play back speed of the media playing object without running into exceptions and bugs,…
1
vote
1 answer

How do you make a Winform track bar (slider) behave sensibly on a touch-screen monitor

What's the easiest way to modify a Winforms track bar so that when a user clicks on it the track bar jumps to the location of the mouse? By default the track bar moves to half way between it's current location and where the mouse was…
Matt Warren
  • 10,279
  • 7
  • 48
  • 63
1
vote
1 answer

Trackbar not sending TRBN_THUMBPOSCHANGING notification

I have a programmatically created trackbar control (TRACKBAR_CLASS). I would like to be notified of scrolling changes using TRBN_THUMBPOSCHANGING. However, I am currently not receiving that notification. I have monitored all the WM_NOTIFY messages…
rpatters1
  • 382
  • 1
  • 11
1
vote
1 answer

OpenCV Python kernel crashes when clicking the trackbar

I am trying to create a simple trackbar to test some edge detection, and I've been following the official opencv tutorial from here in Python. When I run the code, the window is created and I can see the sliders, but when I click the sliders, the…
1
vote
1 answer

c# easiest way to draw a line behind a trackbar

I am creating a application in c# and I would like to get the same effect on a trackbar component, like in the system volume application in windows 7 (the green line which represents the current sound level output). I'd like to draw a green line…
blejzz
  • 3,349
  • 4
  • 39
  • 60
1
vote
1 answer

Set Collection in TrackBar - Visual Basic

Is it possible to set a series (Collection) of fixed values so that the trackbar output only the values defined in the series? From the properties it seems you can only set min, max and TickFrequency, not the single possible values Thanks
MattL99
  • 137
  • 5
1
vote
1 answer

Use cv2.createTrackbar to blur images using python

I tried the following code: import cv2 import numpy as np def nothing(x): pass cv2.namedWindow('Image') img = cv2.imread("kakashi.jpg") low = 1 high = 100 cv2.createTrackbar('Blur', 'Image',low,high,nothing) while (True): ksize =…
Mr.J
  • 181
  • 1
  • 10
1
vote
2 answers

OpenCV error while reszing new created window is there any other way to do it?

cv2.namedWindow("Trackbars") cv2.resize("Trackbars", 640 ,420) cv2.createTrackbar("Hue Min","Trackbars",0,179,empty) I am using this code to create and resize the new window but its showing giving me following error: what am doing wrong here…
user15071349
1
vote
1 answer

Creating trackbars to scroll large image and upper and lower boundaries (Pyhton / OpenCV)

I am trying to create scrollbars in a window created by OpenCv python. Specifically, I want merge this HSV scroll bar code in the answer (1) (Choosing the correct upper and lower HSV boundaries for color detection with`cv::inRange` (OpenCV)) with…
Zaza
  • 11
  • 1
1
vote
1 answer

Why tmediaplayer.CurrentTime not working for Android?

I want to make control audio with tackBar I use this code When audio is playing, my code on timer is If trackbar1.max<>mediaplayer1.duration then trackbar1.max := mediaplayer1.duration; If trackbar1.value<>mediaplayer1.currentTime then …
1
vote
1 answer

Custom trackbar ticks

I'm using the stock Trackbar control. I would like to custom draw the ticks. Here I made an experiment, just trying to draw in the right place: case WM_NOTIFY: { NMHDR* nMhdr = (NMHDR*) lParam; NMCUSTOMDRAW* nMcd = (NMCUSTOMDRAW*) lParam; …
TheNextman
  • 12,428
  • 2
  • 36
  • 75