Re: Take a picture iPhone camera

2012-01-03 Thread paolo mazza
Hi Gerry, I know that using the iPhonePickPhoto command I can open the camera application of the iPhone, let the user to take a picture (he has to click the proper button) , import the image and save it in the pictures folder. However, I wonder if there is a way to take a picture (opening the

Re: Scripting a text to binary digits converter

2012-01-03 Thread -=JB=-
I don't think the binaryEncode function will return the same binary or ascii number that you get using the baseConvert function. The dictionary states it returns the same thing as the pack() function used by perl. I do not know perl so I am not sure what they are doing. Can anyone explain what

Re: PDFs Not Downloading Properly From FTP Server

2012-01-03 Thread Gregory Lypny
Thank you, Roger. Works like a charm! Gregory On Tue, Jan 3, 2012, at 12:37 AM, Roger wrote: Have you tried binfile: instead of file: to prevent alteration? In certain cases, you may not need the // either. ?Roger ___ use-livecode

Re: Setting the cursor

2012-01-03 Thread Jim Hurley
Thanks Jacque. I was hoping to present the user with vision of a cursor moving to the button and then clicking on it. I think now that I will manufacture my own cursor, using RR's line graphic (with arrow attached) and thereby simulate a cursor. It is perhaps the dark side of my nature that

Re: Setting the cursor

2012-01-03 Thread Colin Holgate
Perhaps a png would be better. That way you could show a Mac cursor to a Mac user, and a Windows cursor to Windows users. On Jan 3, 2012, at 10:00 AM, Jim Hurley wrote: I think now that I will manufacture my own cursor, using RR's line graphic (with arrow attached) and thereby simulate a

recordInput

2012-01-03 Thread Martin Meili
Hi there, what are the recordInput settings if I want to record a text from a (text)field being read out by the revspeak-comand? I know, there's a list in the dictionary (imic, emic, cd etc.), but I couldn't manage to get this kind of recording working. Cheers Martin

Re: Scripting a text to binary digits converter

2012-01-03 Thread Ken Ray
function convertTextToBinary varText --repeat with n = 1 to the number of chars of varText repeat for each char tChar in varText --put chartonum(char n of varText) into theNum put chartonum(tChar) into theNum put baseConvert(theNum,10,2) into tBaseConverted put char

Re: The previous selection

2012-01-03 Thread Bob Sneidar
Yes that is what I do. In a selectionChanged handler, the last thing I do is store the current selection in a property of the object. Any validation failure before that I set the selection to that property and bail out before it saves the property. Of course I have to lock messages before

Re: Ways to get the IDs of two already scripted buttons?

2012-01-03 Thread Bob Sneidar
on mouseup pButtonNum if pButtonNum is 3 then select me -- do some stuff select empty end if end mouseUp Is that what you meant? Bob On Jan 1, 2012, at 3:55 PM, Kresten Bjerg wrote: I am trying to script a handler guiding (through Answer dialogue) user of standalone to

Re: [OT] 2012

2012-01-03 Thread Bob Sneidar
Our electronic key system failed the morning of the first. Seems everyone's keys were being handed an invalid date. Imagine the panic as people started showing up at 6 in the morning on the first day of the year and their keys no longer opened any doors! LOL! Damn Mayans! How could they have

MobGUI demo restrictions?

2012-01-03 Thread Colin Holgate
I can't seem to find a page describing what the limitations are for MobGUI if you haven't registered it. Do any of you know? Mine is registered, so I get to see everything, and if I unregistered it I might not notice all the differences. ___

Re: OFF TOPIC virtualize windows on mac

2012-01-03 Thread Bob Sneidar
I like Parallels, especially because it is capable of creating multiple network adapters and assigning a real adapter to it very easily. This would allow you to connect a server to two different networks for example. It's entirely possible to set up a virtual software router like that. I now

Re: Carriage Return in datagrid data

2012-01-03 Thread Bob Sneidar
Does this happen even when you use dgDataOfIndex or dgDataOfLine? If so, then this would be a great situation for copying the datagrid behavior to a button in the stack and then coding the copy of the behavior scripts to check for the existence of a CR and replace it with a vertical tab

Re: Another Gotcha

2012-01-03 Thread Bob Sneidar
Because a mouseDown only gets sent when the tool is Browse. The contextual menu gets built when using the pointer tool. I am creating a dev utility for adding field validations in a database app framework. I only want this to be visible when using the pointer tool. Bob On Jan 2, 2012, at

Re: Setting the cursor

2012-01-03 Thread Richard Gaskin
Jim Hurley wrote: Ken's suggestion (using screenMouseLoc) would allow me to take control of the cursor. It is odd that there is a command to locate the mouse relative to the screen but not the card. I wonder whether this, and the notion of exercising power only for good, might not date

Re: Another Gotcha

2012-01-03 Thread Richard Gaskin
Bob Sneidar wrote: Because a mouseDown only gets sent when the tool is Browse. This is true only in the IDE. Even then, it's not really true per se, but merely that the IDE eats most mouse messages when the pointer tool is active. For your purposes it won't matter much, but for anyone

Re: Listen for messages in FrontScripts

2012-01-03 Thread Todd Geist
On Tue, Jan 3, 2012 at 9:29 AM, Bob Sneidar b...@twft.com wrote: All of them, right? Yes A front script appears to be inserted into the message path before ( or above ) any target. So it has a chance to handle any message that is sent to any target. I know this is common knowledge to the old

Re: Scripting a text to binary digits converter

2012-01-03 Thread -=JB=-
When converting ascii to binary you convert each char using the repeat script you provided below, repeat for each char tChar in varText But when you want to convert the binary to ascii you need to get eight char then convert then repeat eight chars. How would you write the fastest repeat

Re: OFF TOPIC virtualize windows on mac

2012-01-03 Thread Richard Gaskin
jvalle wrote: starting with an old Macbook would like to know your expert opinion about what is the best virtualization solution to run Windows on Mac, from a developer point of view. With any VM the key is RAM. The more the merrier. Anything less than 2GB will make VMs really difficult to

Re: OFF TOPIC virtualize windows on mac

2012-01-03 Thread Mark Schonewille
Richard, VirtualBox was mentioned at least 3 times. I like Parallels too, but I like VirtualBox just as much feature-wise and it beats Parallels because of the price. I agree that a PC might be a better solution, but it isn't always possible to fit a PC in your backpack :-) -- Best regards,

Re: Listen for messages in FrontScripts

2012-01-03 Thread Bob Sneidar
If I am not mistaken, sent or dispatched messages are always sent to the card if another target is not specified, but of course must pass through the frontscript first. I believe that would be the way to put it. That matters because the send command changes the current context of the command as

Re: Another Gotcha

2012-01-03 Thread Pete
OK, got it. On Tue, Jan 3, 2012 at 9:40 AM, Bob Sneidar b...@twft.com wrote: Because a mouseDown only gets sent when the tool is Browse. The contextual menu gets built when using the pointer tool. I am creating a dev utility for adding field validations in a database app framework. I only

Re: OFF TOPIC virtualize windows on mac

2012-01-03 Thread Bob Sneidar
Aye. Where virtualization really begins to pay off for me is running multiple vm's on a single hardware platform, or else the convenience of having several operating systems at my fingertips at once. As an IT manager that has really been a huge boon for me. I should also mention that in a

Re: MobGUI demo restrictions?

2012-01-03 Thread J. Landman Gay
On 1/3/12 11:25 AM, Colin Holgate wrote: I can't seem to find a page describing what the limitations are for MobGUI if you haven't registered it. Do any of you know? Mine is registered, so I get to see everything, and if I unregistered it I might not notice all the differences. As near as I

Re: MobGUI demo restrictions?

2012-01-03 Thread Colin Holgate
Thanks, that helps. On Jan 3, 2012, at 1:35 PM, J. Landman Gay wrote: As near as I can tell, the only difference is that unregistered copies cause the built iOS app to show a brief accredidation when the app starts up on the device or simulator. There are no differences during development

iOS: custom answer (UIAlertView) dialog?

2012-01-03 Thread Chris Sheffield
Do we have the ability yet in LiveCode to customize the answer (UIAlertView) dialog? I need a little more control over the appearance of the dialog than the default answer command allows for. Things like text font, alignment, styles, etc. The ability to skin it would also be great, but not

Re: Listen for messages in FrontScripts

2012-01-03 Thread Todd Geist
On Tue, Jan 3, 2012 at 10:09 AM, Bob Sneidar b...@twft.com wrote: If I am not mistaken, sent or dispatched messages are always sent to the card if another target is not specified, hmm, Not what I see Send, dispatch, and call use the current object as the target if none is specified. It would

Re: Listen for messages in FrontScripts

2012-01-03 Thread Pete
I think it's time to refer to the message path bible - Richard Gaskin's great article at http://www.fourthworld.com/embassy/articles/revolution_message_path.html Pete On Tue, Jan 3, 2012 at 12:01 PM, Todd Geist t...@geistinteractive.comwrote: On Tue, Jan 3, 2012 at 10:09 AM, Bob Sneidar

Windows Standalone Does Not Have an App Menu

2012-01-03 Thread Gregory Lypny
Hello everyone, I develop LiveCode apps for my students on my Mac, and I sometimes have limited opportunities to fully test them on PCs. I recently updated to LiveCode 5.0.2 and rebuilt a stack that was originally coded in 5.0.1. I saved the stack as Mac and Windows standalones for

Re: Listen for messages in FrontScripts

2012-01-03 Thread Todd Geist
Thanks Pete, That is where I began :-) On Tue, Jan 3, 2012 at 12:22 PM, Pete p...@mollysrevenge.com wrote: I think it's time to refer to the message path bible - Richard Gaskin's great article at http://www.fourthworld.com/embassy/articles/revolution_message_path.html Pete On Tue, Jan 3,

