LiveResize in 6.7.3 and 7.0.3
Terence Heaford
t.heaford at icloud.com
Tue Mar 10 15:08:56 EDT 2015
I have created a group which contains the methods to create simple charts which I use to display financial data.
X axis = money
Y axis = for example category.
The charts basically comprise of, in relation to a bar chart:
1. Fields for the axis labels & legend.
2. Polygons to create lines for axis, grids, axis ticks.
3. Rectangles for the bars.
A typical bar chart may contain approx. 150 items
When it comes to resize the window by dragging, I delete all the items owned by the group and rebuild the chart.
As resizeStack is sent continuously I have to delete/rebuild continuously.
I want to resize the chart as the user drags the window but both 6.7.3 and 7.0.3 stutter quite badly under the strain of rebuilding the chart.
7.0.3 is obviously worse then 6.7.3 at doing this.
I am looking for ideas on a better way of doing this?
I would not want to resort to images, as printing part of the card results in good quality PDF’s in OS X, at least in 6.7.3 (7.0.4 I believe will have the required bug fix).
One immediate area for improvement might be the delete routine which is:
on deleteChart
lock screen
repeat for each line tID in the childControlIDs of me
delete control id tID of me
end repeat
unlock screen
end deleteChart
Is there a call that will delete all the items at once rather than having to iterate through the childControlIDs?
All the best
Terry
More information about the use-livecode
mailing list