Re: Library Stack and Mobile

2011-12-22 Thread J. Landman Gay
On 12/22/11 9:10 PM, J. Landman Gay wrote: The "revPreOpenstack" message will be sent to your library stack when the IDE opens it immediately after startup. On second thought, I think that's not quite right. Your library will get the message whenever any stack opens, but you're right it will

Re: Library Stack and Mobile

2011-12-22 Thread J. Landman Gay
On 12/22/11 5:04 PM, Ralph DiMola wrote: Jacqueline, Thanks! Even when I set it up as you suggested, the lib stack is not available during the apps openCard script. The revopenstack message to the plug-in is behind the stack and card open/preopen messages of the app. Interestingly enough if

Re: How to tell when a datagrid column has been resized

2011-12-22 Thread Pete
There's a mouseUp handler in the default header behavior script for a datagrid that looks like this: *on* mouseUp pMouseBtnNum *if* pMouseBtnNum is 1 and not the dgHeaderColumnIsBeingResized of thedgHeader of me *then* *## Change the sort of the column* *## _HeaderToggleSortOfCol

How to tell when a datagrid column has been resized

2011-12-22 Thread Bob Sneidar
> Hi all. I have read up on all the lessons that might help, as well as > searched the datagrid library, and I cannot find anyplace where a message > gets sent when a column has been resized. I would like to trap that message > so the next time around I can set up the datagrid the way it was las

Re: Option Menu Question

2011-12-22 Thread Mark Schonewille
Hey, that works! Nice solution! -- Best regards, Mark Schonewille Economy-x-Talk Consulting and Software Engineering Homepage: http://economy-x-talk.com Twitter: http://twitter.com/xtalkprogrammer KvK: 50277553 Become our partner in sales http://qery.us/1bq Start selling Color Converter today.

Re: Option Menu Question

2011-12-22 Thread Pete
I think I have found a way to do this without using multiple controls. I have a preOpenCard handler like this: on preOpenCard set the text of button "myMenu" to "Select an option..." set the textColor of myMenu to "#66" --makes the text grey end preOpenCard I put the following mouseDow

How to tell when a datagrid column has been resized

2011-12-22 Thread Bob Sneidar
Hi all. I have read up on all the lessons that might help, as well as searched the datagrid library, and I cannot find anyplace where a message gets sent when a column has been resized. I would like to trap that message so the next time around I can set up the datagrid the way it was last. Any i

RE: Library Stack and Mobile

2011-12-22 Thread Ralph DiMola
Jacqueline, Thanks! Even when I set it up as you suggested, the lib stack is not available during the apps openCard script. The revopenstack message to the plug-in is behind the stack and card open/preopen messages of the app. Interestingly enough if I put an answer dialog in the openstack ha

Re: Option Menu Question

2011-12-22 Thread Mark Schonewille
Hi Craig, I put a field on top of the option menu button and send the message to the underlying option menu button, which shows the popup menu button, or you can do it all directly from the field. The script in the popup menu button can put the picked item into the field. -- Best regards, Mar

Re: Option Menu Question

2011-12-22 Thread dunbarx
Mark. The same issue with a popup as with the option: you can grey out a pulled menuItem with a prepended "(", but it will not show such in the normal rest state. Did you mean that this style of button can have this feature? Or did you mean that you can roll your own, with greyed text in an o

Re: Option Menu Question

2011-12-22 Thread dunbarx
Pete. I prepended "(" to a menuItem in an option menu, but this only greys out that particular menuItem when they are all pulled. It does not display it as such in its rest state. It would have to be a property of the menuItem, then, no? Craig -Original Message- From: Pete To: Ho

Re: iPad screenrecording: how?

2011-12-22 Thread Chipp Walters
Here's a decent way of getting diffuse lighting, though you can't tap. http://www.youtube.com/watch?v=-4pF1lW2-7w There are other iPhone copy stands with built in diffusers as well. http://obamapacman.com/2011/12/iphone-copy-stand-modahaus-steady-stand/ On Thu, Dec 22, 2011 at 12:18 PM, Mark Powe

Re: Option Menu Question

2011-12-22 Thread Mark Schonewille
Hi Pete, You can't do that with the option menu, but you can make an empty option menu button and use the mouseDown button to show a popup menu button at the bottomleft of the option menu button. You can add a grayed-out menu item to the popup menu button with a left parenthesis as a prefix. -

