Export & LC8 & Browser widget

Terence Heaford t.heaford at icloud.com
Tue Mar 1 16:13:22 EST 2016


> On 1 Mar 2016, at 20:33, Tore Nilsen <tore.nilsen at me.com> wrote:
> 
> It may not be the most elegant solution, but this works for me:
> 
> on mouseUp
> 
> put the rect widget "Chart" into tRect
> 
> add left of this stack to item 1 of tRect
> 
> add left of this stack to item 3 of tRect
> 
> add top of this stack to item 2 of tRect
> 
> add top of this stack to item 4 of tRect
> 
> export snapshot from rect tRect to tVar as PNG
> 
> put tVar into image "myImage"
> 
> end mouseUp
> 
> 
> Tore


This didn’t quite work correctly on my iMac there is a grey bar at the bottom of the image.

I believe this is do with the height of the menubar?

add left of this stack to item 1 of tRect

add left of this stack to item 3 of tRect

add top of this stack - 22 to item 2 of tRect

add top of this stack - 22 to item 4 of tRect


Thanks

Terry


More information about the use-livecode mailing list