Add a control to a group
m.schonewille at economy-x-talk.com
Sat Aug 2 00:36:43 CEST 2014
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
Economy-x-Talk Consulting and Software Engineering
Installer Maker for LiveCode:
Buy my new book "Programming LiveCode for the Real Beginner"
LiveCode on Facebook:
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>
>> 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.
> Devin Asay
> Learn to code with LiveCode University
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
More information about the use-livecode