Option Menu Question

2011-12-22 Thread Pete
I often see menus on web pages that display an instruction as their default choice, something like "Select a color" for example. It's often greyed out and usually disappears when the user clicks on the menu. I think I can figure out how to make it disappear but is there a way to have it be greyed

Re: Function to Upper and Lower Case sentences

2011-12-22 Thread J. Landman Gay
On 12/21/11 7:00 PM, Sivakatirswami wrote: well I got this far.. I tinkered with this a little bit last night because I thought a regex solution would work, but my skills aren't good enough. So I ended up with something similar to what you've already done. #I think there is a better trim l

Re: Is Control a DataGrid

2011-12-22 Thread Phil Davis
I like dgProps["control type"] too. I was unaware of it. Phil On 12/22/11 12:38 PM, Pete wrote: Hi Todd, If your code might go out into the wild, I think the dgProps["control type"] property I mentioned might be slightly safer than using the dgcontrol property, just because it's highly unlikely

Re: Is Control a DataGrid

2011-12-22 Thread Pete
Hi Todd, If your code might go out into the wild, I think the dgProps["control type"] property I mentioned might be slightly safer than using the dgcontrol property, just because it's highly unlikely anyone would have a dgProps custom property set outside of a datagrid whereas it's not inconceivabl

Re: File time off by an hour...

2011-12-22 Thread Keith (Gulf Breeze Ortho Lab)
Thanks Bernard. I put together some code that will work for practical purposes (i.e., utilizing internet time and time zone), but it's still not a perfect solution. For now, I will just list the file dates without times... Cheers from Florida, - Boo -Original Message- From: Bernard D

Re: Library Stack and Mobile

2011-12-22 Thread J. Landman Gay
On 12/22/11 1:09 PM, Ralph DiMola wrote: I know this have been visited and read the forums, but still can't get library stack to work on mobile. I am testing on Android but will also be deploying to iOS. I put the library stack into the plug-in folder with a on preOpenStack start using this

Re: iOS: text styles

2011-12-22 Thread J. Landman Gay
Great! I was speculating, so thanks for posting. I'll try to remember that trick. On 12/22/11 12:34 PM, Chris Sheffield wrote: Yay, this worked! Thanks again for the suggestion. Don't think I would have thought of it on my own. Chris On Dec 21, 2011, at 8:27 PM, J. Landman Gay wrote: On 1

Re: iOS and xml: I don't understand unicode...

2011-12-22 Thread Chris Sheffield
Mark, Yes! That works. Thank you so much! Chris On Dec 22, 2011, at 12:13 PM, Mark Schonewille wrote: > Hi Chris, > > Read the file as binary, e.g. into variable myVar and then convert it with > > put uniDecode(uniEncode(myVar,"UTF8")) into myVar > > Now you can load the XML tree that's in

Re: iOS and xml: I don't understand unicode...

2011-12-22 Thread Mark Schonewille
Hi Chris, Read the file as binary, e.g. into variable myVar and then convert it with put uniDecode(uniEncode(myVar,"UTF8")) into myVar Now you can load the XML tree that's in myVar or parse it as standard ASCII text. -- Best regards, Mark Schonewille Economy-x-Talk Consulting and Software En

Library Stack and Mobile

2011-12-22 Thread Ralph DiMola
I know this have been visited and read the forums, but still can't get library stack to work on mobile. I am testing on Android but will also be deploying to iOS. I put the library stack into the plug-in folder with a on preOpenStack start using this stack end preOpenStack This makes it only

Re: is among the words AND find words

2011-12-22 Thread Bob Sneidar
Drat, I had a function that did this very thing, but I replaced it with the dbschema_getTable() function in sqlYoga which returns everything you would want to know about a table schema. I was not aware that the CREATE TABLE command worked with sqLite. Bob On Dec 22, 2011, at 9:34 AM, Pete w

iOS and xml: I don't understand unicode...

2011-12-22 Thread Chris Sheffield
I need help. In more ways than one, but that's beside the point... I have a utf-8 encoded xml file that I'm reading data from for display in a text field. Everything seems to work just fine except for certain unicode characters, such as the em dash ("—"). When I read in the text and then set the

Re: iOS: text styles