Re: Scripting a text to binary digits converter

2012-01-03 Thread Michael Doub
How's this? Function convertBinaryToText varText repeat with x = 1 to the len of varText-8 step 8 put numtochar(BaseConvert(char x to (x+7) of varText,2,10)) after tConverted end repeat return tConverted end convertBinaryToText On 2012-01-03, at 11:21 AM, Ken Ray wrote:

Re: Scripting a text to binary digits converter

2012-01-03 Thread -=JB=-
That looks real good! -=JB=- On Jan 3, 2012, at 12:40 PM, Michael Doub wrote: How's this? Function convertBinaryToText varText repeat with x = 1 to the len of varText-8 step 8 put numtochar(BaseConvert(char x to (x+7) of varText,2,10)) after tConverted end repeat return

Re: Windows Standalone Does Not Have an App Menu

2012-01-03 Thread Roger Eller
On Tue, Jan 3, 2012 at 3:23 PM, Gregory Lypny wrote: Hello everyone, I develop LiveCode apps for my students on my Mac, and I sometimes have limited opportunities to fully test them on PCs. I recently updated to LiveCode 5.0.2 and rebuilt a stack that was originally coded in 5.0.1. I

Re: iOS: custom answer (UIAlertView) dialog?

2012-01-03 Thread Bob Sneidar
Because rolling your own answer dialog is pretty easy, the typical answer to this question is roll your own. I'm sure many have done so. Someone is sure to offer something up. A good place to start is to read up on the dialogData. It's a global property that you can put anything into, so that

