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
4
votes
2 answers

Negative value range for Trackbar in OpenCV

I am trying to include negative values in the range of the Trackbar of cv2.createTrackbar. But each time I run the script, the negative values are not considered. How could I include the negative values? import cv2 import numpy as np from cv2…
Jeremy
  • 189
  • 4
  • 14
4
votes
3 answers

Adding a TrackBar control to a ContextMenu

Is it possible to add a TrackBar control to a ContextMenu? So when I right click, my ContextMenu will drop down and a TrackBar will appear as a menu item?
Icemanind
  • 47,519
  • 50
  • 171
  • 296
4
votes
1 answer

Is it possible to delete trackbar in OpenCV?

I want to make a MENU trackbar which change the parameter that the user want to change. So if it is set on "1" the BLUR trackbar appears and we can blur the picture, if "2" the ALPHA and BETA trackbars appear and we can change brightness and…
Nat
  • 43
  • 1
  • 3
4
votes
3 answers

C# Raise Event from List of Controls

WARNING: Embedded software delevoper trying to build PC software! I'm trying to interface a piece of hardware that communicates with the PC via serial interface. The PC software (C#) periodicaly sends a byte array, which I would like to adjust using…
George P.
  • 140
  • 1
  • 1
  • 7
4
votes
2 answers

How to adjust a TrackBar thumb size?

I can't adjust a TTrackBar thumb size to a higher size. See the image: I got a small thumb on the left, and I can't make it bigger (but not the TrackBar itself). Desired thumb size is shown on an image with a red area. Maybe I can use WINAPI…
Prog1020
  • 4,530
  • 8
  • 31
  • 65
4
votes
2 answers

Zoom using two forms

I have a multiple forms in my project. Form1 contains a pictureBox that displays a jpeg. In Form2 I have a trackBar that I would like to control the zoom level of the image in Form1. To keep it simple I only need 2 or 3 zoom levels. I've set the…
3
votes
3 answers

OpenCV trackbar callback in C++ class

I have a question about how to define the callback for trackbars in OpenCV when working with classes in C++. When I define my trackbar let's say in the constructor method of my .cpp class how can I define the callback? I have been trying to work…
Wim Vanhenden
  • 841
  • 2
  • 12
  • 18
3
votes
1 answer

Control the computer's volume in C#

Is there a way to control the computer's actual volume in C# and display that in a vertical track bar?? I have tried practically everything, but there must be something I am missing. Thanks.
H Bellamy
  • 22,405
  • 23
  • 76
  • 114
3
votes
1 answer

Creating trackbar changing brightness of image OpenCV

I've got a problem with creating a trackbar which would adjust brightness of the displayed picture. This is my code (part which is involved with brightness): int brightness_value = 25; //global values const int max_value = 255; int main() { Mat…
obeeey
  • 113
  • 8
3
votes
4 answers

How to check for TrackBar sliding with mouse hold and release

I have a trackbar in my WinForms program which by moving it a huge and time consuming method will be refreshed. Have a look at this code: trackBar_ValueChanged(object sender, EventArgs e) { this.RefreshData(); } This track bar has 20 steps. If…
Dumbo
  • 13,555
  • 54
  • 184
  • 288
3
votes
2 answers

How can I sync the values of NumericUpDown and TrackBar controls in WinForms?

I have simple Windows Forms application (not WPF), and I have two controls on it: TrackBar NumericUpDown I want to make some binding between them so if one of them has its value change, the other control will be updated to show the same value. Is…
Yanshof
  • 9,659
  • 21
  • 95
  • 195
3
votes
2 answers

C# trackbar not updating

i've run into this pretty tricky problem recently and i hoped somebody could help me. i have a program that uses trackbars as to display sound volume and it's controlled with an Arduino via serial. When i try to modify the value (programmaticaly) of…
Klue
  • 73
  • 9
3
votes
1 answer

How can I move the TrackBar in response to mouse events in C#?

This is probably a n00b query. I have a need where I want to change the trackbar value based on a mouse down event. This I achieved as follows: private void MoveTrackBarToMouseClickLocation(TrackBar a_tBar, int a_mouseX) { // Jump to the clicked…
ababeel
  • 435
  • 1
  • 8
  • 25
3
votes
2 answers

Trigger event on trackbar ValueChanged, but not in code

I want to be able to modify the value property of a trackbar in code without triggering my event handler. I wish to trigger the event only when the control is changed by the user by dragging the slider or moving it with the keyboard. What's the…
Matt Esch
  • 22,661
  • 8
  • 53
  • 51
3
votes
0 answers

How can I print out the current value of a trackbar with OpenCV?

I'm creating a simple configuration panel window to modify some HSV values for an OpenCV program. This is the specific code: int HUE_MIN = 0; int HUE_MAX = 256; int SAT_MIN = 0; int SAT_MAX = 256; int VAL_MIN = 0; int VAL_MAX = 256; const string…
Alex Guerrero
  • 2,109
  • 1
  • 19
  • 28
1
2
3
13 14