2011-12-22 Thread Chris Sheffield
Yay, this worked! Thanks again for the suggestion. Don't think I would have thought of it on my own. Chris On Dec 21, 2011, at 8:27 PM, J. Landman Gay wrote: > On 12/21/11 4:42 PM, Chris Sheffield wrote: > >> Set the standalone settings for iPad, etc. Launch it in the >> simulator. Does the w

RE: iPad screenrecording: how?

2011-12-22 Thread Mark Powell
> The problem with any of these overhead solutions is that > it is really hard to get the lighting right. In fact it > is darn near impossible. > Todd Certainly very difficult but not impossible. See the 'Touching the iPad' module here http://www.lynda.com/iPad-tutorials/tips-and-tricks/68383

Thanks to Scott Rossi

2011-12-22 Thread Roger Guay
Hi All, A special thanks to Scott Rossi who again gives us an elegant gift in the latest revUP. And a wish for a Happy Holiday to all of you on this great list! Thanks and cheers, Roger Guay ___ use-livecode mailing list use-livecode@lists.runrev.co

Re: Is Control a DataGrid

2011-12-22 Thread Todd Geist
In this case I am making a Palette that pops up when groups are selected. I need to rule out groups that are inappropriate for the palette. The data grid is one such group. Since this code may make it into the wild someday I can't rely on other people naming conventions to make this work. While

Re: is among the words AND find words

2011-12-22 Thread Pete
Yes, I know about that but the project I'm working on requires me to parse out all the individual elements of the CREATE statement, not actually create the table. The PRAGMA commands provide some information about the table but you have to parse the CREATE command to get the rest. On Thu, Dec 22,

Re: Is Control a DataGrid

2011-12-22 Thread Bob Sneidar
I name all my datagrids starting with "dg", as I name fields with "fld", labels with "lbl" buttons with "btn" etc. It's been discussed before, but a consistent naming convention comes in real handy at times, and makes sorting by kind in a list of objects possible. Bob On Dec 21, 2011, at 9:2

Re: is among the words AND find words

2011-12-22 Thread Bob Sneidar
On Dec 22, 2011, at 7:17 AM, Jim Hurley wrote: > Dave, > > Ah! Those mighty regular expressions. Sm day I'll have to study up on > them. DO YOU VALUE YOUR SANITY??? DON'T DO IT ___ use-livecode mailing list use-livecode@lists.runrev.com Pleas

Re: is among the words AND find words

2011-12-22 Thread Bob Sneidar
Open the sqLite_master table. In it you will find a column called SQL with entries for how to create each table. Bob On Dec 21, 2011, at 2:08 PM, Pete wrote: > I think I tried that but the arguments aren't always comma delimited > unfortunately. Somewhat related,I wish SQLite provided more f

RE: revAndroidPlugin and the Android SDK

2011-12-22 Thread Ralph DiMola
Bernard, All fixed. THANKS!!! I knew there was an old issue but couldn't remember the exact file whose existence was being verified. Ralph DiMola IT Director Evergreen Information Services Phone: 518-636-3998 Ex:11 Cell: 518-796-9332 -Original Message- From: use-livecode-boun...@lists.

Re: Is Control a DataGrid

2011-12-22 Thread Pete
You can also check the dgProps["control type"]. For datagrids, this is set to "Data Grid". On Thu, Dec 22, 2011 at 7:03 AM, Todd Geist wrote: > Thanks! > > On Wed, Dec 21, 2011 at 10:45 PM, Phil Davis wrote: > > > Hi Todd, > > > > This should work unless you use 'dgControl' as your own custom p

Re: revAndroidPlugin and the Android SDK

2011-12-22 Thread Bernard Devlin
It sounds familiar. There was a discussion on the mailing list about a missing aapt.exe before. Look for the thread "LiveCode for Android under Windows" Bernard On Thu, Dec 22, 2011 at 2:42 PM, Ralph DiMola wrote: > main prefs liked the plug-in tells me: "That is not a usable SDK root: > missin

Re: iOS: text styles

2011-12-22 Thread Chris Sheffield
Thanks, Jacque. I'll give that a try. Kind of a pain, but if it keeps me going I'm happy. Chris On Dec 21, 2011, at 8:27 PM, J. Landman Gay wrote: > On 12/21/11 4:42 PM, Chris Sheffield wrote: > >> Set the standalone settings for iPad, etc. Launch it in the >> simulator. Does the word "are"

Re: iPad screenrecording: how?

