Is this possible on iOS?

2012-04-09 Thread Geoff Canyon
For most of my apps I build a launcher that then loads the actual working stack from a remote location. I assume that's impossible due to Apple's restrictions on loading code remotely. But is it possible to save out a stack from the app locally, allowing it to be saved periodically and loaded local

Re: Browse tool. I give up.

2012-04-09 Thread Warren Samples
On 04/09/2012 11:18 PM, dunb...@aol.com wrote: I have been doing this sort of thing for so many years, and still find the simplest things will not work. OK. Someone tell me why I cannot choose the browse tool under script control upon opening a stack in a new session. Wait. Maybe I should w

Re: Browse tool. I give up.

2012-04-09 Thread Colin Holgate
on openstack send "browsetool" to me in 1 tick end openstack on browsetool choose browse tool end browse tool ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription

Browse tool. I give up.

2012-04-09 Thread dunbarx
I have been doing this sort of thing for so many years, and still find the simplest things will not work. OK. Someone tell me why I cannot choose the browse tool under script control upon opening a stack in a new session. Wait. Maybe I should write an openstack or opencard handler that has "c

Re: Zipping Up an LC standalone program

2012-04-09 Thread stephen barncard
tar (from the shell) works even better. On 9 April 2012 19:29, Kee Nethery wrote: > Or just use the Mac Archive or Compress menu item in the Finder. It works > great. > > Kee > ___ > use-livecode mailing list > use-livecode@lists.runrev.com > Please vi

Re: Windows tab buttons

2012-04-09 Thread Mark Wieder
Jacque- Monday, April 9, 2012, 7:36:49 PM, you wrote: > You can't get much simpler than what I did. Yes you can. I didn't import an image, just used some of the built-in patterns. Hang on. Yep, that worked for me as well. > What emulator do you use again? Richard likes it. Maybe I should try th

Re: iOS Control Instantiation problem

