Sign in to follow this  
Followers 0
Rad

Custom trackbar / slider

5 posts in this topic

I just want to know if its possible to make my slider not be the default windows one, so I can make my own obviously... But I have no idea how :whistle:

Had no luck finding anything with the search but i could have missed something

Share this post


Link to post
Share on other sites



#3 ·  Posted (edited)

@Rad, from programming a trackbar in Javascript, I have done exactly this. The process is rather complicated.

1. You have to know the left and right sides of the "fake" trackbar you create.

2. You have to use the gui message $GUI_EVENT_PRIMARYDOWN as a kind of "onmousedown" event, the $GUI_EVENT_PRIMARYUP as an "onmouseup" event, and $GUI_EVENT_MOUSEMOVE during the interval to move the "slider" control somewhere inbetween the edges of the trackbar.

3. You figure the following to find the percentage:

(sliderposition / trackbarwidth) * 100

EDIT: To answer one of your questions, yes it is difficult if you have never done one.

Edited by this-is-me

Who else would I be?

Share this post


Link to post
Share on other sites

I think i could create one, but it would take a great deal of time... I was just thinking it might be reskinnable like the windows are with XSkin, but i dont think you can skin trackbars with that either...heh

Oh well thanks anyway, these both seem to complicated for what i needed it for :whistle:

Share this post


Link to post
Share on other sites

here's something to play with

i made custom sliders for my proplayer mp3 player

search the forum for proplayer

jpam

progbar.au3

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0