Creating you own is not too hard.

Create a class based on a canvas.
Give it the properties:
minimum, maximum, pixelStep and value as integer

pixelStep = width/(maximum-minimum) - (or height / if it's vertical)

in it's paint event:

draw a track from 0 to width (or 0 to height if it's vertical)
draw the scroll thumb centred at (value*pixelStep)

in the mouseDown Event
if you detect a click on the thumb, return true

in the mouse drag event
move the thumb

Relatively simple in principle.

The hardest part are the graphic routines to make it actually look good. Or you can cheat and use picture resources.

- Tom

On 16/02/2007, at 9:04 AM, Brian Heibert wrote:

The slider control that I am using which is the default one that comes with realbasic has a "aqua" look. I have a custom backdrop in my window, are there any custom ones that don't have the "aqua" look, or how do I create my own?

Brian
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives:
<http://support.realsoftware.com/listarchives/lists.html>

_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives:
<http://support.realsoftware.com/listarchives/lists.html>

Reply via email to