How can I copy from one stack to another with identical names?

2012-01-24 Thread Tiemo Hollmann TB
Hello, I have two versions of the same stack with a bunch of substacks. I would like to copy objects and scripts from one version to the other. I know, that I can't open two stacks with the same name for editing. I tried to open the two versions in two instances of LC, but it seems, that the

AW: How can I copy from one stack to another with identical names?

2012-01-24 Thread Tiemo Hollmann TB
I tried it again with two instances and now the paste menu is active and I can copy/paste between two instances of LC. I don't know, why paste wasn't active before - does anybody knows what could led to this behavior? Thanks Tiemo -Ursprüngliche Nachricht- Von:

Re: Getting Text from another open application window

2012-01-24 Thread Camm
Bob , Thanks No logging which would have worked. Regards Camm - Original Message - From: Bob Sneidar b...@twft.com To: How to use LiveCode use-livecode@lists.runrev.com Sent: Monday, 23 January, 2012 10:40:58 PM Subject: Re: Getting Text from another open application window I don't

Re: Getting Text from another open application window

2012-01-24 Thread Camm
Thanks , yeah that looks like the only way Regards Camm - Original Message - From: stephen barncard stephenrevoluti...@barncard.com To: How to use LiveCode use-livecode@lists.runrev.com Sent: Monday, 23 January, 2012 10:41:21 PM Subject: Re: Getting Text from another open application

Throttling Accelerated Rendering...

2012-01-24 Thread John Dixon
Has anyone been playing with the accelerated rendering ? Can it be switched on and off on a per card basis ? in an iOS mobile stack, I have a card in a stack that really benefits from this when scrolling a group that contains groups and it makes the scrolling really smooth... BUT... I

Re: Navigating XML in LiveCode

2012-01-24 Thread Bernard Devlin
You could also consider using JSON instead of XML. Particularly since we have 2 libraries around which convert LiveCode arrays to JSON and vice-versa. JSON is known as the fat-free xml. I don't think either format is paritcularly easy to scan by the naked eye. One library is by Andre, the

Re: Navigating XML in LiveCode

2012-01-24 Thread Graham Samuel
Thanks for the replies: Bob - I know about the 'host of commands' and I've done a lot of worked examples with them. It's the fact that LiveCode is happy with XML that was a factor in making me think of using it - that and the fact that, for my purposes, all the data could be saved in a

Re: Navigating XML in LiveCode

2012-01-24 Thread Richard Gaskin
Graham Samuel wrote: However the real reason that I'm trying to go down the XML route is that I need this data to persist and I don't want the overhead of storing it in a stack rather than just keeping a trivial amount of text which furthermore could be easily examined/edited by non-LC

Re: Opening a Supercard file in Livecode?

2012-01-24 Thread Richard Gaskin
Bob Earp wrote: Well, I think you are half correct Richard. These sort of decisions need to be made on a case by case basis On further consideration I think you're absolutely correct. I was talking about this with Ken Ray last night, and we hit on a distinction which may be useful for

Re: Opening a Supercard file in Livecode?

2012-01-24 Thread Richard Gaskin
Pete wrote: All good points. I guess I'm thinking of a different situation that multiple people working on the same project. When someone reports a bug that crept into a particular version of an application, it would be useful to see what changes were made to the stack that might have

Re: Breakpoints on a Global

2012-01-24 Thread J. Landman Gay
On 1/23/12 4:30 PM, Bob Sneidar wrote: I've mentioned it before, that if you set a breakpoint on a global, the IDE will crash to desktop. If you mean trying to break on a global declaration, I'm not sure how that could work at all. That's just a memory assignment. There's nothing to break

Re: Revlets on the web

2012-01-24 Thread J. Landman Gay
On 1/23/12 2:16 PM, Jim Hurley wrote: I think I knew how to do this at one time. I have an app saved for the Web as a revlet After saving as a standalone (for the web) a page opens in Safari that says it is a test page--BUT NOT APP. Is the app supposed to open in Safari as a RevLet? Yes,

Re: Opening a Supercard file in Livecode?

2012-01-24 Thread Pete
My thought is to not limit it to scripts necessarily, but all objects in a stack - stack, substacks, cards, controls, along with all their properties both standard and custom. I see it as a standalone program that would open a stack file, grab all the above info and write it into a database.

