Questions tagged [trackbar]

0

votes
0

answer
11

Views

Delphi how to control volume using trackbar

I am using TMediaPlayer to play music and videos which works fine, but I want to control the volume using a trackbar that can slide from low to medium to high. Can someone please help me on how to code it or is there any other method to do it? Thanks!
B.Anderson
0

votes
0

answer
6

Views

Update trackbar value on mouse wheel

I am using the scroll event but this only update value in label when i click on trackBar and move it right or left. I see that i can move it when i use mouse wheel but this doesn't update value in label just moving it. private void metroTrackBar1_Scroll(object sender, ScrollEventArgs e) { lblVolume....
GeorgeSog
1

votes
1

answer
2.1k

Views

How to convert .NET Trackbar control integer value to floating-point percentage

I always get 0 for percentage when I do this: int trackBarValue = trackBar.Value; float percentage = trackBarValue / 100; What's wrong with my code?
user310291
1

votes
2

answer
1.5k

Views

TrackBar custom Small & Large Change on Mouse Move / Scroll Up & Down in VB.NET

Well I'm trying something like that: Private Sub TrackBar1_Scroll(sender As Object, e As EventArgs) Handles TrackBar1.Scroll Dim scv As Int32 = TrackBar1.Value Dim uni As [String] = 'ms' Select Case scv Case Is > 1000 scv = scv \ 1000 uni = 's' sender.SmallChange = 1000 Case Is > 100 sender.SmallCha...
Seazoux
2

votes
2

answer
2.7k

Views

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 simplest way of achieving this? I have 6 trackbars and...
Matt Esch
5

votes
1

answer
1.1k

Views

How to implement trackbar like this image - Android?

Please help me implement this view. Clicking circles brings up mouse over of actual value of min/max/target. Bar length don't according to any thing. But bar color's according to target circle. Thanks a lot
Leo Nguyen
3

votes
4

answer
4.1k

Views

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 on static text control, so I wrote: case WM_NOTIFY:...
David
2

votes
1

answer
336

Views

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 worker.CancelAsync(). It works when a user does slow changes on...
Smajler Kamil
2

votes
4

answer
7.7k

Views

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 user grab the trackbar's slider and pull it from 20 to 0...
Saeid Yazdani
2

votes
2

answer
3.2k

Views

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 somehow? C++ apps have bigger thumb often. This is what I'...
Prog1020
2

votes
2

answer
1.7k

Views

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 Opacity and that functions just fine, sliding the T...
Allen Rice
4

votes
3

answer
4.2k

Views

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
2

votes
1

answer
6.6k

Views

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 trackbar control in VS2008. I don't use WPF; just C# 2.0.
sjlewis
1

votes
1

answer
1.3k

Views

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 H','image') to get my trackbar value and use it in the cv2...
3

votes
2

answer
226

Views

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 the trackar (moving the slider) in any method, it...
Klue
3

votes
3

answer
2.4k

Views

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 values and none are ever shown. My code is: TrackBar1.T...
Eric Fortier
2

votes
1

answer
1.2k

Views

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 contrast but the BLUR trackbar is still visible and we can...
Nat
4

votes
2

answer
4.9k

Views

C# /windows forms: linking trackbar and textfield with a factor

linking a trackbar and a textfield is very easy in windows forms. it is like this: textBox.DataBindings.Add('Text', trackBar, 'Value'); the problem is, that trackbars only allow for integer values but i want to have floating point values. so i usually just divide the value by 100, since on the track...
4

votes
2

answer
10k

Views

How do I label the minimum, maximum, center ticks in a .net 3.5 trackbar?

I need to set a voltage in an application. I'm used to using sliders in Labview, and would like to replicate that using a C# program. I've figured out that the track bar only does integer values, so rather than have the range go from -5 to 5 using a double, I need to have the track bar go from -50...
Curt
4

votes
1

answer
8.6k

Views

Values on trackbar

Quick question; In C#, Windows Forms, is it not possible, to have a System.Windows.Forms.TrackBar show all its values, next to its ticks? I have not been able to find any way of doing this, which suprises me abit. Is there another way, to get this behavior? I really would like to avoid, creating 25...
Nicolai
2

votes
0

answer
172

Views

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 appear less 'enabled' ? In this example, the second sli...
Dan W
4

votes
2

answer
503

Views

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 pictureBox to public in the Designer view. However, w...
Trevor Thompson
1

votes
2

answer
4.6k

Views

C# winform, how to make the track bar move (increase its value) along with a sound file?

in my form, I have a small media player, it's pretty basic, it has the basic functionalists nest, previous, play, stop, volume increasing and a track bar. I was able to seek the song by dragging the track bar via this code:: (Assuming that the maximum value of the track bar is the total number of se...
vexe
2

votes
2

answer
478

Views

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 position should change. I am using the CSCore Audio...
ChrisCreateBoss
7

votes
2

answer
3.2k

Views

Many sliders with one callback

Is it possible to create some sliders and make one callback for all of them? I am creating a window, in which i would like to set about 10 parameters. It would be much better to have 1 callback function for all of them instead of 10 functions. currently i create trackbar like this: cvCreateTrackbar(...
user1762979
7

votes
5

answer
8.2k

Views

Component (similar to trackbar) to enter a range of values

I need a component for entering ranges. I was thinking along the lines of a trackbar with two markers. Are there 'native Delphi' components that are meant for this purpose or that can simulate it easily?
Svein Bringsli
3

votes
1

answer
4.3k

Views

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
6

votes
1

answer
4.3k

Views

Adding a TrackBar in ToolStrip

I am trying to add a TrackBar in my ToolStrip. I have found this code somewhere on the net but I am not sure how to use it as it should be compiled maybe? Code /// /// Adds trackbar to toolstrip stuff /// [ ToolStripItemDesignerAvailability (ToolStripItemDesignerAvailability.ToolStrip | ToolStrip...
Saeid Yazdani
1

votes
1

answer
136

Views

OpenCV Python: Blur image using trackbar

I'd like to control the blur of an image by using a trackbar. The given MWE imports a picture with a trackbar that sets the aperture linear size (ksize) which has to be one or a positive odd number. Strangely getTrackbarPos returns a negative number which makes it necesarry to multiply ksize by -2 a...
Philipp
6

votes
1

answer
1.2k

Views

Two TrackBar mirror

I would like to know how to make my second trackbar.position mirror in the opposite direction of trackbar1.position. eg. Range from 1 to 100. So When TrackBar1.Position := 2, then trackbar2.Position := 99 Regardless of which way the trackbars goes, I would like to mirror in the opposite direction....
Ben
3

votes
0

answer
598

Views

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 configPanelWindowName = 'Configuration panel'; void cr...
Alex Guerrero
4

votes
4

answer
6.3k

Views

Trackbar Background in a TabControl

I have a TrackBar control on a TabPage inside a TabControl. The background of the TrackBar is being drawn in grey while the TabPage is being drawn as white. There is no way to set the BackColor property of the TrackBar to transparent, and I can't override the drawing because there is no DrawMode pro...
Jon Tackabury
3

votes
1

answer
3.7k

Views

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 this possible? If so, how can I do it? Thanks.
Yanshof
3

votes
3

answer
10.4k

Views

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 with function pointers but it doesn't work out. I gues...
Wim Vanhenden
1

votes
3

answer
3k

Views

System.Windows.Forms.Trackbar - how to prevent user from dragging the slider?

Is there some way to (temporarily) prevent user from changing the value of TrackBar by dragging the slider? Only way I found is to set Enabled property to false but it also greys out the trackbar. Edit: Since I´m getting more answers about why shouldn't I do it rather than how it's possible to do...
Ondra C.
2

votes
1

answer
155

Views

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 how to code it so that the 'Turret' line is redrawn...
Brian Leigh
2

votes
1

answer
1.9k

Views

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 are there, but I can still move the pointer everywhe...
Droes
3

votes
3

answer
1.3k

Views

How could I change the order of trackbars in OpenCV?

By using cvCreateTrackbar(), I create some trackbars, but these trackbars are disordered. And I can't find any function in OpenCV to change the order. So...How could I change the order of trackbars in OpenCV? (And forgive my poor English.) It seems that in my program the order of track bars on the w...
Definiter
5

votes
2

answer
11.5k

Views

WinForms Volume Slider/Trackbar User Control

I'm looking for a trackbar-like user/custom control to use in my .NET 2.0 WinForms app. Note: I'm NOT asking how to control the volume in a WinForms app. Anyone knows of a nice looking custom painted slider/trackbar control that could be used in my app to let user set the volume? (such as the ones...
Serge Wautier
7

votes
7

answer
11.4k

Views

Track Bar Only fire event on final value not ever time value changes

I am working on a pretty basic C# visual studio forms application but am having some issue getting the track bar to act as I want it to so hoping someone in the community might have a solution for this. What I have is a pretty basic application with the main part being a track bar with a value of...
Stewart Dale

View additional questions