Great work on the new control, definitely something that was missing from RunRev!
I bought a copy a few days ago, and there just seems to be one bug (or maybe just user error!!). Im sure its just a tiny issue!
The problem is with the showLegends on sub-stacks. They work fine if im on the main stack, but not on substacks.
To replicate the problem if you simply create a new stack file, and a substack and put a button on each with the following script...
Code: Select all
on mouseUp
local tChart
-- Clear the old charts
repeat for each line myGroup in groupnames
if myGroup contains "tNewChart" then
delete group myGroup
end if
end repeat
if "chartsEngine" is not among the lines of the stacksinuse then
start using stack "chartsEngine"
end if
-- Check the chart doesnt already exist, and if not create it
if "tNewChart" is not among the lines of groupnames then
chartsCreateChart "tNewChart", 0,0,the right of me, the bottom of me - 35
put the result into tChart
else
put the long id of group "tNewChart" into tChart
end if
set the charts["data"] of tChart to "1,2,3"&cr&"3,2,4"
set the charts["showLegend"] of tChart to true
-- Load the chart
chartsRefresh tChart
end mouseUp
Any ideas?
Thanks
Andy