Re: Resizing a Text Field

2012-08-27 Thread Scott Rossi
Maybe something like this: on mouseUp put the topLeft of fld "myField" into TL put the formattedRect of line 1 to -1 of fld "myField" into theRect put the margins of fld "myField" into M if number of items of M = 1 then put M,M into M subtract item 1 of M from item 1 of theRect s

Re: Resizing a Text Field

2012-08-27 Thread Terry Judd
On 28/08/2012, at 03:11 PM, Peter Bogdanoff wrote: > Hi, > Does anyone have a quick and dirty script for resizing a field to fit text > content? Hi Peter - if the width of the field remains fixed then you can do something as simple as this put the rect of fld x into tRect put (item 2 of tRec

Resizing a Text Field

2012-08-27 Thread Peter Bogdanoff
Hi, Does anyone have a quick and dirty script for resizing a field to fit text content? Peter Bogdanoff UCLA On Aug 25, 2012, at 7:17 PM, Jerry Jensen wrote: > I LIKE IT! > > My needs are modest, and so is my tolerance for having to learn "real" SQL > syntax when I only want a tiny bit of

Re: Problem resizing a stack

2012-08-27 Thread Peter Haworth
Hi Jacque, The stacks opened modeless - I configure it that way by setting the crop cREVLoadInfo["mode"] to "modeless" when it is prepped for release. I'll have to check through the preOpenCard code to see if it uses "this stack" anywhere, or somewhere in the handler that is called from preOpenSta

Re: Team development solution

2012-08-27 Thread Magicgate Software - Skip Kimpel
All awesome ideas and great insight. Thank you everybody for your input! SKIP On Mon, Aug 27, 2012 at 10:31 PM, Bill Vlahos wrote: > While not probably as useful for team development but as an alternative to > source code repository, Pete Haworth's excellent lcStackDiff plugin is > another wa

Re: Team development solution

2012-08-27 Thread Bill Vlahos
While not probably as useful for team development but as an alternative to source code repository, Pete Haworth's excellent lcStackDiff plugin is another way to track your code. If offers the ability to compare the differences between different stacks (versions on your drive?) so you can see how

Re: Problem resizing a stack

2012-08-27 Thread J. Landman Gay
On 8/27/12 6:55 PM, Peter Haworth wrote: My stack resizes correctly if I send a message to the handler that does the resizing from the message box after the stack is displayed but the same handler does nothing when executed in preOpencard, even when the code is to send the message in zero millis

Re: Problem resizing a stack

2012-08-27 Thread Peter Haworth
Thanks Bob, I read that and there is one common factor - the Geometry Manager. However, I removed all the GM settings from the controls in the stack and still no joy. Pete lcSQL Software On Mon, Aug 27, 2012 at 5:03 PM, Bob Sneidar wrote: > I found this: > > http://fo

Re: Team development solution

2012-08-27 Thread Mark Wieder
Skip- Monday, August 27, 2012, 4:54:42 PM, you wrote: > I have 3.0.10 of glx2 installed. Ah. OK - I must have fixed that link post-version 10. I haven't released 3.0.11 yet because there are a couple of annoying bugs that have yet to be squashed. I'm still puzzling over the Alt-Gr key on the Ger

Re: Problem resizing a stack

2012-08-27 Thread Bob Sneidar
I found this: http://forums.runrev.com/phpBB2/viewtopic.php?f=8&t=12348 Bob On Aug 27, 2012, at 4:55 PM, Peter Haworth wrote: > I'm strongly thinking that preOpenCard is a suspect area for plugins. > > My stack resizes correctly if I send a message to the handler that does the > resizing from

Re: Problem resizing a stack

2012-08-27 Thread Peter Haworth
I'm strongly thinking that preOpenCard is a suspect area for plugins. My stack resizes correctly if I send a message to the handler that does the resizing from the message box after the stack is displayed but the same handler does nothing when executed in preOpencard, even when the code is to send

Re: Team development solution

2012-08-27 Thread Magicgate Software - Skip Kimpel
I have 3.0.10 of glx2 installed. SKIP On Mon, Aug 27, 2012 at 7:07 PM, Mark Wieder wrote: > Skip: > >> I get the 404 error from the VIEW DOCUMENTATION link in the plugin itself. > > I just tried that and it's working for me. Some of the other links need > tweaking, I think, but the "View Documen

Re: Team development solution

2012-08-27 Thread Mark Wieder
Skip: > I get the 404 error from the VIEW DOCUMENTATION link in the plugin itself. I just tried that and it's working for me. Some of the other links need tweaking, I think, but the "View Documentation" link goes to the right url. What version of glx2 are you running? -- Mark Wieder mwie...@a

Re: Team development solution

2012-08-27 Thread Peter Haworth
Thanks Mark, that sounds a whole lot better than anything that's been available in the past, at least that I've been aware of. Pete lcSQL Software On Mon, Aug 27, 2012 at 3:38 PM, Mark Wieder wrote: > Pete- > > > I'm > > definitely not a git expert but isn't the point of

Re: Security of LiveCode compiled files

2012-08-27 Thread Bob Sneidar
Okay, so there is an option in the application builder to move substacks into individual stackfiles. If you do this, then the encryption applied to the mainstack does NOT apply to the substacks, and the code is visible to them. Someone might say, "Well, don't do that!" but unless you know it's h

Re: Team development solution

2012-08-27 Thread Mark Wieder
Skip- > > Thanks Mark, > > I get the 404 error from the VIEW DOCUMENTATION link in the plugin itself. Ah. Yes, I have a note to myself to try to find those links and fix them. -- Mark Wieder mwie...@ahsoftware.net ___ use-livecode mailing list

Re: Team development solution

2012-08-27 Thread Mark Wieder
Pete- > I'm > definitely not a git expert but isn't the point of it the ability to check > out/in individual modules within a project? Or maybe glx2/git deal with > individual scripts? Yes, that's almost exactly it. But "objects" rather than "scripts"... the script is stored as one file and the

Re: Problem resizing a stack

2012-08-27 Thread Peter Haworth
Well I thought I had this problem licked but as usual, LC manages to provide some last minute surprises. The stack in question is destined to be a modeless plugin. I've been doing 90% of my testing with it as a regular toplevel stack, not a plugin and the fix for this problem (locking/unlocking m

Re: Security of LiveCode compiled files

2012-08-27 Thread Bob Sneidar
This is the only way that you can save changes to a stack that is a part of the application. I may have misspoken about substacks, I really meant stack files. ie. stacks that are included in the app. I was under the impression that substacks were treated like stack files when you compiled, but n

Re: Team development solution

2012-08-27 Thread Bob Sneidar
A versioning solution having the stack as the atomic unit is fairly useless for a large application like an accounting app for instance. I can conceive of a web based solution that could handle this, taking a stack on the server, adding handlers for managing versioning in a frontscript, and then

Re: Security of LiveCode compiled files

2012-08-27 Thread Peter Haworth
Ummm, is that really true? Maybe it's a terminology issue but if I look at the contents of an LC app on a mac, all I see is the compiled binary, no substacks. Am I missing something? Pete lcSQL Software On Mon, Aug 27, 2012 at 3:05 PM, Bob Sneidar wrote: > I should men

Re: Security of LiveCode compiled files

2012-08-27 Thread Bob Sneidar
I also password protected a simple stack and could NOT see the source code in a hex viewer. Seems pretty good to me. I am pretty sure LC uses AES256 now, so it is about as secure as anything else out there. Bob On Aug 27, 2012, at 2:30 PM, Magicgate Software - Skip Kimpel wrote: > How good i

Re: Security of LiveCode compiled files

2012-08-27 Thread Bob Sneidar
This question gets asked a lot. I just downloaded a hex viewer and inspected a compiled LC app. None of the coding is visible. I viewed an uncompiled stack and that DOES show the actual source code. I also downloaded a decompiler, but you kind of have to know what it was originally written in to

Re: Security of LiveCode compiled files

2012-08-27 Thread Peter Haworth
Hi Skip, You'll get multiple opinions on storing data within stack files. I'm of the school that application data ought to be in a database, not the stack but that's a separate discussion and there's arguments both ways. I don't think the code in the stacks is easily de-compiled. I've never look

Re: Team development solution

2012-08-27 Thread Magicgate Software - Skip Kimpel
Thanks Mark, I get the 404 error from the VIEW DOCUMENTATION link in the plugin itself. SKIP On Mon, Aug 27, 2012 at 5:44 PM, Mark Wieder wrote: > Skip- > >> There seems to be a problem with the documentation on glx2 as I get a >> 404 error. Just trying to figure out how this integrates into g

Re: Team development solution

2012-08-27 Thread Peter Haworth
The "stack file as atomic unit" always seems to be the sticking point when this comes up. I imagine in a large application with multiple developers, you might very well have a need for them to work individually on different stacks within a stack file, either on the layout or the script. I'm defin

Re: Team development solution

2012-08-27 Thread Mark Wieder
Skip- > There seems to be a problem with the documentation on glx2 as I get a > 404 error. Just trying to figure out how this integrates into git. Where are you getting the 404 from? The link to the documentation is the first link in the wiki, but here is the tl;dr: http://glx2.ahsoftware.net

Re: Security of LiveCode compiled files

2012-08-27 Thread Richard Gaskin
Skip Kimpel wrote: How good is the security of a compiled LC stack? Is it easily de-compiled or deconstructed? I am just trying to make sure of the security of internal data that I contain within the files that I distribute to the public. If the data is critical, code is probably not the plac

Re: Security of LiveCode compiled files

2012-08-27 Thread Andre Garzia
Skip, check out http://docs.runrev.com/Property/password This will encrypt the scripts and the string values in the custom properties. You can get more secure than that I think. Cheers andre On Mon, Aug 27, 2012 at 6:30 PM, Magicgate Software - Skip Kimpel < s...@magicgate.com> wrote: > How g

Security of LiveCode compiled files

2012-08-27 Thread Magicgate Software - Skip Kimpel
How good is the security of a compiled LC stack? Is it easily de-compiled or deconstructed? I am just trying to make sure of the security of internal data that I contain within the files that I distribute to the public. All input is greatly appreciated! SKIP ___

Font differences between IOS versions

2012-08-27 Thread Howard Bornstein
There are quite a few fonts that were not supported in earlier versions of IOS. I am targeting my app to run on IOS 4.3 and later and I want the app, when run under IOS 4.3, to have access to the same fonts as people running V5.x. To do so, I've done a custom install of the missing fonts into my ap

Re: mysql and anonymous db errors

2012-08-27 Thread Peter Haworth
Hi Andre, I'm not seeing that here. I just tried it out with sqlite and revexecuteSQL gave me the number of deleted rows, not zero. This is on LC 5.5.1 and OSX Lion. I think it does return zero for anything other than INSERT/UPDATE/DELETE statements - could there be another revexecuteSQL call in

Re: Team development solution

2012-08-27 Thread Magicgate Software - Skip Kimpel
There seems to be a problem with the documentation on glx2 as I get a 404 error. Just trying to figure out how this integrates into git. SKIP On Mon, Aug 27, 2012 at 4:47 PM, Mark Wieder wrote: > Skip- > >> >> Any thoughts on using a shared Dropbox folder for team development and >> file versio

Re: Team development solution

2012-08-27 Thread Mark Wieder
Skip- > > Any thoughts on using a shared Dropbox folder for team development and > file versioning? As Andre points out, if you can get by with the monolithic stack structure as your atomic unit, You have two choices. You'll have to set up your own file-locking mechanism if you go with Dropbox o

Re: mysql and anonymous db errors

2012-08-27 Thread Mark Wieder
Andre Garzia writes: > It depends, on 5.5.1 I am receiving back 0 from RevExecuteSQL with a DELETE > call that removes 12 records on a SQLite database... then in this case 0 > apparently means success and not the amount of records deleted. "Prior to SQLite version 3.6.5, the truncate optimizatio

Re: Team development solution

2012-08-27 Thread Andre Garzia
On Mon, Aug 27, 2012 at 5:23 PM, Magicgate Software - Skip Kimpel < s...@magicgate.com> wrote: > Sounds like a product / plugin waiting to be developed??? > There is Magic Carpet that does similar tasks and there is the git goodness that Mark put into glx2... > > SKIP > > On Mon, Aug 27, 2012

Re: Team development solution

2012-08-27 Thread Magicgate Software - Skip Kimpel
Sounds like a product / plugin waiting to be developed??? SKIP On Mon, Aug 27, 2012 at 4:16 PM, Andre Garzia wrote: > On Mon, Aug 27, 2012 at 5:10 PM, Magicgate Software - Skip Kimpel < > s...@magicgate.com> wrote: > >> Any thoughts on using a shared Dropbox folder for team development and >> fi

Re: RevDoc

2012-08-27 Thread Andre Garzia
On Mon, Aug 27, 2012 at 5:13 PM, Bob Sneidar wrote: > Now I am getting document not found in the help web site when I click > button "Demo" of card "Main". > That stack is an old stack. The internal link is yet to be updated. If you want to see a documentation demo, check out: http://andregarzi

Re: Team development solution

2012-08-27 Thread Andre Garzia
On Mon, Aug 27, 2012 at 5:10 PM, Magicgate Software - Skip Kimpel < s...@magicgate.com> wrote: > Any thoughts on using a shared Dropbox folder for team development and > file versioning? > If you do that, you will need a file locking mechanism. I can be as simple as writing a file with the same n

Re: RevDoc

2012-08-27 Thread Bob Sneidar
Now I am getting document not found in the help web site when I click button "Demo" of card "Main". ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences:

Re: mysql and anonymous db errors

2012-08-27 Thread Andre Garzia
On Mon, Aug 27, 2012 at 1:53 PM, Bob Sneidar wrote: > I think Peter is right. The result should be the number of rows affected > if successful. > It depends, on 5.5.1 I am receiving back 0 from RevExecuteSQL with a DELETE call that removes 12 records on a SQLite database... then in this case 0 a

Re: Team development solution

2012-08-27 Thread Magicgate Software - Skip Kimpel
Any thoughts on using a shared Dropbox folder for team development and file versioning? SKIP On Mon, Aug 27, 2012 at 3:45 PM, Mark Wieder wrote: > Skip- > > Monday, August 27, 2012, 11:41:54 AM, you wrote: > >> What do you all use for team development and source code repository? >> Is there such

Re: RevDoc

2012-08-27 Thread Bob Sneidar
I clicked everything BUT that Andre. I was so hypnotized by the lovely green arrow and the text that said "click here" that I never thought of looking further. Homer Simpson moment I guess. Thanks. :-) On Aug 27, 2012, at 12:10 PM, Andre Garzia wrote: > Bob, > > Are you downloading from: > >

