Colorized ScrollBar Thumb

Something you want to see in a LiveCode product? Want a new forum set up for a specific topic? Talk about it here.

Moderator: Klaus

Post Reply
124C41
Posts: 1
Joined: Thu Apr 12, 2012 4:04 am

Colorized ScrollBar Thumb

Post by 124C41 » Thu Apr 12, 2012 5:55 am

During the current FusionCharts for LiveCode development (a FREE file teaching "Chart Reports that steal the show") a conundrum appeared:

Decided to use ScrollBars, to show the import/export progress of Charts (12 Free, 21 Trial/Pro) and Thumbnail images (255 Free, 355 Trial). Alas, since 5 selectable GUI colors are used, there was no way the native LC ScrollBar could be deployed. So I built my own. This ScrollBar is composed of 2 images: ProgressBar and Thumb. The ProgressBar appearance is similar in color to the LC one. There are 5 of them whose corner pixels are set to the selectable card background color. The 5 Thumb images are 126 x 14 pixels, whose length starts out as 0 and increases to 126 pixels based on the import/export flow. Then the ScrollBar is hidden. All the GUI objects in this file including ScrollBars are images whose color is "skinned" using customProperties.

So, the request is for a native ScrollBar whereby the Thumb color can be set programatically. My ScrollBar is:
"set the width of img "Thumb" of me to ( tCount * tThumbLength/tCharts)". Where tCount = #of objects, ThumbLength and tCharts = File Quantity.

Thank you for your consideration of this request.

richmond62
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 10081
Joined: Fri Feb 19, 2010 10:17 am

Re: Colorized ScrollBar Thumb

Post by richmond62 » Sun Mar 31, 2013 2:52 pm

If you do this:

put the propertyNames of scrollBar "XXX" (where "XXX" is the name of your scrollBar) you will see what props a scrollBar has.

Post Reply