Re: mobilepick as a live list

2014-09-21 Thread Gerry
Yes, using a native field and a datagrid, and listing matching records pulled from a sqlite database. g On 22 Sep 2014, at 12:56 am, Mike Kerner wrote: > Has anybody created a live select list that updates as you type in a field? ___ use-livecode

Re: Usng an image to "disable" a group

2014-09-21 Thread J. Landman Gay
I think you're making this too hard. :-) Create an image object. Use the paint bucket to fill it with a color. Set its transparency, and size it over a group. Hide and show it as needed. This will create a sort of tinted overlay that allows the original group to show through but will blo

Re: Does LC Have A touchLoc() Function?

2014-09-21 Thread Howard Bornstein
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 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 i

Re: Any way to do this?

2014-09-21 Thread Terry Judd
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, assum

Re: Any way to do this?

2014-09-21 Thread Charles Szasz
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 t

Re: Any way to do this?

2014-09-21 Thread Terry Judd
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" 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 >prog

Any way to do this?

2014-09-21 Thread Charles Szasz
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 ___

Re: Printing a Sign

2014-09-21 Thread stephen barncard
On Sun, Sep 21, 2014 at 7:08 AM, 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

Re: Usng an image to "disable" a group

2014-09-21 Thread Terry Judd
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.

Re: Usng an image to "disable" a group

2014-09-21 Thread Scott Rossi
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 wrote: > > Basically I'm trying to block

Re: Usng an image to "disable" a group

2014-09-21 Thread Peter Haworth
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 i

Re: reading a file

2014-09-21 Thread Simon
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 S

Re: Usng an image to "disable" a group

2014-09-21 Thread Scott Rossi
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

Re: Usng an image to "disable" a group

2014-09-21 Thread Peter Haworth
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

Re: Usng an image to "disable" a group

2014-09-21 Thread Peter Haworth
Thanks Jacque, I'll give that a try. Pete Pete lcSQL Software Home of lcStackBrowser and SQLiteAdmin On Sun, Sep 21, 2014 at 10:55 AM, J. Landman Gay wrote: > Use a colored image instead of

Re: reading a file

2014-09-21 Thread Alain Farmer
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

Re: reading a file

2014-09-21 Thread Scott Rossi
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" wrote: >Hello, > >Could anyone please explain why the following script does not work? >(It puts into the field the na

Re: reading a file

2014-09-21 Thread larry
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" To: "How to use LiveCode" Sent: Sunday, September

Re: reading a file

2014-09-21 Thread Mark Schonewille
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 thisF

Re: reading a file

2014-09-21 Thread Alain Farmer
replace: put quote & it & quote into thisFile with put it into thisFile On Sunday, September 21, 2014 6:03 PM, "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 c

reading a file

2014-09-21 Thread larry
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

Re: Usng an image to "disable" a group

2014-09-21 Thread Eric Corbett
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

Q: Standalone with drag and drop works on one Windows machine but not two others… why?

2014-09-21 Thread sty...@roguemusic.com
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

Does LC Have A touchLoc() Function?

2014-09-21 Thread Scott Rossi
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,

Re: [OT] A Modern Typeface For Programmers

2014-09-21 Thread Marc Van Cauwenberghe
Thanks Erik. Verstuurd vanaf mijn iPad > Op 21-sep.-2014 om 21:48 heeft Erik Beugelaar 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

[OT] A Modern Typeface For Programmers

2014-09-21 Thread Erik Beugelaar
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-livecod

Re: Field retrieved from a Mongo document display wrong characters

2014-09-21 Thread J. Landman Gay
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

Re: ImageData restore problems

2014-09-21 Thread J. Landman Gay
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

Re: Printing a Sign

2014-09-21 Thread stephen barncard
On Sun, Sep 21, 2014 at 5:31 AM, Michael Doub 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 pi

Re: Usng an image to "disable" a group

2014-09-21 Thread J. Landman Gay
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 wrote: >Thanks Jacque and Scott. I tried your suggestions but unfortunately >none >of them quite do what I need in various ways. >

Re: ImageData restore problems

2014-09-21 Thread Klaus major-k
Hi Hugh, Am 20.09.2014 um 21:02 schrieb 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

Re: mobilepick as a live list

2014-09-21 Thread Mike Kerner
Luckily this app runs on ipads, but yes. On Sun, Sep 21, 2014 at 1:13 PM, Guglielmo Braguglia 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://qualit

Re: mobilepick as a live list

2014-09-21 Thread Guglielmo Braguglia
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 Kern

Re: Usng an image to "disable" a group

2014-09-21 Thread Peter Haworth
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 acc

Re: replaceText() not working as expected for multiple lines

2014-09-21 Thread Peter M. Brigham
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 yo

mobilepick as a live list

2014-09-21 Thread Mike Kerner
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

Re: Printing a Sign

2014-09-21 Thread dunbarx
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 To: How To use LiveCode use LiveCode Sent: Sun, Sep 21, 2014 8

Printing a Sign

2014-09-21 Thread Michael Doub
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

Re: Selecting a Stack

2014-09-21 Thread JB
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 mayb

Re: Replace First Occurrence of a Substring in a String

2014-09-21 Thread Thierry Douez
2014-09-21 10:55 GMT+02:00 Peter W A Wood : > 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 >>>

Re: Replace First Occurrence of a Substring in a String

2014-09-21 Thread Peter W A Wood
Many thanks Thierry. On 21 Sep 2014, at 16:40, Thierry Douez 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 >>

Re: Replace First Occurrence of a Substring in a String

2014-09-21 Thread Thierry Douez
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 ---

Re: Replace First Occurrence of a Substring in a String

2014-09-21 Thread Thierry Douez
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 rep

Replace First Occurrence of a Substring in a String

2014-09-21 Thread Peter W A Wood
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

Re: replaceText() not working as expected for multiple lines

2014-09-21 Thread Thierry Douez
> 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

Re: Selecting a Stack

2014-09-21 Thread J. Landman Gay
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 mag