Re: Storing a control in a custom property

2013-05-05 Thread FlexibleLearning.com
The Scripter's Scrapbook download is indeed a 'starter-kit', but it does include a lot of LC/Rev snippets. Hugh Senior FLCo -- Original message From: William Humphrey To: How to use LiveCode Subject: Re: Storing a control in a custom property I wish that the demo of the script

Re: Storing a control in a custom property

2013-05-05 Thread William Humphrey
I wish that the demo of the scripted library came with a whole bunch of useful snippets for Livecode programmers. Brevity and errors in this email probably the result of being sent by a mobile device. On May 5, 2013, at 3:07 AM, "FlexibleLearning.com" wrote: > I've copied this tidbit to th

Re: Storing a control in a custom property

2013-05-05 Thread FlexibleLearning.com
I've copied this tidbit to the Scripter's Scrapbook. www.ssbk.co.uk Hugh Senior FLCo -- Original message Hi All, After reading this thread, I just keep wondering if this particular tidbit was published before. (and where?) This thread is a useful reminder (at least for me) that I don't really

Re: Storing a control in a custom property

2013-05-03 Thread Alejandro Tejada
ntext: http://runtime-revolution.278305.n4.nabble.com/Storing-a-control-in-a-custom-property-tp4664040p4664234.html Sent from the Revolution - User mailing list archive at Nabble.com. ___ use-livecode mailing list use-livecode@lists.runrev.com Please

Re: Storing a control in a custom property

2013-04-30 Thread Mike Bonner
> -- > View this message in context: > http://runtime-revolution.278305.n4.nabble.com/Storing-a-control-in-a-custom-property-tp4664040p4664057.html > Sent from the Revolution - User mailing list archive at Nabble.com. > > ___ > use-l

Re: Storing a control in a custom property

2013-04-30 Thread Peter Haworth
-- > on mouseUp >set the clipBoardData["objects"] to the uObjects of stack "untitled 1" >paste > end mouseUp > > > Kind regards > Bernd > > > > -- > View this message in context: > http://runtime-revolution.278

Re: Storing a control in a custom property

2013-04-30 Thread BNig
ach select will deselect the previous selection Kind regards Bernd -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/Storing-a-control-in-a-custom-property-tp4664040p4664057.html Sent from the Revolution - User mailing list archiv

Re: Storing a control in a custom property

2013-04-30 Thread Mike Bonner
ntitled 1" >paste > end mouseUp > > > Kind regards > Bernd > > > > -- > View this message in context: > http://runtime-revolution.278305.n4.nabble.com/Storing-a-control-in-a-custom-property-tp4664040p4664053.html > Sent from the Revolution

Re: Storing a control in a custom property

2013-04-30 Thread BNig
ge in context: http://runtime-revolution.278305.n4.nabble.com/Storing-a-control-in-a-custom-property-tp4664040p4664053.html Sent from the Revolution - User mailing list archive at Nabble.com. ___ use-livecode mailing list use-livecode@lists.runrev.com Plea

Re: Storing a control in a custom property

2013-04-30 Thread Peter Haworth
Thanks Mike, that's great. I see you can also do it for a group of objects. I'm impressed! Pete lcSQL Software On Mon, Apr 29, 2013 at 5:52 PM, Mike Bonner wrote: > Yes you can do that. Just "copy" the control to the clipboard and save the > clipboard data to a proper

Re: Storing a control in a custom property

2013-04-30 Thread Mike Bonner
Works with cards too. /shrug ## store card copy cd "cardname" put the clipboarddata["objects"] into tVar encrypt tVar insert tVar into the database (binary/blob) ## retrieve card select the card put it into tVar decrypt set the clipboarddata["objects"] to tVar paste On Tue, Apr 30, 2013 at 10:

Re: Storing a control in a custom property

2013-04-30 Thread Dr. Hawkins
On Tue, Apr 30, 2013 at 6:25 AM, Mike Bonner wrote: > Can't do it with a stack that is not its own mainstack so you have to make > sure any stacks you store this way are set to point to themselves, but I > don't see why you couldn't do it. Copy the stack to clipboard (after > making sure it is no

Re: Storing a control in a custom property

2013-04-30 Thread Mike Bonner
Can't do it with a stack that is not its own mainstack so you have to make sure any stacks you store this way are set to point to themselves, but I don't see why you couldn't do it. Copy the stack to clipboard (after making sure it is not a sub) pop it out of the clipboard data, encrypt it and sto

Re: Storing a control in a custom property

2013-04-30 Thread Dr. Hawkins
On Mon, Apr 29, 2013 at 5:52 PM, Mike Bonner wrote: > I was doing this with whole stacks and it works fine. To restore the > object, put the cWhereIStoredIt into the clipboarddata["objects"] and then > paste it. (didn't check dictionary so not positive if objects is correct) Hmm. Could this th

Re: Storing a control in a custom property

2013-04-29 Thread Mike Bonner
Yep, just did a test and it is indeed "objects" On Mon, Apr 29, 2013 at 6:52 PM, Mike Bonner wrote: > Yes you can do that. Just "copy" the control to the clipboard and save > the clipboard data to a property. (clipboarddata["objects"] I think) > > I was doing this with whole stacks and it wor

Re: Storing a control in a custom property

2013-04-29 Thread Mike Bonner
Yes you can do that. Just "copy" the control to the clipboard and save the clipboard data to a property. (clipboarddata["objects"] I think) I was doing this with whole stacks and it works fine. To restore the object, put the cWhereIStoredIt into the clipboarddata["objects"] and then paste it.

Storing a control in a custom property

2013-04-29 Thread Peter Haworth
Is it possible to store a control in a custom property and then create a control by referencing that custom property? I'm guessing the only way to do it is to store the object's properties in the custom control then create a new control and set its properties to the custom control Pete lcSQL Soft