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
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 know every nook and cranny of this development platform. Alejandro -- View this message in context:

Re: Storing a control in a custom property

2013-04-30 Thread Mike Bonner
Yeah, I had tried it from the message box just manually selecting multiple objects and couldn't get it to work for me but will keep trying till I figure out where i'm going wrong. Yep, its working. Think a message box quirk was causing me troubles, moving the code into the stack itself works dandy

Re: Storing a control in a custom property

2013-04-30 Thread Peter Haworth
Thanks Bernd! Pete lcSQL Software On Tue, Apr 30, 2013 at 10:14 AM, BNig wrote: > You can do it for multiple objects also: > - > on mouseUp >lock screen >set the selected of button 1 to true >set the selected of field 1 to true >set the se

Re: Storing a control in a custom property

2013-04-30 Thread BNig
If you don't want to "set the selected" you can also say --- select button 1 and field 1 and field 2 and image 1 -- you can NOT say select button 1 select field 1 select field 2 select image 1 -- since each select will deselect

Re: Storing a control in a custom property

2013-04-30 Thread Mike Bonner
Hmm had tried it, but only seemed able to restore a single object no matter how many were selected. Will have to try it again! (this is why I worked with groups for multiple objects, I could make it work) Thx for the script, will add it to my snippets. On Tue, Apr 30, 2013 at 11:14 AM, BNig wro

Re: Storing a control in a custom property

2013-04-30 Thread BNig
You can do it for multiple objects also: - on mouseUp lock screen set the selected of button 1 to true set the selected of field 1 to true set the selected of field 2 to true set the selected of image 1 to true copy set the uObjects of this stack to the clipBoar

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.