Export & LC8 & Browser widget
Tore Nilsen
tore.nilsen at me.com
Tue Mar 1 17:24:39 EST 2016
I think Terence has a menuBar of his own making in the stack, that would count for the extra 22 pixels on the card being pushed upward on the mac version, but still a part of the card height.
Tore
> 1. mar. 2016 kl. 23.22 skrev J. Landman Gay <jacque at hyperactivesw.com>:
>
> On 3/1/2016 3:57 PM, Terence Heaford wrote:
>>
>>> On 1 Mar 2016, at 21:32, J. Landman Gay <jacque at hyperactivesw.com>
>>> wrote:
>>>
>>> "To export a snapshot for a portion of a stack you use the form:
>>> export snapshot from rect[angle] of window windowID to ... Where
>>> windowId is the windowId property of the required stack."
>>
>> This does not work correctly on a Mac for the reason given
>> previously.
>>
>> The top and bottom of the image exported has shifted down by the
>> depth of the menubar. put the rect widget "Chart" into tRect
>>
>> export snapshot from rectangle tRect of window (the windowId of
>> window "Test") to tVar as PNG
>
> It works here on a Mac. I happened to have a tree view widget at hand, but any of them should work.
>
> put the windowid of this stack into twid
> export snapshot from rect (the rect of widget "tree view") \
> of window twid to file "imgTest.png" as PNG
>
> No adjustments needed.
> --
> Jacqueline Landman Gay | jacque at hyperactivesw.com <mailto:jacque at hyperactivesw.com>
> HyperActive Software | http://www.hyperactivesw.com <http://www.hyperactivesw.com/>
>
> _______________________________________________
> use-livecode mailing list
> use-livecode at lists.runrev.com <mailto:use-livecode at lists.runrev.com>
> Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode <http://lists.runrev.com/mailman/listinfo/use-livecode>
More information about the use-livecode
mailing list