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.
Colorized ScrollBar Thumb
Moderator: Klaus
-
- Livecode Opensource Backer
- Posts: 10081
- Joined: Fri Feb 19, 2010 10:17 am
Re: Colorized ScrollBar Thumb
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.
put the propertyNames of scrollBar "XXX" (where "XXX" is the name of your scrollBar) you will see what props a scrollBar has.