Re: Team development solution

2012-08-27 Thread Mark Wieder
Skip- Monday, August 27, 2012, 11:41:54 AM, you wrote: > What do you all use for team development and source code repository? > Is there such a thing as GIT for LC? Git has been integrated into glx2 for a few months now. Complex tasks are delegated to gitk/gitx, but staging of files is automatic

Re: RevDoc

2012-08-27 Thread Andre Garzia
Bob, Are you downloading from: http://andregarzia.com/page/revdoc Because I just tested the download and it works. You need to click the "RevDoc" link in the download box in the bottom of the page. Cheers andre On Mon, Aug 27, 2012 at 1:50 PM, Bob Sneidar wrote: > Link on web page to downloa

Team development solution

2012-08-27 Thread Magicgate Software - Skip Kimpel
What do you all use for team development and source code repository? Is there such a thing as GIT for LC? SKIP ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription pref

Re: mysql and anonymous db errors

2012-08-27 Thread Bob Sneidar
Whoa I just received a post that I sent. I thot that wasn't supposed to happen? On Aug 27, 2012, at 9:53 AM, Bob Sneidar wrote: > I think Peter is right. The result should be the number of rows affected if > successful. > > Bob > > ___ use-livec

Re: [TEASER] A noSQL library is coming...

2012-08-27 Thread Bob Sneidar
Very impressive Andre. This is the very thing I was wanting when I first started using Revolution back in 2.0. Erm... is there any way we can talk Kevin into putting you in charge of development? ;-) Bob On Aug 25, 2012, at 6:59 PM, Andre Garzia wrote: > Hey Folks, > > I am putting the final

Re: mysql and anonymous db errors

2012-08-27 Thread Bob Sneidar
I think Peter is right. The result should be the number of rows affected if successful. Bob On Aug 26, 2012, at 11:52 AM, Dr. Hawkins wrote: > On Sunday, August 26, 2012, Peter Haworth wrote: > >> What is the text after "revdberr"? > > > That's why I called it an anonymous error--there *is

Re: RevDoc

2012-08-27 Thread Bob Sneidar
Link on web page to download no workie. Link to download is not clickable for me. Bob On Aug 25, 2012, at 11:24 AM, Andre Garzia wrote: > Alex, > > I've put a little page up with some info and links to download the latest > version of RevDoc > > http://andregarzia.com/page/revdoc > > Cheer

Re: RevDoc

2012-08-27 Thread Bob Sneidar
Should be bug free now! ;-) Bob On Aug 25, 2012, at 6:28 PM, Andre Garzia wrote: > Richmond and Mark, > > Saved a new version in the 2.7 format and fixed the bug that Mark found in > the processStack handler. > > :-D ___ use-livecode mailing list u