Re: Trouble with 'there is a'

2012-01-27 Thread Graham Samuel
Thanks to those who replied to point out a gross stupidity on my part - the example I gave wasn't a legal LiveCode statement. I was too tired to notice. Sorry for the waste of bandwidth. I found the response of the message box mysterious but at least I'll recognise it next time. My real script

errors trapped inside data grids?

2012-01-27 Thread Ken Corey
Hi All, I noticed something *very* strange, and I was hoping someone could either confirm or set me straight. I'm implementing dataGrids for the first time, so I'm reading a lot of the lessons and tutorials (since that's the only documentation, seemingly). I wanted to do something with the

Re: Card Buttons in Windows

2012-01-27 Thread Ken Ray
On Jan 26, 2012, at 11:47 PM, Peter Bogdanoff wrote: Hi, I have a bizarre issue that I can't figure out. I have a stack created in OS X that I brought over to Windows. In Windows, card buttons are 12% wider and moved to the right 7 pixels. For example, 4 card buttons, touching side

Re: How to store some data in my stack

2012-01-27 Thread Ken Ray
On Jan 27, 2012, at 1:57 AM, Takashi Yoshino wrote: Hi, Ken Are you *really* using curly quotes around documents and testFile.txt? The only reason I ask is that you have straight quotes around Data and no file yet!, so I figured I'd check. If so, that might be the problem (although I'd

Re: Trouble with 'there is a'

2012-01-27 Thread Ken Ray
My real script did have two problem but they were quite different, and might be of interest. I'm glad you brought these up - for others reading this there are some best practices to learn about these things: 1. I had constructed a Windows-style path with \ characters to fit in with a

Re: Cloning stack reset object IDs?

2012-01-27 Thread Richard Gaskin
Pete wrote: I just cloned a datagrid to see what would happen. I'm afraid all the control ids just carried on from the last one used in the original datagrid so using clone doesn't help. Was that just the dataGrid group or the whole stack? Since the stack governs the IDs of objects within

iOS: multiline (UITextView) control weirdness

2012-01-27 Thread Chris Sheffield
Okay, time for another one. Hopefully someone has experienced this and has a solution. I've got an iPad app, portrait only. At one point I'm creating a multiline text control (UITextView) for input. The control is created near the bottom of the screen. So when the keyboard pops up, the input

Re:Revlets on the web

2012-01-27 Thread Jim Hurley
I guess the question must be asked: Given the lack of attention to the problem of running Revlets on the web, is RunRev abandoning Revlets, or just very busy with things that have a higher priority? I can see that they have a lot on their plate. The neglect of the User Samples application is

Re: Revlets on the web

2012-01-27 Thread William de Smet
Hi Jim, There was a question lately in one of their surveys about HTML5. I guess they are thinking about going this way with revlets. For now I think they shouldn't sell it because it doesn't work well (or not at all). Greetings, William 2012/1/27 Jim Hurley jhurley0...@sbcglobal.net: I

Re: Cloning stack reset object IDs?

2012-01-27 Thread Pete
Hi Richard, Just the datagrid group, not the stack itself. Here's what I see when cloning. If I clone a card, the controls on it are given a new set of IDs. If I clone a stack, the controls within the new stack retain the IDs from the original stack. I guess that's what I would have expected.

Re: errors trapped inside data grids?

2012-01-27 Thread Bob Sneidar
I think some errors are trapped so that they do not cause a code break. Check the result to see if it contains anything. Bob On Jan 27, 2012, at 4:53 AM, Ken Corey wrote: Hi All, I noticed something *very* strange, and I was hoping someone could either confirm or set me straight. I'm

Re: Trouble with 'there is a'

2012-01-27 Thread Bob Sneidar
I remember a long time ago in a Revolution conference far, far away, someone gave a class on good coding habits. One of the habits he mentioned was to enclose in parenthesis where you can, partly for this reason, and partly because it makes the code easier to read. I go halfway. If I have any

Re: Trouble with 'there is a'

2012-01-27 Thread Bob Sneidar
What he said. ;-) On Jan 27, 2012, at 7:42 AM, Ken Ray wrote: My real script did have two problem but they were quite different, and might be of interest. I'm glad you brought these up - for others reading this there are some best practices to learn about these things: 1. I had

Re: Cloning stack reset object IDs?

2012-01-27 Thread Bob Sneidar
It is because of this sort of thing that I think the engine needs to be updated to reuse unused ID's. It would be a simple matter to have the engine reset the stack ID to the lowest unused ID if it ever ran out, and then check for the next available ID when it sets the stack ID after an object

What's the best way to show a set of pictures?

2012-01-27 Thread Ken Corey
Hi All, My app will be deployed onto, at a minimum, iOS universal, and Windows PCs. If I can get the code working there then Android as well. I want to represent the children of a teacher's class with a smallish picture of each child...and allow the teacher to take a new picture, or

iOS Home Button

2012-01-27 Thread Dan Friedman
Greetings! Is there a way to trap when the user hits the Home button on his iPad? I want to do a little cleanup (including writing some data to a server) when my app is closed. I tried shutdownRequest, but this doesn't seem to work. Any thoughts? Thanks in advance, -Dan

Re: Trouble with 'there is a'

