Jump to content

Recommended Posts

Posted

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

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?
Posted

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:

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
×
×
  • Create New...