Add a control to a group
Paul Hibbert
paulhibbert at mac.com
Fri Aug 1 18:41:26 EDT 2014
Hi Devin,
Yet another approach…
create invisible image "snapShot" in group "myGroup"
export snapshot from group "or_Whatever" to image "snapShot"
set the visible of img "snapShot" to true
Paul
On 2014-08-01, at 3:36 PM, Mark Schonewille <m.schonewille at economy-x-talk.com> wrote:
> Hi Devin,
>
> You could export a snapshot to a variable, create an image object in the group and set the text of the image.
>
> export snapshot from rect myRect to myPicture as PNG
> create image "New Image" in grp "Your Group"
> set the text of it to myPicture
>
> --
> Best regards,
>
> Mark Schonewille
>
> Economy-x-Talk Consulting and Software Engineering
> Homepage: http://economy-x-talk.com
> Twitter: http://twitter.com/xtalkprogrammer
> KvK: 50277553
>
> Installer Maker for LiveCode:
> http://qery.us/468
>
> Buy my new book "Programming LiveCode for the Real Beginner" http://qery.us/3fi
>
> LiveCode on Facebook:
> https://www.facebook.com/groups/runrev/
>
> On 8/2/2014 00:27, Devin Asay wrote:
>>
>> On Aug 1, 2014, at 4:02 PM, Mark Schonewille <m.schonewille at economy-x-talk.com>
>> wrote:
>>
>>> Hi Devin,
>>>
>>> Usually I copy them and then I delete the original:
>>>
>>> copy btn id x to grp y
>>> delete btn id x
>>>
>>> Probably you could also write a script to cut the control, edit the group and paste the control in the group. This wouldn't require creating a copy and deleting the original, but it might look strange when this happens and if something goes wrong, you lose your control :-)
>>
>>
>> Thanks, Mark. Right after I posted this I started experimenting with that technique and it looks promising. I just thought there might be a more direct way to do it.
>>
>> I just found this from the list in Nabble, from Klaus:
>>
>> create button in group "foo"
>>
>> But that won't work for me, because I am taking a snapshot then adding it to the group. I think I'll use Mark's suggestion.
>>
>>
>> Regards,
>>
>> Devin
>>
>>
>> Devin Asay
>> Learn to code with LiveCode University
>> http://university.livecode.com
>>
>>
>>
>>
>> _______________________________________________
>> use-livecode mailing list
>> 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
>>
>
> _______________________________________________
> use-livecode mailing list
> 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
More information about the use-livecode
mailing list