Re: Developing on Mac, standalone on Windows

2012-01-24 Thread Bob Sneidar
Set the alignment of the label to Centered, set the width to autofit, align objects by their centers. One thing I do that seems to help is I set the width of the object (field, label, button, menu) to the formatted width of the object. On Jan 23, 2012, at 4:19 PM, Pete wrote: Of course,

Re: AW: How can I copy from one stack to another with identical names?

2012-01-24 Thread Bob Sneidar
Sometimes if the app I am pasting into is not open when I copy, the app does not seem to be aware of the correct contents of the clipboard. This can especially be true if you have some kind of Office app installed, but I cannot state that for a certainty because I have never fully tested that

Re: Breakpoints on a Global

2012-01-24 Thread Bob Sneidar
No, I mean I want to break when the value of the variable is something. In the default script editor there is a tab called Breakpoints. You can set something called a watch. You can set the scope to be global, and enter a variable, and set the break to happen when the variable matches a

Re: Breakpoints on a Global

2012-01-24 Thread Bob Sneidar
Hi Phil. I cannot change the variable to a local because it is the array that contains the record data for the form I am using, so all objects have to be aware of it. You set a variable checkpoint either in the debugger, or by script. I'll be daggum if I remember the script command though.

Re: Opening a Supercard file in Livecode?

2012-01-24 Thread Bob Sneidar
Actually, I think plain text would work here better, unless arrays were stored in properties. Even then, you could save the arrays as text using the printKeys() function. There are text comparison utilities out there which are quite good at highlighting the differences between two plain text

Livecode handling of directories with non-ascii (?) characters.

2012-01-24 Thread Alex Tweedly
I'm not sure if this is a LC question, or an OSX question, or a unicode question, or ... or what. I have a folder with funny characters (:-) in its name, and that seems to cause a problem in LC. When I do 'ls' in terminal, I get Björg Þórhallsdóttir I cannot copy/paste this into a LC

RE: Livecode handling of directories with non-ascii (?) characters.

2012-01-24 Thread Mark Powell
Alex, I have had this problem since the Rev 2.0 days and as far as I can tell it is not fixed. In LC, I can literally get the files and immediately ask is there a file (line whatever of it) and I get a doesn't exist if line whatever of its contains a violater character in the file name. This

Re: Livecode handling of directories with non-ascii (?) characters.

2012-01-24 Thread Mark Schonewille
Alex, No, LiveCode is hopelessly obsolete when it comes to unicode and interaction with other programmes or the operating system. You could try to create your own file management system for LiveCode using the shell, AppleScript and VBScript. LiveCode is the only current cross-platform tool I

Re: Livecode handling of directories with non-ascii (?) characters.

2012-01-24 Thread Mark Schonewille
Mark, It is a LC question. Definitely an LC question. -- Best regards, Mark Schonewille Economy-x-Talk Consulting and Software Engineering Homepage: http://economy-x-talk.com Twitter: http://twitter.com/xtalkprogrammer KvK: 50277553 Download the Installer Maker Plugin 1.7 for LiveCode here

Re: Navigating XML in LiveCode

2012-01-24 Thread Ken Ray
Ken - ever helpful! I'm sorry I grumbled about not getting replies. That's just stupid, given that everyone on this list is busy, and it's bad manners too. Anyway your reply (which I haven't quoted in full) shows me how to get round my specific issues, so I see that it can be done: what I

Re: Opening a Supercard file in Livecode?

2012-01-24 Thread Pete
Bob, I think you'd have to find some way to preserve object IDs or a lot of stuff would break. Datagrids, for example, store the row template as a long id. And, as you pointed out, behaviors. On Tue, Jan 24, 2012 at 9:43 AM, Bob Sneidar b...@twft.com wrote: Actually, I think plain text would

Re: Developing on Mac, standalone on Windows

2012-01-24 Thread Pete
I do all that already, still looks different on Windows than on Mac, I think because of the different character widths of different fonts. The only way I can think to keep it looking the same is do all the centering, etc when a card is opened. On Tue, Jan 24, 2012 at 9:14 AM, Bob Sneidar

Re: Navigating XML in LiveCode

2012-01-24 Thread stephen barncard
one can even store fields that contain returns - replace them with an 'invisible' character such as vertical tab and each record will be one line. Tab-delimited text is so much easier to deal with - the text chunking commands you already know work great - and are very fast. On 24 January 2012

Re: Breakpoints on a Global

2012-01-24 Thread Phil Davis
I see. After reading Jacque's contribution also, maybe you want something like this in your script? if the keys of gMyGlobal = empty then breakpoint Phil On 1/24/12 9:30 AM, Bob Sneidar wrote: Hi Phil. I cannot change the variable to a local because it is the array that contains the

Re: Breakpoints on a Global

2012-01-24 Thread Bob Sneidar
Aye I can already do that as a scripted breakpoint. if myGlobal is not an array. But where to put it? By the time it comes back from something I call a single key has been created by another handler, and there is no line I have encountered so far that actually sets it to empty. What is actually

Re: Developing on Mac, standalone on Windows

2012-01-24 Thread Ken Ray
On Jan 24, 2012, at 2:03 PM, Pete wrote: I do all that already, still looks different on Windows than on Mac, I think because of the different character widths of different fonts. The only way I can think to keep it looking the same is do all the centering, etc when a card is opened. Oh

How do I make something like a html imagemap on a graphical object?

2012-01-24 Thread William de Smet
Hi there, I made a graphical oval object pacman with a startAngle of 28 and a arcAngle of 304. It's background is yellow. Want I want to do is something like a html image map: define an area where something happens. I want the cursor to change 'on mouseenter' but only when the mouse is over

Re: Opening a Supercard file in Livecode?

2012-01-24 Thread Bob Sneidar
Yes the more I think about it, the more tedious it becomes. It seems the only way to do multiuser dev is to have the source stack available to a kind of checkout engine. A dev would have to check out an object at which point it would be unavailable to any other user. And you would have to have

Re: Breakpoints on a Global

2012-01-24 Thread Phil Davis
Hmmm. You probably already tried this, but... can you check for a non-empty value in dgHilitedIndex before allowing the 'put... into...' to proceed? Of course that's still a problem if it happens in 14 dozen different places. Maybe put the actual setting of the array inside a setProp handler,

Re: Throttling Accelerated Rendering...

2012-01-24 Thread J. Landman Gay
On 1/24/12 11:13 AM, John Dixon wrote: Jacque... From where are you handling the switching... from a preOpenCard handler ?... and how about when switching it off ?... (now I'm going to say something stupid) from the closeCard handler... the reason I ask, is I have tried this but am

Re: Opening a Supercard file in Livecode?

2012-01-24 Thread stephen barncard
uniquely naming all objects and using 'get the id of object name' instead of using any IDs at all would seem to solve this problem... of course would have to be a convention when starting a project. why wouldn't this work? On 24 January 2012 13:20, Bob Sneidar b...@twft.com wrote: Yes the

Re: Breakpoints on a Global

2012-01-24 Thread Bob Sneidar
yup found one instance of that. Have to be careful though because I have a second datagrid that is populated with related table data and uses the values in the array in it's own query. sigh I just have to pore through the code. Bob On Jan 24, 2012, at 1:22 PM, Phil Davis wrote: Hmmm. You

Re: How do I make something like a html imagemap on a graphical object?

2012-01-24 Thread Ken Corey
Hi William, Take a look at the newletter issue 67: http://runrev.com/newsletter/march/issue67/newsletter2.php I happened to be checking things out in the old newsletters, and noticed that it does what you're talking about (along with a bit more, I gather). -Ken On 24/01/2012 21:11, William

Answer file with multiple types

2012-01-24 Thread Bill Vlahos
This statement works for .txt files. answer file Select the text file with type Text|txt How would I allow both .txt and .csv files as multiple types? The documentation says it can be done but I'm not seeing the right syntax. Thanks, Bill Vlahos _ InfoWallet

Re: Breakpoints on a Global

2012-01-24 Thread Bob Sneidar
Okay I found another obscure instance of the same thing and fixed it. I have learned a valuable lesson: Bail from handlers when there is no point proceeding. An empty value for the dhHilitedIndex in this particular handler produced the same visible results, but ended up setting my array (which

Re: Answer file with multiple types

2012-01-24 Thread Ken Ray
On Jan 24, 2012, at 3:49 PM, Bill Vlahos wrote: This statement works for .txt files. answer file Select the text file with type Text|txt How would I allow both .txt and .csv files as multiple types? The documentation says it can be done but I'm not seeing the right syntax. answer file

Re: Opening a Supercard file in Livecode?

2012-01-24 Thread Bob Sneidar
It would work for user created objects, except how do you get datagrids to do this? All kinds of things in the datagrid are linked by long ID's to their behaviors by the engine. I'd be nervous about going into any functioning datagrid and trying to update all the object behavior references, and

Re: Opening a Supercard file in Livecode?

2012-01-24 Thread stephen barncard
I am sure the Slug and/or Trevor will chime in here.. good points the redirection might have an impact on the speed in this case...Maybe a special 'data grid fixer' handler On 24 January 2012 14:06, Bob Sneidar b...@twft.com wrote: It would work for user created objects, except how

standalone icon

2012-01-24 Thread Art DiVito
Is it okay to use LC's default icons (they seem to be different for Macs and PCs) for a market product? How does one obtain a custom-made icon? Do you have to have separate ones for Macs and PCs? Can anyone here help me with this? Thanks. ___

Re: Opening a Supercard file in Livecode?

2012-01-24 Thread Pete
I think we're each looking at this from different perspectives. My objective is to compare two versions of the same stack file and list the differences between them, that's it. All the data collected about the stack would be have to be keyed by object ids (perhaps with the exception of stacks

[ANN] mergZXing 1.0.3

2012-01-24 Thread Monte Goulding
Hi All I have just updated mergZXing with a new bonus external mergMessage all still for the early bird price of US$49. With mergMessage you can send sms from livecode. There's one command: mergMessage [pNumbers],[pBody] and one function: mergMessageCanSendText() Cheers Monte

Re: Opening a Supercard file in Livecode?

2012-01-24 Thread Bob Sneidar
Aye but the problems you face are the same ones with version control and multiuser development. Almost the exact same set of problems actually. Bob On Jan 24, 2012, at 2:41 PM, Pete wrote: I think we're each looking at this from different perspectives. My objective is to compare two

Re: standalone icon

2012-01-24 Thread Mark Talluto
On Jan 24, 2012, at 2:40 PM, Art DiVito wrote: Is it okay to use LC's default icons (they seem to be different for Macs and PCs) for a market product? How does one obtain a custom-made icon? Do you have to have separate ones for Macs and PCs? Can anyone here help me with this? Thanks.

Geometry Manager

2012-01-24 Thread Pete
Are there any lessons/examples/hints anywhere re using up the Geometry settings for an object? No being a very graphically inclined person, I'm having a hell of a time trying to figure out how to make it work! -- Pete Molly's Revenge http://www.mollysrevenge.com

Re: [ANN] mergZXing 1.0.3

2012-01-24 Thread Mark Talluto
Hi Monte, This is excellent. This feature alone enticed me to buy your work. What are the rights on using your external in commercial work? Best regards, Mark Talluto http://www.canelasoftware.com On Jan 24, 2012, at 2:56 PM, Monte Goulding wrote: Hi All I have just updated

Re: Developing on Mac, standalone on Windows

2012-01-24 Thread Pete
Hi Ken, The problem I'm having is centering two controls - one is a button with an icon assigned to it and set to not display the name, and the other is a label immediately below the icon that displays what would normally be the button name. I set the two obects to have their vertical centers

Re: Geometry Manager

2012-01-24 Thread Colin Holgate
It is somewhat abstract. Try this lesson: http://lessons.runrev.com/s/lessons/m/4067/l/19026-Geometry-Manager On Jan 24, 2012, at 11:07 PM, Pete wrote: Are there any lessons/examples/hints anywhere re using up the Geometry settings for an object? No being a very graphically inclined person,

Re: [ANN] mergZXing 1.0.3

2012-01-24 Thread Mark Talluto
Hi Monte, I just found the licensing details on your server. Should have looked before asking. Best regards, Mark Talluto http://www.canelasoftware.com On Jan 24, 2012, at 2:56 PM, Monte Goulding wrote: Hi All I have just updated mergZXing with a new bonus external mergMessage all

Re: [ANN] mergZXing 1.0.3

2012-01-24 Thread Andre Garzia
Those externals are great!!! Guys, don't miss this one! On Tue, Jan 24, 2012 at 9:14 PM, Mark Talluto use...@canelasoftware.comwrote: Hi Monte, This is excellent. This feature alone enticed me to buy your work. What are the rights on using your external in commercial work? Best

Re: Opening a Supercard file in Livecode?

2012-01-24 Thread stephen barncard
there's the altID property, but it has a 16 bit range 65535 On 24 January 2012 14:41, Pete p...@mollysrevenge.com wrote: I think we're each looking at this from different perspectives. Isn't there some sort of user-assigned id available? That could help. Stephen Barncard San Francisco

Re: [ANN] mergZXing 1.0.3

2012-01-24 Thread Monte Goulding
There is a separate license for each external as some use open source libraries. Cheers Monte On 25/01/2012, at 10:17 AM, Mark Talluto wrote: Hi Monte, I just found the licensing details on your server. Should have looked before asking. Best regards, Mark Talluto

Re: Opening a Supercard file in Livecode?

2012-01-24 Thread Richard Gaskin
stephen barncard wrote: there's the altID property, but it has a 16 bit range 65535 You shouldn't need to use the altID for this, since the ability to set the ID property of any object was added to the engine a few versions back specifically to support efforts to make XML-stack translators

Re: Opening a Supercard file in Livecode?

2012-01-24 Thread stephen barncard
how are conflicts handled if one does that? Error thrown? On 24 January 2012 16:00, Pete p...@mollysrevenge.com wrote: Thanks Richard, I remember now you posted that a couple days back. So you just set the id of control xyz to do that? Stephen Barncard San Francisco Ca. USA more about sqb

Re: standalone icon

2012-01-24 Thread Bob Sneidar
Really?? I thought the EULA allowed for the use of the Livecode icons in a project made with Livecode?? Bob On Jan 24, 2012, at 3:05 PM, Mark Talluto wrote: On Jan 24, 2012, at 2:40 PM, Art DiVito wrote: Is it okay to use LC's default icons (they seem to be different for Macs and PCs)

Re: Geometry Manager

2012-01-24 Thread Bob Sneidar
Someone made a better geometry manager called NativeGeometry. Check it out. It's supposed to be much superior to the Livecode one. Bob On Jan 24, 2012, at 3:07 PM, Pete wrote: Are there any lessons/examples/hints anywhere re using up the Geometry settings for an object? No being a very

Re: Geometry Manager

2012-01-24 Thread Pete
Thanks Colin. I read the lesson but still can't get the effect I want. Maybe I'm trying to use the geometry manager for something it's not designed to do? I have a group on a card that has a number of controls in it. If the user resizes the card, I want the group to resize in proportion to the

Re: Geometry Manager

2012-01-24 Thread J. Landman Gay
On 1/24/12 7:25 PM, Pete wrote: I've tried linking the group to different combinations of the edges of the card, other controls, absolute and relative links and no matter how I resize the card, the group never resizes. Is the group's lockLoc set to true? After the geometry manager finishes,

Re: Breakpoints on a Global

2012-01-24 Thread Mark Wieder
Bob Sneidar bobs@... writes: though. This is a feature that used to work. I know because GLX2 used to do this successfully. You're confusing breakpoints and watched variables. It used to be that you couldn't set a watch on a global variable, but that bug (6506) was fixed in version 4.5.2. If

Re: Looking for beta testers import of passwords to InfoWallet

2012-01-24 Thread Bill Vlahos
Thanks to all the folks who tested the new version and gave me feedback. I'm happy to announce I was able to release the new version tonight that can import passwords from other programs. Bill Vlahos _ InfoWallet (http://www.infowallet.com) is about keeping your important life

Re: Geometry Manager

2012-01-24 Thread Pete
Hi Jacque, Setting lockloc to true fixed it, thanks! For some reason or other, I have a hangup about that property - always seems like it's the wrong way round, with locked meaning it will change dimensions and not locked meaning it won't. My one remaining piece of the puzzle is to only have the