TrackBar Control - Forum

Forum Navigation
You need to log in to create posts and topics.

TrackBar Control

Anyone know of a plugin that has more control using a track bar than the native NeoBook track bar?

For instance, adjusting the variable as the bar is moved rather than after you release the mouse button, and moving to a track position by simply clicking on the track rather that it moving the bar by a factor of one every.

@pauljonestindall

adjusting the variable as the bar is moved rather than after you release the mouse button

On my old NeoBook version 5.8.7 (Jan/2016) ... sorry I have not come around to upgrade ... the variable IS updated as the bar is dragged via the mouse.

moving to a track position by simply clicking on the track rather that it moving the bar by a factor of one every.

I had not noticed this before ... looks like it is intended that the "drag/drop" is used to make major changes while the "click" is used for minor increments/decrements.

and moving to a track position by simply clicking on the track rather that it moving the bar by a factor of one every.

@pauljonestindall

Check out the example.

Uploaded files:
  • You need to login to have access to uploads.

@pauljonestindall

+ Vertical

Uploaded files:
  • You need to login to have access to uploads.

@pauljonestindall

For instance, adjusting the variable as the bar is moved rather than after you release the mouse button,

 

For some reason, it is not allowed to edit the post. :(

Uploaded files:
  • You need to login to have access to uploads.

@gaev

Actually the variable does change and silly me, I moved my actions to the Value Changing tab fixed that issue.

But I don't quite follow with the "drag n drop" idea.

@mishem

Thanks, the horizontal does the trick. But using it with asPlayer returned really strange results. I figured out that the trackbar being in a custom window (container), GetObjectInfo, AbsLeft returns the position of the track bar within the custom window while GetMousePos still returns the position from the left of the Pub window. I had to nix the custom window idea and put it on the page in order to work.

@pauljonestindall

 I figured out that the trackbar being in a custom window (container), GetObjectInfo, AbsLeft returns the position of the track bar within the custom window while GetMousePos still returns the position from the left of the Pub window.

 

https://winhelp.visualneo.com/Objects.html#GETOBJECTINFO

@pauljonestindall

I moved my actions to the Value Changing tab fixed that issue.

I found that I did not need to use the Value Changing event Tab at all ... I placed a Text Object with its content set to [TrackBar1] ... and watched the content change in real time as I dragged the Thumb (left/right or up/down).

But I don't quite follow with the "drag n drop" idea.

Not so much an idea as a surmise about the intended usage of this tool from observing its behavior/response ...

- drag the Thumb for the major changes e.g. 50 to 80
- then click on the Track for finer movements (a number at a time)

@mishem

Yes, I read that. None the less, those are the returns I'm getting. It says the same thing in the NeoBook docs also but perhaps it's because I am still using the last version of NeoBook. I don't know. But the ABSLeft is giving me a number from the left of the CustomWindow Container. When I click on the track it moves the bar to a position from where I click the mouse that is exactly the distance of my CustomWindow from the left of the publication. If I do this whole operation on the page and not in a window (inside a container) it all works perfectly well.

@gaev

Yes, I too see the variable change the same as you but the difference is the action commands in the Value Changed tab won't execute until you release the mouse button. Value Changing however...
Think of it this way, my trackbar has a value the length of a song. With Value Changed the song playback will not change until I release the mouse. With the Value Changing, I hear the the song changing as I move the bar.

However, with both of your ideas, I think I achieved a very satisfactory music player. By the way, my project is a program to rename, catalog and ID my rather large music collection. And now within it I have a nicely working player.

Thanks.

@pauljonestindall

But the ABSLeft is giving me a number from the left of the CustomWindow Container

This has always been the case; however, you can get around this with a bit of Math (and the position of the Container from the left edge of the page).

Yes, I too see the variable change the same as you but the difference is the action commands in the Value Changed tab won't execute until you release the mouse button. Value Changing however...

Think of it this way, my trackbar has a value the length of a song. With Value Changed the song playback will not change until I release the mouse. With the Value Changing, I hear the the song changing as I move the bar.

I see what you meant in your first post.

When the NeoDX plugin was first released (and I had hair on my head), I made a Player for it ... and encountered similar anomalies. Alas, this pub and my hair are both gone/lost.

You might consider adding to (or replacing) the Trackbar tool with Radio/Push Buttons that allowed you to increment/decrement the song's position by (say) -20, -10, -5, -1, 1, 5, 10, 20 etc.