2011-12-22 Thread Todd Geist
On Wed, Dec 21, 2011 at 11:06 PM, Chipp Walters wrote: > You could try this > > http://www.ponoko.com/design-your-own/products/scandock-2703 > > The problem with any of these overhead solutions is that it is really hard to get the lighting right. In fact it is darn near impossible. Todd

Re: is among the words AND find words

2011-12-22 Thread Jim Hurley
Dave, Ah! Those mighty regular expressions. Sm day I'll have to study up on them. Yes that works very nicely. The other method (one that I understand ;) ) now boils down to this: on mouseUp put field 1 into tText put containsWord("time", tText) end mouseUp function containsWord tWor

Re: is among the words AND find words

2011-12-22 Thread Jim Hurley
Very good Hugh. This adds another level of versatility, first by the addition of a "rule" and then by returning a word count. You are right about what constitutes a word. That is what is nice about having a "rule". BTW: The previous "token" method can be changed into a count by replacing this

Re: iPad screenrecording: how?

2011-12-22 Thread Todd Geist
On Thu, Dec 22, 2011 at 12:51 AM, Ben Rubinstein wrote: > > If you can't work with the simulator, I think there is a theoretical route > to a 'perfect' capture: if you have an iPad2 (I think, or perhaps iPad1) > running iOS 5, then you can use AirPlay to send both image and sound to an > AppleTV u

Re: Is Control a DataGrid

2011-12-22 Thread Todd Geist
Thanks! On Wed, Dec 21, 2011 at 10:45 PM, Phil Davis wrote: > Hi Todd, > > This should work unless you use 'dgControl' as your own custom prop name > anywhere: > > if the dgControl of control x = empty then -- this is NOT a DG >-- do stuff here > end if > > Phil Davis Todd

RE: revAndroidPlugin and the Android SDK

2011-12-22 Thread Ralph DiMola
Sorry, I did not mention that I can Build and test for Android with no problems. I did Check my SDK prefs for both IOS and Android. And re-did the Android prefs and LC did not complain when I pointed to the Android SDK folder. When I open the revANdroidPlugin it immediately opens a dialog and asks

Dates displayed for On-Rev Server files

2011-12-22 Thread Francis Nugent Dixon
Hi from Beautiful Brittany, I upload files to my on-Rev server, and note a time difference of - 7 hours against my French time. I assume that this is a US East-Coast time zone. This is only a very, very minor bitch, but is there a way of getting the server to display my time-zone values ? Can I

RE: Wanted: Neophytes ftp Client

2011-12-22 Thread Martin Honeywill
Sorry bit late to the party on this one. Have you looked at OwnCloud? http://owncloud.org not used it myself but it looks good Cheers Martin Honeywill ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsub

Re: is among the words AND find words

2011-12-22 Thread Dave Cragg
Late to the thread. If the purpose is just to see whether the word exists in a string, would this work (using regular expressions)? on mouseUp put "Some timely text with time, and more." into tString put "time" into tTarget put containsWord(tTarget, tString) end mouseUp function conta

Re: revAndroidPlugin and the Android SDK

2011-12-22 Thread Bernard Devlin
Check in your Preferences, that right beneath the path to the Android SDK, that it has not lost a path to the JDK. Bernard On Thu, Dec 22, 2011 at 12:13 AM, Ralph DiMola wrote: > The revAndroidPlugin is not recognizing the Android SDK anymore. I still use > to view messages and the output of a L

Re: File time off by an hour...

2011-12-22 Thread Bernard Devlin
Keith, It seems this issue has come up with Windows and other programming languages (included those supplied by Microsoft!) http://stackoverflow.com/questions/4605983/io-file-getlastaccesstime-is-off-by-one-hour http://stackoverflow.com/questions/6009902/different-timestamps-under-winxp-win7-and

Re: iPad screenrecording: how?

2011-12-22 Thread Ben Rubinstein
On 21/12/2011 17:56, William de Smet wrote: I want to make a screen recording of my new iPad app. How do you people do this? There are no iPad screen recording apps yet. Are there? Screenflow does an excellent job of recording from the Mac screen, and can record internal or external audio at t

Re: is among the words AND find words

2011-12-22 Thread FlexibleLearning
Aha. So we are now only testing 'exist', and not the word number? Since I've already written this, I'll post it anyway... The problem (as always when this topic is raised) is the definition of a 'word', as indicated by the additional inclusion of 'token' in the language, and thus the definition of