2012-01-27 Thread Pete
Hi Ken, You're saving my life on these Mac/Windows issues, thank you! One question on this. What do the ask/answer file/folder dialogs return on Windows? Does LC convert the \ chars to / before putting it into the it variable, or just pass whatever the os returns? Thanks, Pete Right. If you

Re: Cloning stack reset object IDs?

2012-01-27 Thread Marty Knapp
Pete, So if I'm understanding you correctly, I could clone a card with a datagrid and then delete the original card and I would, in effect, start with a fresh set of IDs? Marty Hi Richard, Just the datagrid group, not the stack itself. Here's what I see when cloning. If I clone a card, the

Re: Trouble with 'there is a'

2012-01-27 Thread Klaus on-rev
Hi Pete, Am 27.01.2012 um 18:35 schrieb Pete: Hi Ken, You're saving my life on these Mac/Windows issues, thank you! One question on this. What do the ask/answer file/folder dialogs return on Windows? Does LC convert the \ chars to / before putting it into the it variable, Yes! or just

Re: Cloning stack reset object IDs?

2012-01-27 Thread Pete
Hi Marty, I've just been playing around with this a bit more and need to clarify a couple of things. When you clone a card, it is placed into the currently-open stack, not the same stack as the original card was in. So if the stack the original card is in is open when you clone it, the new

Re: Trouble with 'there is a'

2012-01-27 Thread Pete
Thanks Ken. I am handing off the paths to an external application so I'll need to convert the slashes. Pete On Fri, Jan 27, 2012 at 10:31 AM, Ken Ray k...@sonsothunder.com wrote: So the only times we need to deal with path delimiters is when (a) working with the WIndows registry (see

Send and Dispatch without parameters

2012-01-27 Thread Bob Sneidar
Hi all. I just noticed that if you send or dispatch to an object and you have specified parameters in the objects handler, but you don't provide the parameters when you send or dispatch, the call will silently fail. This seems only to occur for built in handlers, like mouseUp for example.

Re: Send and Dispatch without parameters

2012-01-27 Thread dunbarx
This is not normal. The method works for me, and has, basically, since 1987. But I tried it in both a new stack and in a stack filled with other stuff, a test stack of mine with all sorts of things in it. The simple command worked as advertised in the new stack, but failed in the test stack as

iPad App development needed

2012-01-27 Thread Todd Geist
Hello, I need a very simple camera app built for the iPad. I would do it myself, but I am just too busy. So I am hopeful I can find somebody who can get this thing built for me. This is to serve a small niche market. It will serve as a companion app to another product I am already selling.

[no subject]

2012-01-27 Thread Todd Geist
Hello, I need a very simple camera app built for the iPad. I would do it myself, but I am just too busy. So I am hopeful I can find somebody who can get this thing built for me. This is to serve a small niche market. It will serve as a companion app to another product I am already selling.

iPad Camera App Development needed

2012-01-27 Thread Todd Geist
Hello, (sorry for the double post. I forgot the subject ) I need a very simple camera app built for the iPad. I would do it myself, but I am just too busy. So I am hopeful I can find somebody who can get this thing built for me. This is to serve a small niche market. It will serve as a

Re: Send and Dispatch without parameters

2012-01-27 Thread dunbarx
Bob. Nope, it was me. Name conflict; you don't want to know. The method works fine. LC messages like mouseUp or custom ones like yourMessage all pass correctly. Parameters are not pertinent. Check your stack. I had another object with the same name as the intended target. My message was

Re: Send and Dispatch without parameters

2012-01-27 Thread Pete
send/dispatch with no parms works fine for me. Where are you sending the message from - same card as the target, same stack, different stack? Shouldn't make any difference but if there is a problem, gonna need to know the details. Pete On Fri, Jan 27, 2012 at 12:54 PM, Bob Sneidar

Re: Send and Dispatch without parameters

2012-01-27 Thread Bob Sneidar
Wait I just thought of why it seemed to not work. In the mouseUp code I had the conditional if pMouseBtnNum is 1 then DUH! If I don't pass 1 as a parameter, nothing inside the conditional will execute! Criminy that was stupid. Bob On Jan 27, 2012, at 1:46 PM, dunb...@aol.com wrote:

Scrolling in even increments

2012-01-27 Thread Marty Knapp
If I wanted a datagrid to scroll by an amount evenly divisible by 20 pixels, is there a way to do that? I've tinkered with the lineIncrement and scrollbarLineDec/scrollbarLineInc but I'm not getting anywhere. What about dragging the scrollbar thumb or clicking above and below? Any ideas?

Re: Scrolling in even increments

2012-01-27 Thread Bob Sneidar
One thing I did when I wanted to see what messages were being sent to the data grid during an operation is I put a dgprops handler in the data grid script and then put the property that was being passed as an argument. Perhaps that would help? Bob Sneidar IT Manager Calvary Chapel CM Sent from

Re: iOS: multiline (UITextView) control weirdness

2012-01-27 Thread Gerry Orkin
It's roll your own unfortunately. Shouldn't be too hat to code - just do a repeat loop through all your controls subtracting the right amount from the second item in their loc. so the opposite wen finished editing. Gerry -- Sent from my iPhone. On 28/01/2012, at 3:28 AM, Chris Sheffield

select after text

2012-01-27 Thread Serge Brami
This script in a focusable and not locked field : on openfield put the long date after me select after text of me end openfield simple but doesn't work : the insertion point is never placed at the end of the text ... any idea ? ___