2012-04-09 Thread Ken Ray
> iphoneControlSet sScrollerId, "rect", the rect of group 1 > put sum(the dgProps["column widths"] of grp 1) into tContentWidth > put (the dgProp["row height"] of grp 1) * (the number of elements of the > dgData of grp 1) into tContentHeight > iphoneControlSet sScrollerId, "contentRect", (

Re: iOS Control Instantiation problem

2012-04-09 Thread Ken Ray
> That would make sense, but then how come we can pass the right edge of the > group (card-relative) as the third parameter? Shouldn't the third param be > the width of the group? Yes, *if* you don't want horizontal scrolling with the scroller… here's a good example of how I use it with a Data

Script editor instability

2012-04-09 Thread dunbarx
Since I upgraded to 5.5, now and then the script editor cannot be moved. Rather the titlebar becomes a sort of resize tab, as if I clicked and dragged the actual resize tab. So trying to move the script editor window only results in resizing that window.I think it only changes the width, not th

Re: Windows tab buttons

2012-04-09 Thread J. Landman Gay
On 4/9/12 8:28 PM, Mark Wieder wrote: I tried this with 5.02 on XP just before posting to make sure I wasn't misremembering something. Just an update: I made a new stack in Win XP with a single tab button, imported an image, hid it, and set the backpattern of the tab button to the ID of the

Re: Zipping Up an LC standalone program

2012-04-09 Thread Kee Nethery
Or just use the Mac Archive or Compress menu item in the Finder. It works great. Kee ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runre

Re: Windows tab buttons

2012-04-09 Thread J. Landman Gay
On 4/9/12 8:28 PM, Mark Wieder wrote: Jacque- Monday, April 9, 2012, 3:53:10 PM, you wrote: Thanks Mark. When I set the backpattern of a Windows tab button, nothing happens. I have toggled on and off the opaque with no effect (just in case.) All I see is the default system background. I'm m

Re: how to do this type of search

2012-04-09 Thread Mike Bonner
Yeah, i'm too fuzzy to answer questions lately. The proper method would be put wordoffset("is",m) into ww -- m being the container put lineindex(word ww of m) into tLine On Mon, Apr 9, 2012 at 7:33 PM, Mike Bonner wrote: > If using 5.5 there is also lineindex > put lineindex(wordoffset("is,m)) i

Re: Zipping Up an LC standalone program

2012-04-09 Thread Mark Wieder
Pete- Monday, April 9, 2012, 5:19:49 PM, you wrote: > Zipping the same file with the built-in OS X compress function works fine > and so does the CleanARchiver utitlity. > ANy ideas? Don't bother with the revzip things. They've never worked very well. You'll get better results and more features

Re: how to do this type of search

2012-04-09 Thread Mike Bonner
If using 5.5 there is also lineindex put lineindex(wordoffset("is,m)) into ww ^-- should give the line the word is found on. On Mon, Apr 9, 2012 at 7:28 PM, Peter M. Brigham, MD wrote: > On Apr 9, 2012, at 9:06 PM, Nicolas Cueto wrote: > > > > > > > If only it truly were that simple... > > > > In

Re: how to do this type of search

2012-04-09 Thread Peter M. Brigham, MD
On Apr 9, 2012, at 9:06 PM, Nicolas Cueto wrote: > > > If only it truly were that simple... > > In my example, lineOffset would return "3" for "is". But "5" is what I'm > after. Sorry, setting the wholematches to true then doing lineoffset will get you whole matches for lines. Instead: set

Re: Windows tab buttons

2012-04-09 Thread Mark Wieder
Jacque- Monday, April 9, 2012, 3:53:10 PM, you wrote: > Thanks Mark. When I set the backpattern of a Windows tab button, nothing > happens. I have toggled on and off the opaque with no effect (just in > case.) All I see is the default system background. > I'm mostly testing in WinXP, which is wh

Re: how to do this type of search

2012-04-09 Thread Peter M. Brigham, MD
Set the wholematches to true before your search, then it will only locate the string when it is a whole word. -- Peter Peter M. Brigham pmb...@gmail.com http://home.comcast.net/~pmbrig On Apr 9, 2012, at 9:06 PM, Nicolas Cueto wrote: >> The 'lineOffset' function will be your friend here... >

Re: how to do this type of search

2012-04-09 Thread Nicolas Cueto
> The 'lineOffset' function will be your friend here... If only it truly were that simple... In my example, lineOffset would return "3" for "is". But "5" is what I'm after. -- Nicolas Cueto ___ use-livecode mailing list use-livecode@lists.runrev.com P

Re: how to do this type of search

2012-04-09 Thread Phil Davis
Here is one simple way, assuming you have control over the word list: -- one-time prep - optimize list for searching local sMyWordList put url ("file:" & tPathToMyWords) into sMyWordList put tab before sMyWordList replace CR with (tab & CR & tab) in sMyWordList replace slash wit

RE: how to do this type of search

2012-04-09 Thread John Dixon
The 'lineOffset' function will be your friend here... Dixie > A straightforward question, I think. > > I have a list of 5 tab-delimited items per line. Each item can be > either a single word or a group of words separated by a "/". > > Example: > > abide abode/abidedabode/abided/abidden

Zipping Up an LC standalone program

2012-04-09 Thread Pete
Been putting together a litte script to get all my files ready for a release and used the revZIPxxx commands to make a zip file of the LC standalone program - this all on a Mac. The resulting zip file is only 4kb in size, obvioulsy not correct. The code is pretty straightfroward: revZipOpenAr

how to do this type of search

2012-04-09 Thread Nicolas Cueto
Hello All, A straightforward question, I think. I have a list of 5 tab-delimited items per line. Each item can be either a single word or a group of words separated by a "/". Example: abide abode/abidedabode/abided/abiddenabides abiding alight alit/alighted alit/alighted alights

Re: Windows tab buttons

2012-04-09 Thread J. Landman Gay
On 4/9/12 5:06 PM, Mark Wieder wrote: Has anyone found a way to trick the system into showing a pattern? Tab buttons on Windows *do* accept background patterns, and you can change the blending level. Thanks Mark. When I set the backpattern of a Windows tab button, nothing happens. I have to

Re: does Data Grid have a formattedHeight property?

2012-04-09 Thread Chris Sheffield
Thank you! I figured it had to be there somewhere. Missed it on my first pass through the docs. On Apr 9, 2012, at 4:34 PM, zryip theSlug wrote: > Hi Chris, > > On Mon, Apr 9, 2012 at 11:55 PM, Chris Sheffield wrote: >> I'm trying to set the height of a data grid based on the formattedHeight

Re: does Data Grid have a formattedHeight property?

2012-04-09 Thread zryip theSlug
Hi Chris, On Mon, Apr 9, 2012 at 11:55 PM, Chris Sheffield wrote: > I'm trying to set the height of a data grid based on the formattedHeight > property, but as far as I can tell, the formattedHeight of a data grid > returns the height. Is this a bug or by design? If by design, is there some >

Re: Windows tab buttons

2012-04-09 Thread Mark Wieder
Jacque- Monday, April 9, 2012, 8:18:58 AM, you wrote: > On Mac I can set a background pattern on a tab button. I can also make > the tab button non-opaque so a card image shows through. I can't do > either of those on a Windows tab button, which seems to always be opaque > and never accepts a ba

does Data Grid have a formattedHeight property?

2012-04-09 Thread Chris Sheffield
I'm trying to set the height of a data grid based on the formattedHeight property, but as far as I can tell, the formattedHeight of a data grid returns the height. Is this a bug or by design? If by design, is there some other way I can accomplish this? Trevor, are you listening? :-) Thanks, Chr

MobGUI issue - Objects Wrong Size On First Pass?

2012-04-09 Thread Mike Kerner
I have a MG project with several different orientations/resolutions/etc. set up for the different iOS devices. I noticed in testing that my higher resolution cards render at the iPhone (NON-retina) settings on the first pass. If I navigate away from the card that has the wrongly-rendered objects

Pattern draw changes

2012-04-09 Thread J. Landman Gay
The 5.x docs say a change has been made to how patterns are drawn: Prior to 5.0.0-dp-2, the origin of a pattern (where it starts tiling from) is the top left of the object from which the pattern is inherited. For example, the means that the origin of a pattern of a graphic inherited from the car

RE: iOS Control Instantiation problem

2012-04-09 Thread Ralph DiMola
-Original Message- From: use-livecode-boun...@lists.runrev.com [mailto:use-livecode-boun...@lists.runrev.com] On Behalf Of J. Landman Gay Sent: Monday, April 09, 2012 11:08 AM To: How to use LiveCode Subject: Re: iOS Control Instantiation problem On 4/9/12 2:22 AM, Ken Ray wrote: > > On Ap

Re: MobGui Rotation Problem

2012-04-09 Thread Mike Kerner
Andrew, As you're probably aware, MG stores the with/without status bar as another resolution group (you can find them in the custom properties of each card). It's certainly not perfect, but it's a little better. It seems now like objects (that appear correct when laying them out) do not obtain

Windows tab buttons

2012-04-09 Thread J. Landman Gay
On Mac I can set a background pattern on a tab button. I can also make the tab button non-opaque so a card image shows through. I can't do either of those on a Windows tab button, which seems to always be opaque and never accepts a background pattern. Has anyone found a way to trick the system

Re: MobGui Rotation Problem

2012-04-09 Thread Andrew Henshaw
Have you tried turning the statusbar on and off in Mobgui? That has worked for me. It seems to store the geometry for each, then occasionally does not detect the correct one when the device is rotated. If you turn the setting off and then on again for each card the geometry data is copied to

RE: iOS: deleting a line from a field

2012-04-09 Thread John Dixon
Using delete removes the line, but when using a scroller in iOS then readjust the height of the field that contains your lines and the rect theat the scroller should cover...:-) Dixie delete line lineCheck of fld 1 /* readjust the heights that need to be scrolled */ set the

Re: iOS Control Instantiation problem

2012-04-09 Thread J. Landman Gay
On 4/9/12 2:22 AM, Ken Ray wrote: On Apr 9, 2012, at 12:01 AM, J. Landman Gay wrote: On 4/8/12 9:44 PM, Ken Ray wrote: local sScrollerID on ShowScroller pViewRect,pContentHt -- pViewRect is the rect of the group that contains the scrolling list field I'm overlaying -- pContentHt is

iOS: deleting a line from a field

2012-04-09 Thread Graham Samuel
I have found that, for me, this line of script applied to a list field where the user has selected a line: delete the selectedLine works differently in the iOS environment compared to the IDE and desktop environments. In the IDE etc, the statement deletes the line and closes the gap remaini

MobGui Rotation Problem

2012-04-09 Thread Mike Kerner
Has anybody else noticed a problem with MobGui with using rotated devices? I have made both portrait and landscape cards. Then I fire up the simulator to test my app, and rotate. The first card looks good. When I switch to a second card, though, although the screen is rotated, MG has loaded the

Re: iOS Control Instantiation problem

2012-04-09 Thread Chris Sheffield
Console is located in /Applications/Utilities. You can also debug this way when running your app on a device. Simply open Xcode, and under your connected device, click the Console icon. Note that the Console application is used when you're running in the simulator, and the Console in Xcode is u

Re: iOS Control Instantiation problem

2012-04-09 Thread Graham Samuel
Sorry for the waste of bandwidth - I found it in the end: it's all to do with undetected errors in the code. In one case I had a badly formed statement that compiled without problems - I had put 'to' instead of 'into' - so the rest of the handler was skipped; in another case I had called iPhoneC

play sound from url on iOS

2012-04-09 Thread Klaus on-rev
Hi friends, short question, is it possible to play a sound file from an URL in iOS? If yes, what do I need to use: "play ..." or "iphonePlaySoundOnChannel..."? The docs do not mention URL, only in the "Video playback" section. Thanks a lot in advance! Best Klaus -- Klaus Major http://www.ma

Re: Unicode Problem

2012-04-09 Thread Kenji Kojima
Hi Takashi-san, >> 2. set the unicode text >> >> Here is my script. >> >> on mouseUp >> >> put "A1.txt" into theFileName >> put AbsolutePathFromStack(theFileName) into theFullPath >> >> open file theFullPath >> read from file theFullPath until EOF >> set the unicodeText of fld "A1" to it

Re: Unicode Problem

2012-04-09 Thread Kenji Kojima
Hi Takashi-san, try this set the unicodeText of fld "result" to the unicodeText of fld "temp" Best, -- Kenji Kojima / 小島健治 http://www.kenjikojima.com/ On Apr 8, 2012, at 9:15 PM, Takashi Yoshino wrote: > Hi, > > I found that the unicode function on LC 5.0.2 DOES works, > But, the u

Re: character recognition

2012-04-09 Thread John Craig
Thanks for the feedback - the sketch WAS pretty rough! I've updated it to be more accurate. On 06/04/2012 23:37, John Craig wrote: For interested parties. http://splash21.com/Gestures.html :D ___ use-livecode mailing list use-livecode@lists.runre

Re: iOS Control Instantiation problem

2012-04-09 Thread Ken Ray
On Apr 9, 2012, at 12:01 AM, J. Landman Gay wrote: > On 4/8/12 9:44 PM, Ken Ray wrote: > >> local sScrollerID >> on ShowScroller pViewRect,pContentHt >>-- pViewRect is the rect of the group that contains the scrolling list >> field I'm overlaying >>-- pContentHt is the total height of t