Re: iOS: custom answer (UIAlertView) dialog?

2012-01-03 Thread Chris Sheffield
Thanks, Bob, but I already tried that. When issuing the modal command, or the go stack as modal command on iOS, the modal stack takes over the whole screen, which is not the desired result. Still looking... Chris On Jan 3, 2012, at 2:00 PM, Bob Sneidar wrote: Because rolling your own answer

Re: Listen for messages in FrontScripts

2012-01-03 Thread Bob Sneidar
On Jan 3, 2012, at 12:01 PM, Todd Geist wrote: Send is different because messages not handled but the target DO NOT continue down the message path. Send does NOT resolve me to the behavior script if there is any. Like Dispatch the context is the receiving object, not the sending one. I am

Re: Listen for messages in FrontScripts

2012-01-03 Thread Bob Sneidar
That is a great writeup on the subject, and seems to indicate, although indirectly, that send and dispatch work the same as regards the context of the called handler. I'm still not sure this is the case, but if so, then the dictionary needs to be updated in this regard. Bob On Jan 3, 2012,

Re: iOS: custom answer (UIAlertView) dialog?

2012-01-03 Thread Bob Sneidar
That is an interesting UI question though. Do you really want multiple stacks open in a mobile interface? Does the Android OS spec that as valid? I know on my iPhone, apps generally work like modal windows, that is I never see a window pop up in front of another window. But the point seems

Re: Listen for messages in FrontScripts

2012-01-03 Thread Todd Geist
On Tue, Jan 3, 2012 at 1:24 PM, Bob Sneidar b...@twft.com wrote: That is a great writeup on the subject, Thanks! and seems to indicate, although indirectly, that send and dispatch work the same as regards the context of the called handler. I'm still not sure this is the case, but if so,

Re: Listen for messages in FrontScripts

2012-01-03 Thread Pete
OK, sorry didn't realise you'd already read it. You're turning up some interesting stuff. I guess my only comment is that I prefer to always specify a target for dispatch, etc. Defaults are great but being specific relieves my already overloaded brain of having to remember what they are!. Pete

Re: iOS: custom answer (UIAlertView) dialog?

2012-01-03 Thread J. Landman Gay
On 1/3/12 3:00 PM, Bob Sneidar wrote: Because rolling your own answer dialog is pretty easy, the typical answer to this question is roll your own. The problem with mobile apps is that only one stack can be open at a time, so when the dialog opens, it closes the main stack and takes up the

Simplest method for determining changes made on a form/card

2012-01-03 Thread Sivakatirswami
Without scripting every field, if you have a data entry system with multiple fields, and you want to flag the user that he or she made a change but did not save before click next or Previous to go to another record... what would be the simplest method to check that the card was modified to

Scripting a text to binary digits converter

2012-01-03 Thread Bryan McCormick
Hey Ken, Oddly your terse script ran a bit longer than the final one the group cobbled together by community heavy lifting. Not by much though. 1000 repeats on both showed yours was about 13 to 20 ticks slower. Not at all what I would have expected either.

