Re: Selecting a Stack
The message box is setting the defaultstack. Sometimes I also have to set the topstack, depending on the situation. answer hi set the topstack to the short name of this stack set the defaultstack to the short name of this stack You may only need the defaultstack, but I don't have list magic so I'm not sure what it or your scripts are doing. On September 20, 2014 9:25:27 AM CDT, JB sund...@pacifier.com wrote: I juste tried it with the ask command and it did not work properly. Maybe the message box and files dialog become the editable window and when they close the card is the editable window while the answer and ask commands do not become editable windows and the messages are not sent properly. Either that or the message box is passing a message the others are not could be what is happening. I can make it work so it is not a big problem for me. John Balgenorth -- Jacqueline Landman Gay | jac...@hyperactivesw.com HyperActive Software | http://www.hyperactivesw.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
Re: replaceText() not working as expected for multiple lines
The ^ (circumflex or caret) outside square brackets means look only at the beginning of the target string., This is true in default mode of the PCRE library. There is a multiline mode which changes this behavior; the ^ will match the begining of every line. To be in multiline mode, just have to do what Peter said: add (?m) as a prefix of your regex. so you could use a repeat loop Don't need any repeat loop with replaceText(). or just don't use the ^. If I put… /Users/hawk/bk_clients/blue aardvark/blue_aardvark001.dhbk …into a variable tVar and use… put replaceText(tVar,/Users/hawk/bk_clients/,empty) into tVarOut …then tVarOut contains: blue aardvark/blue_aardvark001.dhbk or simply… replace /Users/hawk/bk_clients/ with empty in tVar Agree with you Paul, I would have done the same. No need of ^ in this context, and no need of the replaceText(); replace will do the job. Have a nice sunday, Thierry ___ 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
Replace First Occurrence of a Substring in a String
There must be an easy way to replace only the first occurrence of a substring within a string. The replaceText function replaces all occurrences of a string which matches the the supplied substring (actually the supplied regular expression). Obviously, it can be done with a loop, something like this: put Cat and Dog into tString repeat with tPos = 1 to the length of tString if char tPos of tString = a then put * into char tPos of tString exit repeat end if end repeat If there isn't an easier way, I'm sure many of you know a better way. Regards Peter ___ 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: Replace First Occurrence of a Substring in a String
Peter, put Cat and Dog into tString repeat with tPos = 1 to the length of tString if char tPos of tString = a then put * into char tPos of tString exit repeat end if end repeat How about this one? get offset( a, tString) if IT 0 then put * into char IT of tString Thierry Thierry Douez - http://sunny-tdz.com Maker of sunnYperl - sunnYmidi - sunnYmage - sunnYpdf ___ 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: Replace First Occurrence of a Substring in a String
a bit more generic... on mouseUp put Cat and Dog into tString put and into tPattern put the length of tPattern -1 into tLengh get offset( tPattern, tString) if IT 0 then put * into char IT to ( IT + tLengh) of tString put tString end mouseUp Thierry Thierry Douez - http://sunny-tdz.com Maker of sunnYperl - sunnYmidi - sunnYmage ___ 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: Replace First Occurrence of a Substring in a String
Many thanks Thierry. On 21 Sep 2014, at 16:40, Thierry Douez th.do...@gmail.com wrote: Peter, put Cat and Dog into tString repeat with tPos = 1 to the length of tString if char tPos of tString = a then put * into char tPos of tString exit repeat end if end repeat How about this one? get offset( a, tString) if IT 0 then put * into char IT of tString Thierry Thierry Douez - http://sunny-tdz.com Maker of sunnYperl - sunnYmidi - sunnYmage - sunnYpdf ___ 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: Replace First Occurrence of a Substring in a String
2014-09-21 10:55 GMT+02:00 Peter W A Wood peterwaw...@gmail.com: Many thanks Thierry. You are welcome :) and here is my preferate: put cat and dog into t if matchChunk( t, (and), p0, p1) then \ put AND into char p0 to p1 of t Regards, Thierry put Cat and Dog into tString repeat with tPos = 1 to the length of tString if char tPos of tString = a then put * into char tPos of tString exit repeat end if end repeat How about this one? get offset( a, tString) if IT 0 then put * into char IT of tString Thierry Thierry Douez - http://sunny-tdz.com Maker of sunnYperl - sunnYmidi - sunnYmage - sunnYpdf ___ 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: Selecting a Stack
Thanks for your help again, Jacque I tried every combination possible and included the TopLevel command you mentioned previously. I would not work. I can just use the go to next prev cd it will call the scripts topLevel would call/ It does the job but after you call the files dialog and maybe other things you cannot use the go to cd in the same handler. So I put this code in a field I am using but does not have any other handlers. on mouseUp LMRefresh end mouseUp on LMRefresh lock screen go next cd go previous cd end LMRefresh It works every time no matter how complex the code is in my answer handler. thanks again, John Balgenorth On Sep 21, 2014, at 12:31 AM, J. Landman Gay jac...@hyperactivesw.com wrote: The message box is setting the defaultstack. Sometimes I also have to set the topstack, depending on the situation. answer hi set the topstack to the short name of this stack set the defaultstack to the short name of this stack You may only need the defaultstack, but I don't have list magic so I'm not sure what it or your scripts are doing. On September 20, 2014 9:25:27 AM CDT, JB sund...@pacifier.com wrote: I juste tried it with the ask command and it did not work properly. Maybe the message box and files dialog become the editable window and when they close the card is the editable window while the answer and ask commands do not become editable windows and the messages are not sent properly. Either that or the message box is passing a message the others are not could be what is happening. I can make it work so it is not a big problem for me. John Balgenorth -- Jacqueline Landman Gay | jac...@hyperactivesw.com HyperActive Software | http://www.hyperactivesw.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 ___ 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
Printing a Sign
I need to make a sign that is about 4’ by 3’ and I would like some advice for tackling this project. I was thinking of just printing out the normal printer size pages and just taping them together and attaching the pages to a large piece of cardboard. Can anyone with experience with livecode printing give me some advice as to how to approach this problem? I find it interesting that I have been using livecode for years and this is the first time I have tried to print anything! Thanks in advance. Mike ___ 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: Printing a Sign
Can LC print to a plotter driver? I would think that most of the revPrint commands are driver neutral. Never tried it myself, and print to plotters all the time. Hmmm. Craig Newman -Original Message- From: Michael Doub miked...@gmail.com To: How To use LiveCode use LiveCode use-livecode@lists.runrev.com Sent: Sun, Sep 21, 2014 8:33 am Subject: Printing a Sign I need to make a sign that is about 4’ by 3’ and I would like some advice for tackling this project. I was thinking of just printing out the normal printer size pages and just taping them together and attaching the pages to a large piece of cardboard. Can anyone with experience with livecode printing give me some advice as to how to approach this problem? I find it interesting that I have been using livecode for years and this is the first time I have tried to print anything! Thanks in advance. Mike ___ 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
mobilepick as a live list
Has anybody created a live select list that updates as you type in a field? In theory, anyway, every time inputTextChanged would get called, it would call mobilePick, but I can't seem to be able to update the list as the user types more. -- On the first day, God created the heavens and the Earth On the second day, God created the oceans. On the third day, God put the animals on hold for a few hours, and did a little diving. And God said, This is good. ___ 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: replaceText() not working as expected for multiple lines
Maybe I'm misunderstanding, but can't you just do replace /Users/hawk/bk_clients/ with empty in myVariable and do it all at once with no regex? -- Peter Peter M. Brigham pmb...@gmail.com http://home.comcast.net/~pmbrig On Sep 20, 2014, at 4:02 PM, Mike Bonner wrote: You could change your shell call, and use sed inline to strip what you don't want before sending it back to LC Since I don't know how you're generating the list, i'm using find to do it on .mov files Quote the whole string, use a pipe to sed with the -e switch, surround the string for sed with single quotes. escape slashes with a backslash. also escape . with a backslash (necessary in my case since i'm using find from the current dir. If find was find / -name..., or a full path to the start location, it wouldn't be necessary to have the preceeding . The following example, finds all .mov files starting in the defaultfolder, and removes /skyDrive/ from the beginning. Replaces it with nothing (hence the // at the end) put shell(find . -name *.mov | sed -e 's/^\.\/skyDrive\///') into tDat On Sat, Sep 20, 2014 at 3:46 PM, Peter Haworth p...@lcsql.com wrote: You might try (?m) to switch on multiline mode at the start of your regex. I'm pretty sure that won't work though. LC makes you use a repeat loop to go through each line and issue the replaceText() against each one. Hope that Thierry chimes in with a workaround for this - he's the LC regex King. Pete lcSQL Software http://www.lcsql.com Home of lcStackBrowser http://www.lcsql.com/lcstackbrowser.html and SQLiteAdmin http://www.lcsql.com/sqliteadmin.html On Sat, Sep 20, 2014 at 1:05 PM, Dr. Hawkins doch...@gmail.com wrote: I have a variable with: /Users/hawk/bk_clients/blue aardvark/blue_aardvark001.dhbk /Users/hawk/bk_clients/pink panther/pink_panther_001.dhbk /Users/hawk/bk_clients/super chicken/super_chicken005.dhbk /Users/hawk/bk_clients/test5/test5001.dhbk which was obtained with a shell command and ls on OSX Using replaceText() to replace ^/Users/hawk/bk_clients/ with empty, I get blue aardvark/blue_aardvark001.dhbk /Users/hawk/bk_clients/pink panther/pink_panther_001.dhbk /Users/hawk/bk_clients/super chicken/super_chicken005.dhbk /Users/hawk/bk_clients/test5/test5001.dhbk That is, the ^ is only being applied to the variable as a whole, rather than to each line. Does this have to do with how livecode and OSX delimit lines? -- Dr. Richard E. Hawkins, Esq. (702) 508-8462 ___ 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 ___ 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: Usng an image to disable a group
Thanks Jacque and Scott. I tried your suggestions but unfortunately none of them quite do what I need in various ways. Using a graphic doesn't work because, although it blocks clicks to buttons in the underlying group, it still allows access to all field controls in it. Using an image blocks access to all the controls in the underlying group but I can't find a way to set the backgroundColor of the image to indicate that it's disabled. All in all, I think I'll just have to go with the simple solution of disabling the group and living with the way it looks. Pete lcSQL Software http://www.lcsql.com Home of lcStackBrowser http://www.lcsql.com/lcstackbrowser.html and SQLiteAdmin http://www.lcsql.com/sqliteadmin.html On Sat, Sep 20, 2014 at 7:33 PM, J. Landman Gay jac...@hyperactivesw.com wrote: You can put a white image over the group and set its blendlevel to 99. That makes it visually transparent but it will still respond to mouse clicks (or use any level you want.) Then put an empty mouseUp handler in the image to block clicks. On September 20, 2014 6:19:05 PM CDT, Peter Haworth p...@lcsql.com wrote: Thanks Larry. I tried your suggestion but it has the same problem as using an image - buttons underneath the button are blocked but fields can still be used. I guess I'll have to stick with disabling each group when necessary. Wish there was a way to affect the background color of a disabled group but don't think there is. Pete lcSQL Software http://www.lcsql.com Home of lcStackBrowser http://www.lcsql.com/lcstackbrowser.html and SQLiteAdmin http://www.lcsql.com/sqliteadmin.html On Sat, Sep 20, 2014 at 11:19 AM, la...@significantplanet.org wrote: Hi Peter, I'm not sure what you're exactly looking for in looks but I just now made a little test stack with colored buttons. You can adjust the blendlevel so that the group is as opaque or as transparent as you wish it to be. That's one idea. Larry - Original Message - From: Peter Haworth p...@lcsql.com To: How to use LiveCode use-livecode@lists.runrev.com Sent: Saturday, September 20, 2014 10:20 AM Subject: Usng an image to disable a group I have a stack with a series of groups on it. I need to control the order in which data is entered into the groups. The obvious/easy way is to enable/disable the groups as needed but I'm not happy with the way groups look when they are disabled. I vaguely remember a thread about using images to do this since clicks within the image don't make it through to the underlying controls. When I tried this, clicks on buttons that were under the image did not trigger any mouse events on them, as hoped, but field controls still get focus and I can type into them. It seems like this isn't going to work so looking for other ways to achieve this without having to go through every control in the group and adjusting their properties to disable them. Alternatively, is there a way to control how a group looks when it is disabled? Pete lcSQL Software http://www.lcsql.com Home of lcStackBrowser http://www.lcsql.com/lcstackbrowser.html and SQLiteAdmin http://www.lcsql.com/sqliteadmin.html ___ 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 -- Jacqueline Landman Gay | jac...@hyperactivesw.com HyperActive Software | http://www.hyperactivesw.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 ___ 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: mobilepick as a live list
Hi Mike, I do not know if it applies to your problem, but ... are you aware that the mobilePick, at moment, doesn't work on iPhone running last iOS 8 ??? It's a know bug : http://quality.runrev.com/show_bug.cgi?id=13484 , so, if you are working on iOS ... be careful ... Guglielmo Mike Kerner mailto:mikeker...@roadrunner.com 21 Sep 2014 16:56 pm Has anybody created a live select list that updates as you type in a field? In theory, anyway, every time inputTextChanged would get called, it would call mobilePick, but I can't seem to be able to update the list as the user types more. ___ 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: mobilepick as a live list
Luckily this app runs on ipads, but yes. On Sun, Sep 21, 2014 at 1:13 PM, Guglielmo Braguglia guglie...@braguglia.ch wrote: Hi Mike, I do not know if it applies to your problem, but ... are you aware that the mobilePick, at moment, doesn't work on iPhone running last iOS 8 ??? It's a know bug : http://quality.runrev.com/show_bug.cgi?id=13484 , so, if you are working on iOS ... be careful ... Guglielmo Mike Kerner mailto:mikeker...@roadrunner.com 21 Sep 2014 16:56 pm Has anybody created a live select list that updates as you type in a field? In theory, anyway, every time inputTextChanged would get called, it would call mobilePick, but I can't seem to be able to update the list as the user types more. ___ 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 -- On the first day, God created the heavens and the Earth On the second day, God created the oceans. On the third day, God put the animals on hold for a few hours, and did a little diving. And God said, This is good. ___ 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: ImageData restore problems
Hi Hugh, Am 20.09.2014 um 21:02 schrieb FlexibleLearning.com ad...@flexiblelearning.com: I have an embedded image, size 120Kb, and want to toggle between a non-compacted (120Kb) and a compacted (30Kb) thumbnail version... 1. I thumbnail the original image (data is still 120Kb as expected). 2. I store the TEXT of the resized image. 3. I compact the image by setting the imageData of the image to the imagedata of the image. The size reduces to 30Kb as expected. 4. I restore the saved binary data. Result: A blank image 1. I thumbnail the original image (data is still 120Kb as expected). 2. I store the IMAGEDATA of the resized image. 3. I compact the image by setting the imageData of the image to the imagedata of the image. The size reduces to 30Kb as expected. 4. I restore the saved ImageData. Result: 30kb, not 120Kb Question: What must I store in Step 2 above in order to re-instate the 120Kb data in the thumbnail? Baffled and a tad frustrated. what exactly did you script to store and re-instate your image(s)? And what version of LC are we talking about? There are many of them floating around currently 8-) Hugh Senior FLCo Best Klaus -- Klaus Major http://www.major-k.de kl...@major-k.de ___ 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: Usng an image to disable a group
Use a colored image instead of a white one and try different transparencies until you get the look you want. On September 21, 2014 12:00:49 PM CDT, Peter Haworth p...@lcsql.com wrote: Thanks Jacque and Scott. I tried your suggestions but unfortunately none of them quite do what I need in various ways. Using a graphic doesn't work because, although it blocks clicks to buttons in the underlying group, it still allows access to all field controls in it. Using an image blocks access to all the controls in the underlying group but I can't find a way to set the backgroundColor of the image to indicate that it's disabled. All in all, I think I'll just have to go with the simple solution of disabling the group and living with the way it looks. Pete lcSQL Software http://www.lcsql.com Home of lcStackBrowser http://www.lcsql.com/lcstackbrowser.html and SQLiteAdmin http://www.lcsql.com/sqliteadmin.html On Sat, Sep 20, 2014 at 7:33 PM, J. Landman Gay jac...@hyperactivesw.com wrote: You can put a white image over the group and set its blendlevel to 99. That makes it visually transparent but it will still respond to mouse clicks (or use any level you want.) Then put an empty mouseUp handler in the image to block clicks. On September 20, 2014 6:19:05 PM CDT, Peter Haworth p...@lcsql.com wrote: Thanks Larry. I tried your suggestion but it has the same problem as using an image - buttons underneath the button are blocked but fields can still be used. I guess I'll have to stick with disabling each group when necessary. Wish there was a way to affect the background color of a disabled group but don't think there is. Pete lcSQL Software http://www.lcsql.com Home of lcStackBrowser http://www.lcsql.com/lcstackbrowser.html and SQLiteAdmin http://www.lcsql.com/sqliteadmin.html On Sat, Sep 20, 2014 at 11:19 AM, la...@significantplanet.org wrote: Hi Peter, I'm not sure what you're exactly looking for in looks but I just now made a little test stack with colored buttons. You can adjust the blendlevel so that the group is as opaque or as transparent as you wish it to be. That's one idea. Larry - Original Message - From: Peter Haworth p...@lcsql.com To: How to use LiveCode use-livecode@lists.runrev.com Sent: Saturday, September 20, 2014 10:20 AM Subject: Usng an image to disable a group I have a stack with a series of groups on it. I need to control the order in which data is entered into the groups. The obvious/easy way is to enable/disable the groups as needed but I'm not happy with the way groups look when they are disabled. I vaguely remember a thread about using images to do this since clicks within the image don't make it through to the underlying controls. When I tried this, clicks on buttons that were under the image did not trigger any mouse events on them, as hoped, but field controls still get focus and I can type into them. It seems like this isn't going to work so looking for other ways to achieve this without having to go through every control in the group and adjusting their properties to disable them. Alternatively, is there a way to control how a group looks when it is disabled? Pete lcSQL Software http://www.lcsql.com Home of lcStackBrowser http://www.lcsql.com/lcstackbrowser.html and SQLiteAdmin http://www.lcsql.com/sqliteadmin.html ___ 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 -- Jacqueline Landman Gay | jac...@hyperactivesw.com HyperActive Software | http://www.hyperactivesw.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 ___ 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 -- Jacqueline Landman Gay | jac...@hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com
Re: Printing a Sign
On Sun, Sep 21, 2014 at 5:31 AM, Michael Doub miked...@gmail.com wrote: I need to make a sign that is about 4’ by 3’ and I would like some advice for tackling this project. I was thinking of just printing out the normal printer size pages and just taping them together and attaching the pages to a large piece of cardboard. Check and see if the printer driver you have can do this... make the 'page' that is to be printed the size of the final output and see what options the printer driver shows. It might allow the content to be printed on several pages... I've never done this either but this is how I would start. I don't know what the limits are on the size of a layout page in Livecode, but this seems reasonable. If the printer driver can't deal with it, then you'll have to figure out a way to take snapshots of the various areas (with overlap) that you then print one by one. I'm sure it could be done. But there's probably an app one can buy for less than a hundred that will do the same thing. How much is your time worth?? this says you can do it in Acrobat reader... http://helpx.adobe.com/acrobat/kb/print-posters-banners-acrobat-reader.html *--* *Stephen Barncard - San Francisco Ca. USA - Deeds Not Words* ___ 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: ImageData restore problems
On 9/20/2014, 2:02 PM, FlexibleLearning.com wrote: I have an embedded image, size 120Kb, and want to toggle between a non-compacted (120Kb) and a compacted (30Kb) thumbnail version... 1. I thumbnail the original image (data is still 120Kb as expected). 2. I store the TEXT of the resized image. 3. I compact the image by setting the imageData of the image to the imagedata of the image. The size reduces to 30Kb as expected. 4. I restore the saved binary data. Result: A blank image 1. I thumbnail the original image (data is still 120Kb as expected). 2. I store the IMAGEDATA of the resized image. 3. I compact the image by setting the imageData of the image to the imagedata of the image. The size reduces to 30Kb as expected. 4. I restore the saved ImageData. Result: 30kb, not 120Kb Question: What must I store in Step 2 above in order to re-instate the 120Kb data in the thumbnail? set the cImg of this cd to the text of img 1 -- store it -- now resize the image as a thumbnail here set the imagedata of img 1 to the imagedata of img 1 -- reduce the size/compress it set the text of img 1 to the cImg of this cd -- restore original -- optional: set the width of img 1 to the formattedwidth of img 1 set the height of img 1 to the formattedheight of img 1 -- Jacqueline Landman Gay | jac...@hyperactivesw.com HyperActive Software | http://www.hyperactivesw.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
Re: Field retrieved from a Mongo document display wrong characters
On 9/19/2014, 4:42 PM, Javier Miranda wrote: I have a local Mongo Server and a LiveCode Stack to work as front end to it. When I enter Se cambiarán los bornes (please note the accent), in a LiveCode field, the text is properly shown, inserting it as a document to a Mongo collection also works fine, the field is saved OK in the document. I can see it using the Shell. The problem is that, when I retrieve the document back to LiveCode, the field receiving the field shows: Se cambiarÃan los bornes. Trying to find the reason I found that the encoding of field resul , the field receiving the accented string is Native. Can you help finding the way to make this strings show the right characters? I don't know anything about Mongo, but if it is sending back UTF8, then you need to convert it to UTF16: function convertFromUTF8 pString -- convert a server UTF8 string to LC return unidecode(uniencode(pString,UTF8)) end convertFromUTF8 -- Jacqueline Landman Gay | jac...@hyperactivesw.com HyperActive Software | http://www.hyperactivesw.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
[OT] A Modern Typeface For Programmers
Hello Folks, I have always been looking for a useful font for coding. Via Twitter I received this link http://input.fontbureau.com and I like to share this information. It's free for private use. Regards,, Erik ___ 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: [OT] A Modern Typeface For Programmers
Thanks Erik. Verstuurd vanaf mijn iPad Op 21-sep.-2014 om 21:48 heeft Erik Beugelaar ebeugel...@gmail.com het volgende geschreven: Hello Folks, I have always been looking for a useful font for coding. Via Twitter I received this link http://input.fontbureau.com and I like to share this information. It's free for private use. Regards,, Erik ___ 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
Does LC Have A touchLoc() Function?
Does anyone know if LiveCode has touch-based function equivalent of mouseLoc? I'm thinking along the lines of touchLoc(id). I'm not seeing anything in dictionaries or release notes, but it's possible I'm missing it. Currently, there doesn't seem to be any way to poll the current active touches, which is something that has always been possible on desktop with the mouseLoc function. Using touchMove is not an option, because this only fires when there's movement of some kind. I'd like to open a feature request for a touchLoc(id) function that would return the loc of a touch id, and a touchLocs() function which would return all currently active touch ids and their locations. Unless this already exists, or there's some other way of getting this information and I'm just not seeing it. Thanks Regards, Scott Rossi Creative Director Tactile Media, UX/UI Design ___ 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
Q: Standalone with drag and drop works on one Windows machine but not two others… why?
Q: Standalone with drag and drop works on one Windows machine but not two others… why? The code is like this: on dragEnter set the allowabledragactions to copy,link set the dragAction to copy set the hilite of me to true end dragEnter on dragDrop if the dragdata[files] is not empty then put the dragdata[files] into gDroppedData DoMyStuff end dragDrop This code works fine on my Macs, and fine on a laptop running Windows 7; but on another Windows 7 laptop, and yet another running Windows 8, the stop sign cursor appears when I drag a folder to the button. The desktop behavior shows the drag being interpreted, with the cursor changing to the Copy icon, but when it gets to my app's window it's a stop sign. Yet, on the other Windows 7 machine it's perfect. It's more annoying that it works on one Windows than if it worked on none! Thanks for any help. Joe F. ___ 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: Usng an image to disable a group
Hi Peter, I guess I assumed when you said you were using an image to block controls that the image was of the group. Can you take a snapshot of the group and then use that image as the disabled looking group by blending it and hide the real group? On Sep 20, 2014, at 9:20 AM, Peter Haworth wrote: I have a stack with a series of groups on it. I need to control the order in which data is entered into the groups. The obvious/easy way is to enable/disable the groups as needed but I'm not happy with the way groups look when they are disabled. I vaguely remember a thread about using images to do this since clicks within the image don't make it through to the underlying controls. When I tried this, clicks on buttons that were under the image did not trigger any mouse events on them, as hoped, but field controls still get focus and I can type into them. It seems like this isn't going to work so looking for other ways to achieve this without having to go through every control in the group and adjusting their properties to disable them. Alternatively, is there a way to control how a group looks when it is disabled? Pete lcSQL Software http://www.lcsql.com Home of lcStackBrowser http://www.lcsql.com/lcstackbrowser.html and SQLiteAdmin http://www.lcsql.com/sqliteadmin.html ___ 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
reading a file
Hello, Could anyone please explain why the following script does not work? (It puts into the field the name of the selected file and not the contents of the file. on mouseUp answer file Select a file. put quote it quote into thisFile open file thisFile read from file thisFile until EOF put it into field myOutput close file thisFile end mouseUp Thanks, Larry ___ 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: reading a file
replace: put quote it quote into thisFile with put it into thisFile On Sunday, September 21, 2014 6:03 PM, la...@significantplanet.org la...@significantplanet.org wrote: Hello, Could anyone please explain why the following script does not work? (It puts into the field the name of the selected file and not the contents of the file. on mouseUp answer file Select a file. put quote it quote into thisFile open file thisFile read from file thisFile until EOF put it into field myOutput close file thisFile end mouseUp Thanks, Larry ___ 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: reading a file
Hi, There is no file quote it quote, but there is a file it. Quotes are used to define a string in a script. If you put quotes in a variable, they become part of that string. The following script will work: on mouseUp answer file Select a file. put it into thisFile open file thisFile read from file thisFile until EOF put it into field myOutput close file thisFile end mouseUp -- 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 9/22/2014 00:02, la...@significantplanet.org wrote: on mouseUp answer file Select a file. put quote it quote into thisFile open file thisFile read from file thisFile until EOF put it into field myOutput close file thisFile end mouseUp ___ 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: reading a file
Thanks Alain, Why is it that if I explicitly want to open a file, I have to put quotes around the name, but if I put the name in a variable, I do not need the quotes? Thank you again, Larry - Original Message - From: Alain Farmer alain_far...@yahoo.com To: How to use LiveCode use-livecode@lists.runrev.com Sent: Sunday, September 21, 2014 4:09 PM Subject: Re: reading a file replace: put quote it quote into thisFile with put it into thisFile On Sunday, September 21, 2014 6:03 PM, la...@significantplanet.org la...@significantplanet.org wrote: Hello, Could anyone please explain why the following script does not work? (It puts into the field the name of the selected file and not the contents of the file. on mouseUp answer file Select a file. put quote it quote into thisFile open file thisFile read from file thisFile until EOF put it into field myOutput close file thisFile end mouseUp Thanks, Larry ___ 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
Re: reading a file
Larry -- have you tried: open file thisFile for read Regards, Scott Rossi Creative Director Tactile Media, UX/UI Design On 9/21/14 3:02 PM, la...@significantplanet.org la...@significantplanet.org wrote: Hello, Could anyone please explain why the following script does not work? (It puts into the field the name of the selected file and not the contents of the file. on mouseUp answer file Select a file. put quote it quote into thisFile open file thisFile read from file thisFile until EOF put it into field myOutput close file thisFile end mouseUp Thanks, Larry ___ 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: reading a file
in reply to: Why is it that if I explicitly want to open a file, I have to put quotes around the name, but if I put the name in a variable, I do not need the quotes? unquoted names will be interpreted as variables ; with quotes, interpreter knows that it is a literal STRING. being in a variable is self-delimiting; no need for quotes. On Sunday, September 21, 2014 6:16 PM, la...@significantplanet.org la...@significantplanet.org wrote: Thanks Alain, Why is it that if I explicitly want to open a file, I have to put quotes around the name, but if I put the name in a variable, I do not need the quotes? Thank you again, Larry - Original Message - From: Alain Farmer alain_far...@yahoo.com To: How to use LiveCode use-livecode@lists.runrev.com Sent: Sunday, September 21, 2014 4:09 PM Subject: Re: reading a file replace: put quote it quote into thisFile with put it into thisFile On Sunday, September 21, 2014 6:03 PM, la...@significantplanet.org la...@significantplanet.org wrote: Hello, Could anyone please explain why the following script does not work? (It puts into the field the name of the selected file and not the contents of the file. on mouseUp answer file Select a file. put quote it quote into thisFile open file thisFile read from file thisFile until EOF put it into field myOutput close file thisFile end mouseUp Thanks, Larry ___ 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 ___ 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: Usng an image to disable a group
Thanks Jacque, I'll give that a try. Pete Pete lcSQL Software http://www.lcsql.com Home of lcStackBrowser http://www.lcsql.com/lcstackbrowser.html and SQLiteAdmin http://www.lcsql.com/sqliteadmin.html On Sun, Sep 21, 2014 at 10:55 AM, J. Landman Gay jac...@hyperactivesw.com wrote: Use a colored image instead of a white one and try different transparencies until you get the look you want. On September 21, 2014 12:00:49 PM CDT, Peter Haworth p...@lcsql.com wrote: Thanks Jacque and Scott. I tried your suggestions but unfortunately none of them quite do what I need in various ways. Using a graphic doesn't work because, although it blocks clicks to buttons in the underlying group, it still allows access to all field controls in it. Using an image blocks access to all the controls in the underlying group but I can't find a way to set the backgroundColor of the image to indicate that it's disabled. All in all, I think I'll just have to go with the simple solution of disabling the group and living with the way it looks. Pete lcSQL Software http://www.lcsql.com Home of lcStackBrowser http://www.lcsql.com/lcstackbrowser.html and SQLiteAdmin http://www.lcsql.com/sqliteadmin.html On Sat, Sep 20, 2014 at 7:33 PM, J. Landman Gay jac...@hyperactivesw.com wrote: You can put a white image over the group and set its blendlevel to 99. That makes it visually transparent but it will still respond to mouse clicks (or use any level you want.) Then put an empty mouseUp handler in the image to block clicks. On September 20, 2014 6:19:05 PM CDT, Peter Haworth p...@lcsql.com wrote: Thanks Larry. I tried your suggestion but it has the same problem as using an image - buttons underneath the button are blocked but fields can still be used. I guess I'll have to stick with disabling each group when necessary. Wish there was a way to affect the background color of a disabled group but don't think there is. Pete lcSQL Software http://www.lcsql.com Home of lcStackBrowser http://www.lcsql.com/lcstackbrowser.html and SQLiteAdmin http://www.lcsql.com/sqliteadmin.html On Sat, Sep 20, 2014 at 11:19 AM, la...@significantplanet.org wrote: Hi Peter, I'm not sure what you're exactly looking for in looks but I just now made a little test stack with colored buttons. You can adjust the blendlevel so that the group is as opaque or as transparent as you wish it to be. That's one idea. Larry - Original Message - From: Peter Haworth p...@lcsql.com To: How to use LiveCode use-livecode@lists.runrev.com Sent: Saturday, September 20, 2014 10:20 AM Subject: Usng an image to disable a group I have a stack with a series of groups on it. I need to control the order in which data is entered into the groups. The obvious/easy way is to enable/disable the groups as needed but I'm not happy with the way groups look when they are disabled. I vaguely remember a thread about using images to do this since clicks within the image don't make it through to the underlying controls. When I tried this, clicks on buttons that were under the image did not trigger any mouse events on them, as hoped, but field controls still get focus and I can type into them. It seems like this isn't going to work so looking for other ways to achieve this without having to go through every control in the group and adjusting their properties to disable them. Alternatively, is there a way to control how a group looks when it is disabled? Pete lcSQL Software http://www.lcsql.com Home of lcStackBrowser http://www.lcsql.com/lcstackbrowser.html and SQLiteAdmin http://www.lcsql.com/sqliteadmin.html ___ 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 -- Jacqueline Landman Gay | jac...@hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
Re: Usng an image to disable a group
Hi Eric, I tried that but the image has no background color so changing the blending doesn't change it's appearance (the underlying group just shows through). Using a snapshot would work great if I could just find a way to change the background color of the resulting image but there doesn't appear to be a way to do that. Pete lcSQL Software http://www.lcsql.com Home of lcStackBrowser http://www.lcsql.com/lcstackbrowser.html and SQLiteAdmin http://www.lcsql.com/sqliteadmin.html On Sun, Sep 21, 2014 at 2:13 PM, Eric Corbett e...@canelasoftware.com wrote: Hi Peter, I guess I assumed when you said you were using an image to block controls that the image was of the group. Can you take a snapshot of the group and then use that image as the disabled looking group by blending it and hide the real group? On Sep 20, 2014, at 9:20 AM, Peter Haworth wrote: I have a stack with a series of groups on it. I need to control the order in which data is entered into the groups. The obvious/easy way is to enable/disable the groups as needed but I'm not happy with the way groups look when they are disabled. I vaguely remember a thread about using images to do this since clicks within the image don't make it through to the underlying controls. When I tried this, clicks on buttons that were under the image did not trigger any mouse events on them, as hoped, but field controls still get focus and I can type into them. It seems like this isn't going to work so looking for other ways to achieve this without having to go through every control in the group and adjusting their properties to disable them. Alternatively, is there a way to control how a group looks when it is disabled? Pete lcSQL Software http://www.lcsql.com Home of lcStackBrowser http://www.lcsql.com/lcstackbrowser.html and SQLiteAdmin http://www.lcsql.com/sqliteadmin.html ___ 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
Re: Usng an image to disable a group
Hey Pete: It sounds like there's some detail missing here. I haven't followed all the posts on this, but from what you described, it shouldn't matter if whatever you're capturing has a background or not. If you're capturing multiple overlaid objects, you should either be capturing a snapshot of the group of all the objects, or from the card so all the objects appear composited together. Are you intentionally trying to leave gaps in the snapshot? If not, a capture of the card should work. Regards, Scott Rossi Creative Director Tactile Media, UX/UI Design On 9/21/14 3:44 PM, Peter Haworth p...@lcsql.com wrote: Hi Eric, I tried that but the image has no background color so changing the blending doesn't change it's appearance (the underlying group just shows through). Using a snapshot would work great if I could just find a way to change the background color of the resulting image but there doesn't appear to be a way to do that. ___ 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: reading a file
Hi Larry, Even shorter on mouseUp answer file Select a file. put url(file: it) into fld myOutput end mouseUp Of course that is only good for a text file. Simon -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/reading-a-file-tp4683550p4683559.html Sent from the Revolution - User mailing list archive at Nabble.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
Re: Usng an image to disable a group
Hi Scott, Yes, it's a little difficult to explain. Basically I'm trying to block access to groups on a card until allowed by script. Right now, I do it by disabling/enabling the groups when appropriate. That works just fine but I was trying to find a better way to visually indicate that a group is disabled instead of the faded grey color that LC uses. Exporting a snapshot of each of these groups it their enabled state, positioning them over the groups and showing/hiding them is how I'm trying to handle it but I had hoped to be able to change the background color of the image to indicate the group is disabled. At this point, I don't think it's worth the effort to pursue this any further so I'll go back to disabling/enabling the groups. The card has three groups on it, each with various controls in it, field, buttons, etc. Currently, when the card opens, the first group is enabled and the other two are disabled. The user fills in data in the first group, and clicks on a button that adds the data to a database. At that point the second group is enabled and the user fills in data in that one, clicks a button to add it to the database and the third group is enabled. So basically just controlling the order in which data is entered. That all works fine right now but I don't particularly like the way a disabled group looks and since there doesn't seem to be any way to control that, I started down this path of trying to use graphics and images to do it (and wish I hadn't :-). I ruled out a graphic because it doesn't block users from typing into any field controls there might be in the group. Unless it's opaque of course but then the user can't even see that there's a group there. I've been working with a snapshot image of the second and third groups positioned over the top of them and that does indeed stop the user from doing anything with those groups until the image is removed. However, other than the user not being to use any controls in the group, there's no visual indication that the group is disabled and that's what I was hoping to achieve by somehow setting a background color/blendlevel of the image but it seems setting the backgroundcolor of an image has no effect. I tried all the other colors in the Property Inspector for the graphic but non of them affect it's background Pete lcSQL Software http://www.lcsql.com Home of lcStackBrowser http://www.lcsql.com/lcstackbrowser.html and SQLiteAdmin http://www.lcsql.com/sqliteadmin.html On Sun, Sep 21, 2014 at 4:52 PM, Scott Rossi sc...@tactilemedia.com wrote: Hey Pete: It sounds like there's some detail missing here. I haven't followed all the posts on this, but from what you described, it shouldn't matter if whatever you're capturing has a background or not. If you're capturing multiple overlaid objects, you should either be capturing a snapshot of the group of all the objects, or from the card so all the objects appear composited together. Are you intentionally trying to leave gaps in the snapshot? If not, a capture of the card should work. Regards, Scott Rossi Creative Director Tactile Media, UX/UI Design On 9/21/14 3:44 PM, Peter Haworth p...@lcsql.com wrote: Hi Eric, I tried that but the image has no background color so changing the blending doesn't change it's appearance (the underlying group just shows through). Using a snapshot would work great if I could just find a way to change the background color of the resulting image but there doesn't appear to be a way to do that. ___ 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: Usng an image to disable a group
Did you try using a colorOverlay effect on the snapshot and/or group? You can choose any color you want, and set the opacity of the effect. Regards, Scott Rossi Creative Director Tactile Media UX/UI Design On Sep 21, 2014, at 6:29 PM, Peter Haworth p...@lcsql.com wrote: Basically I'm trying to block access to groups on a card until allowed by script. Right now, I do it by disabling/enabling the groups when appropriate. That works just fine but I was trying to find a better way to visually indicate that a group is disabled instead of the faded grey color that LC uses. ___ 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: Usng an image to disable a group
I¹m with Scott. A similar approach I sometimes use is to chuck a plain graphic object (black or other colour) over the group and adjust its opacity to give the desired effect. It¹s then just a matter of hiding or showing the graphic, which is no more difficult the enabling or disabling the group. Terry... On 22/09/2014 11:38 am, Scott Rossi sc...@tactilemedia.com wrote: Did you try using a colorOverlay effect on the snapshot and/or group? You can choose any color you want, and set the opacity of the effect. Regards, Scott Rossi Creative Director Tactile Media UX/UI Design On Sep 21, 2014, at 6:29 PM, Peter Haworth p...@lcsql.com wrote: Basically I'm trying to block access to groups on a card until allowed by script. Right now, I do it by disabling/enabling the groups when appropriate. That works just fine but I was trying to find a better way to visually indicate that a group is disabled instead of the faded grey color that LC uses. ___ 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: Printing a Sign
On Sun, Sep 21, 2014 at 7:08 AM, dunb...@aol.com wrote: an LC print to a plotter driver? I would think that most of the revPrint commands are driver neutral. Never tried it myself, and print to plotters all the time. Hmmm. Craig Newman The plotters I've worked with had an RS-232 interface and used a text based command set. One could send it commands to print text directly or plot points. Perhaps newer ones are different but most are PC based. I used a Hypercard stack to make DAT labels on AM blanks. *--* *Stephen Barncard - San Francisco Ca. USA - Deeds Not Words* ___ 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
Any way to do this?
I have an app that allows the user to click on four buttons for adding eight images on four different cards to a clipboard. Any there anyway to program it so that the user would only have to press one button for the eight images to be put on the clipboard? Sent from my iPad ___ 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: Any way to do this?
Charles - do you want the images to be Œstored¹ separately or as a single tiled image? Terry... On 22/09/2014 12:48 pm, Charles Szasz csz...@me.com wrote: I have an app that allows the user to click on four buttons for adding eight images on four different cards to a clipboard. Any there anyway to program it so that the user would only have to press one button for the eight images to be put on the clipboard? Sent from my iPad ___ 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: Any way to do this?
Terry, Thanks for responding to my posting! I want the images to be stored as separate images so they be pasted into a document as separated images. Sent from my iPad ___ 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: Any way to do this?
OK - this is all untested so no guarantees. Firstly create an array and populate it with the eight images (put image 1 into tImages[1] etc.) then store that in a global variable or a custom property or whatever. Then handle the clipboard manipulation and pasting using a pastekey handler So, assuming your array is named pArray then... local pArray on pasteKey put the keys of pArray into tImages # present the user with some method of selecting which image they want to paste (e.g. a list field or an answer dialog) # get the relevant key (tKey) set the clipboardData[image] to pArray[tKey] # delete the key from pArray paste end pasteKey Does that help? Terry... On 22/09/2014 2:26 pm, Charles Szasz csz...@me.com wrote: Terry, Thanks for responding to my posting! I want the images to be stored as separate images so they be pasted into a document as separated images. Sent from my iPad ___ 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: Does LC Have A touchLoc() Function?
Um, I believe mouseloc works in IOS. Or am I misunderstanding what you are asking for. On Sun, Sep 21, 2014 at 1:09 PM, Scott Rossi sc...@tactilemedia.com wrote: Does anyone know if LiveCode has touch-based function equivalent of mouseLoc? I'm thinking along the lines of touchLoc(id). I'm not seeing anything in dictionaries or release notes, but it's possible I'm missing it. Currently, there doesn't seem to be any way to poll the current active touches, which is something that has always been possible on desktop with the mouseLoc function. Using touchMove is not an option, because this only fires when there's movement of some kind. I'd like to open a feature request for a touchLoc(id) function that would return the loc of a touch id, and a touchLocs() function which would return all currently active touch ids and their locations. Unless this already exists, or there's some other way of getting this information and I'm just not seeing it. Thanks Regards, Scott Rossi Creative Director Tactile Media, UX/UI Design ___ 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 -- Regards, Howard Bornstein --- www.designeq.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