Author Topic: pretty cool slider control  (Read 4131 times)

MrPike

  • Sr. Member
  • ****
  • Posts: 297
    • View Profile
pretty cool slider control
« on: October 18, 2016, 09:32:37 AM »
came across this slider control in search for a better option than the standard trackbar in windows.  I just right clicked toolbox and added a tab called gTrackBar then add items to the new tab.  browse to the bin/debug/gtrackbar.dll and added to my toolbox.  A lot of nice features.  if anyone can advise how to add this to the Barlevel control so the user could adjust min/max thresholds and possible change the barlevel fill color on value. 


https://www.dropbox.com/s/19tesp0x0tw4weu/gTrackBar.zip?dl=0

Godra

  • Hero Member
  • *****
  • Posts: 1447
    • View Profile
Re: pretty cool slider control
« Reply #1 on: October 18, 2016, 11:34:04 AM »
That same control was discussed in other topic:

https://www.advancedhmi.com/forum/index.php?PHPSESSID=b600731a056292d741c136c3bfb42a1c&topic=711.0

There is AHMI version of that control, which potentially might be useful.
« Last Edit: May 19, 2019, 10:34:42 PM by Godra »

MrPike

  • Sr. Member
  • ****
  • Posts: 297
    • View Profile
Re: pretty cool slider control
« Reply #2 on: October 18, 2016, 11:59:17 AM »
Nice, thank you!

MrPike

  • Sr. Member
  • ****
  • Posts: 297
    • View Profile
Re: pretty cool slider control
« Reply #3 on: October 18, 2016, 12:21:40 PM »
How would one go about adding a scale/ number line to this control that would show the values along the tick area?

Godra

  • Hero Member
  • *****
  • Posts: 1447
    • View Profile
Re: pretty cool slider control
« Reply #4 on: October 18, 2016, 02:41:03 PM »
The control appears to allow showing the value at one end of the trackbar (check the picture on the project page).
Also, when the slider is clicked it should show the current value and, as it is dragged, it should show the new value.

Using standard Windows Forms Labels next to the ticks might be a choice.

Otherwise you would have to find a way to modify the code.
« Last Edit: October 19, 2016, 09:11:51 AM by Godra »