Re: iOS: custom answer (UIAlertView) dialog?

2012-01-03 Thread J. Landman Gay
On 1/3/12 3:57 PM, Bob Sneidar wrote: OIC! So it would be possible to set a global before the calling stack launches the dialog, and have the dialog stack when it is returning control to the calling stack, lock messages, close itself, then open the stack stored in the global when it's finished

Scripting a text to binary digits converter

2012-01-03 Thread Bryan McCormick
Phil, Your final version of the script ended up winning the speed race. See my note to Ken. Thanks to everyone for pitching in. That was fun. Forced me to learn a bit about baseConvert and binaryEncode/Decode ___ use-livecode mailing list

Re: Simplest method for determining changes made on a form/card

2012-01-03 Thread J. Landman Gay
On 1/3/12 3:51 PM, Sivakatirswami wrote: Without scripting every field, if you have a data entry system with multiple fields, and you want to flag the user that he or she made a change but did not save before click next or Previous to go to another record... what would be the simplest method to

Re: iOS: custom answer (UIAlertView) dialog?

2012-01-03 Thread Chris Sheffield
Jacque, you're right. And overlaying a group seems to do the trick. I'm still playing with it, and I'm not even totally sure if the powers that be will like what I've done, but so far it seems to be working well. Thanks for the suggestion. Chris On Jan 3, 2012, at 3:08 PM, J. Landman Gay

Re: Simplest method for determining changes made on a form/card

2012-01-03 Thread Bob Sneidar
Not sure this is a simple problem, but one thing I like to do is create a global and then set it. I can then check for the mode when necessary. For simple edits I typically use a simple true false value in a global called isEditing. For more complex operations, I have a mode variable called

Re: Simplest method for determining changes made on a form/card

2012-01-03 Thread Bob Sneidar
Also remember that closeField does not get sent to a field if the user clicks on a button before exiting the edited field, at least on the Mac OS. Bob On Jan 3, 2012, at 2:12 PM, J. Landman Gay wrote: On 1/3/12 3:51 PM, Sivakatirswami wrote: Without scripting every field, if you have a

Re: Simplest method for determining changes made on a form/card

2012-01-03 Thread J. Landman Gay
On 1/3/12 4:29 PM, Bob Sneidar wrote: Also remember that closeField does not get sent to a field if the user clicks on a button before exiting the edited field, at least on the Mac OS. Didn't that get fixed? That bug dates back about 12 years, but I thought it worked again now. Inserting

Re: Simplest method for determining changes made on a form/card

2012-01-03 Thread Bob Sneidar
Oh right you are! I just tested that and it worked. Awesome! Bob On Jan 3, 2012, at 3:02 PM, J. Landman Gay wrote: On 1/3/12 4:29 PM, Bob Sneidar wrote: Also remember that closeField does not get sent to a field if the user clicks on a button before exiting the edited field, at least on

Re: Simplest method for determining changes made on a form/card

2012-01-03 Thread Pete
That behavior is still there in 4.6.4. The workaround I remember is to put a focus on nothing in the button script. I seem to remember there was a discussion on this issue a while back that concluded it wasn't a bug since clicking on a button doesn't cause the field to lose focus? On Tue, Jan

Re: Windows Standalone Does Not Have an App Menu

2012-01-03 Thread Mark Wieder
Roger- Tuesday, January 3, 2012, 12:51:51 PM, you wrote: Without decorations, your app is a ghost (sort of). It will only show in the taskbar (windows dock) when decorations are visible. You can make a small button with quit in a mouseUp handler, or instruct the user to press Alt-F4 to

Re: Simplest method for determining changes made on a form/card

2012-01-03 Thread Mark Wieder
Pete- Tuesday, January 3, 2012, 4:56:17 PM, you wrote: focus on nothing Yeah- that's what I've been doing all day... -- -Mark Wieder mwie...@ahsoftware.net ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to

Re: Windows Standalone Does Not Have an App Menu

2012-01-03 Thread Roger Eller
On Tue, Jan 3, 2012 at 9:11 PM, Mark Wieder wrote: Roger- Tuesday, January 3, 2012, 12:51:51 PM, you wrote: Without decorations, your app is a ghost (sort of). It will only show in the taskbar (windows dock) when decorations are visible. You can make a small button with quit in a

Re: Simplest method for determining changes made on a form/card

2012-01-03 Thread Pete
What was that again? On Tue, Jan 3, 2012 at 6:14 PM, Mark Wieder mwie...@ahsoftware.net wrote: Pete- Tuesday, January 3, 2012, 4:56:17 PM, you wrote: focus on nothing Yeah- that's what I've been doing all day... -- -Mark Wieder mwie...@ahsoftware.net