Re: Editable page
I want users to be able to put a limited set of controls, like images, shapes, text, backdrop on a page. I have noticed that the size events, the choose [...] tool, drag me in mouseUp, go a long way. Things like resizing, setting the fonts etc. also look feasible. So a simple toolbar, te choose tool command and lockimg of some core objects (mainly the ones that control the toolbar)... Looks like it will get me there. I posted a similar question to the forum and got a sample stack that put me on the right track - normally I don't cross-post but the use-livecode list seemed a bit more active. --Maarten On Saturday, April 2, 2011, dunb...@aol.com wrote: LiveCode is more than powerful and flexible enough to do what you want. Simple, to boot. The problem is that you might give away too much control, so that the whole app could be trashed by your users since you either have to give access to IDE tools, or permit only choices from a menu of properties, say. Fortunately, you can lock the core objects. Do you want to give just a limited, preset number of options to the user when a new control is created, or allow all properties to be adjusted? If the former, I can think of a few cute gadgets that would be fun to implement. Write back... Craig Newman -Original Message- From: Maarten Koopmans maarten.koopm...@gmail.com To: use-livecode@lists.runrev.com use-livecode@lists.runrev.com Sent: Sat, Apr 2, 2011 5:25 am Subject: Editable page Hi, I have a stack where I want the user to be able to add objects ((e.g. images, lines, text). I can set the tool to [ ... ]. Think an editable page. But my problem then is (let's take an image for example): - how do I make it so that the user can add an image to the placeholder - move the image - resize it Same for lines, texts, ... any ui element, really - I am trying to create a mock-up tool. My thoughts were be that I: a) have the user add the object to the the stack b) dynamically attach handlers to the newly created object that implement any desired object-specific behavior (i.e. move. (reset image source, crop, ...) How do I add the handlers dynamically (I really haven't been able to find it), and moreover, where do I store these templates in the overall stack. I think I haven't wrapped my head around the LiveCode model to do these more dynamic things, *any* help would be greatly appreciated!!! Thanks, Maarten ___ use-livecode mailing list use-livecode@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@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@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
The LC way for code libraries?
Hi, Simple question for people here, but something you wonder when you come from a non-LC code environment. What's a good way to create and store a non-UI code library in a LC project (a.k.a. business logic)? Say I'd want to implement a WebDAV client, which is a back-and-forth kind of flow. Or anu other protocol will do as a mental model Where would you store all the support functions for the protocol? Right now I can only see this happening on the stack level, but there I'm still fairly clueless. Thanks, Maarten ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
DELETE, PUT http
Hi, I there a way to have LIvecode do PUT and DELETE via http/https, hopefully witj digest authentication? So you can use the UI tools to integrate with REST services? I see great chanches here :-) Suddenly firing a lot of questions, because after years of using LC/runrev for small things I want to do some more heavy lifting. Coming from a Scala/Scheme/Rebol background I get the event model, but I need to learn some library tricks (as with any new language) and get a model of how to do some larger scale programming. So far, things look pretty good with LC. Once I get it compketely into my system I'll start really using the mobile version as wel. But... Step at a time. Thanks (again), Maarten ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Scripter's Scrapbook query [Win7/4.6]
If you are using the Scripter's Scrapbook as a plugin with LiveCode v4.6 and Windows 7, would you please contact me off-list at admin(at)FlexibleLearning.com Thank you. Hugh Senior FLCo ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
RE: The LC way for code libraries?
From: maarten.koopm...@gmail.com Simple question for people here, but something you wonder when you come from a non-LC code environment. What's a good way to create and store a non-UI code library in a LC project (a.k.a. business logic)? Say I'd want to implement a WebDAV client, which is a back-and-forth kind of flow. Or anu other protocol will do as a mental model Where would you store all the support functions for the protocol? Right now I can only see this happening on the stack level, but there I'm still fairly clueless. Have a look at page 166 of the 'User Guide' ... all about creating code libraries be well Dixie ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: The LC way for code libraries?
Thanks Missed that in plowing through all the dics/dictionary/getting my head around LC --Maarten On Sunday, April 3, 2011, John Dixon dixo...@hotmail.co.uk wrote: From: maarten.koopm...@gmail.com Simple question for people here, but something you wonder when you come from a non-LC code environment. What's a good way to create and store a non-UI code library in a LC project (a.k.a. business logic)? Say I'd want to implement a WebDAV client, which is a back-and-forth kind of flow. Or anu other protocol will do as a mental model Where would you store all the support functions for the protocol? Right now I can only see this happening on the stack level, but there I'm still fairly clueless. Have a look at page 166 of the 'User Guide' ... all about creating code libraries be well Dixie ___ use-livecode mailing list use-livecode@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@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: The LC way for code libraries?
Maarten Koopmans wrote: What's a good way to create and store a non-UI code library in a LC project (a.k.a. business logic)? Say I'd want to implement a WebDAV client, which is a back-and-forth kind of flow. Or anu other protocol will do as a mental model Where would you store all the support functions for the protocol? Right now I can only see this happening on the stack level, but there I'm still fairly clueless. If you think you'll be using such a library in other projects you'll definitely have an easier time reusing it as a library. You could embed the library as a substack, but then keeping it updated every time you enhance it is a drag, so I tend to prefer to keep libraries in their own stack files, loaded at startup from a folder named Components I keep at the same level as the executable. This article may help you get started if you haven't read it already: http://www.fourthworld.com/embassy/articles/revolution_message_path.html -- Richard Gaskin Fourth World LiveCode training and consulting: http://www.fourthworld.com Webzine for LiveCode developers: http://www.LiveCodeJournal.com LiveCode Journal blog: http://LiveCodejournal.com/blog.irv ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: DELETE, PUT http
Maarten Koopmans wrote: I there a way to have LIvecode do PUT and DELETE via http/https, hopefully witj digest authentication? So you can use the UI tools to integrate with REST services? I see great chanches here :-) PUT is well supported in addition to GET - check out the entry for PUT in the dictionary. AFAIK DELETE is only natively supported for FTP, but I would love to be wrong on that if anyone here knows otherwise. Suddenly firing a lot of questions, because after years of using LC/runrev for small things I want to do some more heavy lifting. Coming from a Scala/Scheme/Rebol background I get the event model, but I need to learn some library tricks (as with any new language) and get a model of how to do some larger scale programming. My dream would be to see Rebol offered as a subsystem within LiveCode, so we get the best of both worlds: LC's rich GUI model with Rebol's unmatched extensibility. -- Richard Gaskin Fourth World LiveCode training and consulting: http://www.fourthworld.com Webzine for LiveCode developers: http://www.LiveCodeJournal.com LiveCode Journal blog: http://LiveCodejournal.com/blog.irv ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: Just noticed
Nevermind. Using ctrl-v sets it dirty, shift-insert doesn't. I'll just remember to use ctrl-v instead. On Thu, Mar 31, 2011 at 2:47 PM, Mike Bonner bonnm...@gmail.com wrote: When i paste code into the script editor it doesn't set the dirty bit. Has it always been this way and I've just never noticed it before? ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: DELETE, PUT http
Hoi Maarten, POST and GET are supported. PUT and DELETE are not. Use LC's put url command to send data using the GET method. Use the post url command to send data using the POST method. POST example: put x=1y=2 into myData post myData to url http://domain.com/bla.php; GET example: put http://domain.com/bla.php?x=1y=2; into myUrl put url myUrl into myDataReturned Keep in mind that the put command in the second line of the last example has nothing to do with the PUT method used to connect to PHP (or iRev for that matter). -- Best regards, Mark Schonewille Economy-x-Talk Consulting and Software Engineering Homepage: http://economy-x-talk.com Twitter: http://twitter.com/xtalkprogrammer KvK: 50277553 New: Download the Installer Maker Plugin 1.6 for LiveCode here http://qery.us/ce On 3 apr 2011, at 16:14, Richard Gaskin wrote: Maarten Koopmans wrote: I there a way to have LIvecode do PUT and DELETE via http/https, hopefully witj digest authentication? So you can use the UI tools to integrate with REST services? I see great chanches here :-) PUT is well supported in addition to GET - check out the entry for PUT in the dictionary. AFAIK DELETE is only natively supported for FTP, but I would love to be wrong on that if anyone here knows otherwise. Suddenly firing a lot of questions, because after years of using LC/runrev for small things I want to do some more heavy lifting. Coming from a Scala/Scheme/Rebol background I get the event model, but I need to learn some library tricks (as with any new language) and get a model of how to do some larger scale programming. My dream would be to see Rebol offered as a subsystem within LiveCode, so we get the best of both worlds: LC's rich GUI model with Rebol's unmatched extensibility. -- Richard Gaskin Fourth World LiveCode training and consulting: http://www.fourthworld.com Webzine for LiveCode developers: http://www.LiveCodeJournal.com LiveCode Journal blog: http://LiveCodejournal.com/blog.irv ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: The LC way for code libraries?
Thanks, that was very insightful. On Sunday, April 3, 2011, Richard Gaskin ambassa...@fourthworld.com wrote: Maarten Koopmans wrote: What's a good way to create and store a non-UI code library in a LC project (a.k.a. business logic)? Say I'd want to implement a WebDAV client, which is a back-and-forth kind of flow. Or anu other protocol will do as a mental model Where would you store all the support functions for the protocol? Right now I can only see this happening on the stack level, but there I'm still fairly clueless. If you think you'll be using such a library in other projects you'll definitely have an easier time reusing it as a library. You could embed the library as a substack, but then keeping it updated every time you enhance it is a drag, so I tend to prefer to keep libraries in their own stack files, loaded at startup from a folder named Components I keep at the same level as the executable. This article may help you get started if you haven't read it already: http://www.fourthworld.com/embassy/articles/revolution_message_path.html -- Richard Gaskin Fourth World LiveCode training and consulting: http://www.fourthworld.com Webzine for LiveCode developers: http://www.LiveCodeJournal.com LiveCode Journal blog: http://LiveCodejournal.com/blog.irv ___ use-livecode mailing list use-livecode@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@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: DELETE, PUT http
Hoi Mark, I'll have to add that myself then --Maarten On Sunday, April 3, 2011, Mark Schonewille m.schonewi...@economy-x-talk.com wrote: Hoi Maarten, POST and GET are supported. PUT and DELETE are not. Use LC's put url command to send data using the GET method. Use the post url command to send data using the POST method. POST example: put x=1y=2 into myData post myData to url http://domain.com/bla.php; GET example: put http://domain.com/bla.php?x=1y=2; into myUrl put url myUrl into myDataReturned Keep in mind that the put command in the second line of the last example has nothing to do with the PUT method used to connect to PHP (or iRev for that matter). -- Best regards, Mark Schonewille Economy-x-Talk Consulting and Software Engineering Homepage: http://economy-x-talk.com Twitter: http://twitter.com/xtalkprogrammer KvK: 50277553 New: Download the Installer Maker Plugin 1.6 for LiveCode here http://qery.us/ce On 3 apr 2011, at 16:14, Richard Gaskin wrote: Maarten Koopmans wrote: I there a way to have LIvecode do PUT and DELETE via http/https, hopefully witj digest authentication? So you can use the UI tools to integrate with REST services? I see great chanches here :-) PUT is well supported in addition to GET - check out the entry for PUT in the dictionary. AFAIK DELETE is only natively supported for FTP, but I would love to be wrong on that if anyone here knows otherwise. Suddenly firing a lot of questions, because after years of using LC/runrev for small things I want to do some more heavy lifting. Coming from a Scala/Scheme/Rebol background I get the event model, but I need to learn some library tricks (as with any new language) and get a model of how to do some larger scale programming. My dream would be to see Rebol offered as a subsystem within LiveCode, so we get the best of both worlds: LC's rich GUI model with Rebol's unmatched extensibility. -- Richard Gaskin Fourth World LiveCode training and consulting: http://www.fourthworld.com Webzine for LiveCode developers: http://www.LiveCodeJournal.com LiveCode Journal blog: http://LiveCodejournal.com/blog.irv ___ use-livecode mailing list use-livecode@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@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: The LC way for code libraries?
Richard, Thanks for reminding me of your article, lot of useful info in it. I'm currently inserting the script of a button as a front script. The script contains handlers for some standard messages (eg mouseUp, menuPick) that I need to grab before they on through the normal message path, but it also includes some custom handlers I've written which don't correspond to any of the standard messages. Is there any advantage to restructuring this so that the standard message handlers are inserted as front scripts but my custom handlers are used via the start using mechanism (after moving them to a stack script of course)? As far as building standalones, I currently set the stackfiles property of my application's main stack to the stack file holding my handlers which seems to work fine but I get the sense that you don't use the stackfiles but load the library stack manually at run time. If so, what are the advantages of doing it that way rather than using the stackfiles property? Thanks, Pete Molly's Revenge http://www.mollysrevenge.com On Sun, Apr 3, 2011 at 6:57 AM, Richard Gaskin ambassa...@fourthworld.comwrote: Maarten Koopmans wrote: What's a good way to create and store a non-UI code library in a LC project (a.k.a. business logic)? Say I'd want to implement a WebDAV client, which is a back-and-forth kind of flow. Or anu other protocol will do as a mental model Where would you store all the support functions for the protocol? Right now I can only see this happening on the stack level, but there I'm still fairly clueless. If you think you'll be using such a library in other projects you'll definitely have an easier time reusing it as a library. You could embed the library as a substack, but then keeping it updated every time you enhance it is a drag, so I tend to prefer to keep libraries in their own stack files, loaded at startup from a folder named Components I keep at the same level as the executable. This article may help you get started if you haven't read it already: http://www.fourthworld.com/embassy/articles/revolution_message_path.html -- Richard Gaskin Fourth World LiveCode training and consulting: http://www.fourthworld.com Webzine for LiveCode developers: http://www.LiveCodeJournal.com LiveCode Journal blog: http://LiveCodejournal.com/blog.irv ___ use-livecode mailing list use-livecode@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@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
OT: Colour Palette app accepted to Mac App Store
I am pleased to say that my small utility, Colour Palette has been accepted and is now available on the Apple Mac App Store. Created with LiveCode. Thanks for all the good tips here on how to get the app accepted on the App Store. Colour Palette makes it easy for web designers and graphic artists to keep track of colours used in various projects. You can build and arrange colour schemes for each project, tracking each colour purpose and having immediate access to the RGB and Hex values for each colour. You can watch a short video here with a link to the App Store as well http://bit.ly/eIMx6H ** Stewart Lynch CreaTECH Solutions sly...@createchsol.com 604.484.8499 Skype:StewartLynch There are only 10 kinds of people. Those who understand binary and those who don't. ** ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
The Perfect Plug-In
Does anyone have the perfect Definition of a plug-in? What are all of a plug-ins attributes and property settings? And after building a plug-in how do you test it? Cal ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Swapping one control type for another in a group
I've go an iOS scrolling control working really well, except I now need to replace the text field it uses to display the text that scrolls with a datagrid. The text field is part of a group, so how do I swap it out for the datagrid, without changing anything else? -- photos: http://gerryorkin.com ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode