Trying to understand the inner workings of Resizestack
Terence Heaford
t.heaford at icloud.com
Mon Mar 14 15:43:11 EDT 2016
> On 14 Mar 2016, at 19:17, Mark Wieder <mwieder at ahsoftware.net> wrote:
>
> On 03/14/2016 12:09 PM, Terence Heaford wrote:
>
>> I think perhaps I am asking to much of the engine as when resizeControl is received I don’t actually reposition/resize all the objects in the chart (90+), I actually delete the objects and recreate the chart.
>
> Ah. In that case, try locking the screen, moving the stack off screen (say to -5000,-5000), recreate the graph, move the stack back into its original location, and unlock the screen.
>
> --
> Mark Wieder
> ahsoftware at gmail.com
Thanks for the suggestion tried this without success:
on drawBarChart
lock screen
lock messages
put the topLeft of this stack into tTopLeft
set the topLeft of this stack to -5000,-5000
deleteChart
set the charts["chartType"] of me to "bar"
if the charts["data"] of me is not empty then
drawBackground
drawTitle
drawVertAxis
drawVertAxisGrids
drawVertAxisTicks
drawVertAxisLabels
drawVertAxisTitle
drawHorizAxisGrids
drawHorizAxis
drawHorizAxisTicks
drawHorizAxisLabels
drawHorizAxisTitle
drawDataLabels
drawLegend
drawDataBars
createDataDisplayField
end if
set the topLeft of this stack to tTopLeft
unlock messages
unlock screen
end drawBarChart
More information about the use-livecode
mailing list