Re: Switch, Case and wild-cards?

2012-12-29 Thread Richmond
On 12/29/2012 04:40 AM, Mark Wieder wrote: Richmond- Friday, December 28, 2012, 2:24:28 PM, you wrote: I have a string of characters in a language that go something like this: ZaXbbdsfZvfghXaasn now I have to translate those into a different type of representation; and the 3 rubs are these:

Re: Switch, Case and wild-cards?

2012-12-29 Thread Richmond
On 12/29/2012 04:40 AM, Mark Wieder wrote: Richmond- Friday, December 28, 2012, 2:24:28 PM, you wrote: I have a string of characters in a language that go something like this: ZaXbbdsfZvfghXaasn now I have to translate those into a different type of representation; and the 3 rubs are these:

RE:Learning LiveCode

2012-12-29 Thread Nigel Soden
To my fellow LiceCode citizens :) My first posting was on the subject of learning LiveCode. I've in the last couple of days been struggling with what I conceder a small piece of additional code to get a date picker to work. Hence my first e-mail on the subject matter of learning LiveCode as

RevOnline

2012-12-29 Thread Richmond
Is RevOnline totally defunct? Richmond. ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode

Search, Replace and Unicode

2012-12-29 Thread Richmond
'Tis very easy to do this: on mouseUp replace ZaX with XaZ in fld TEKST end mouseUp and ZaXbbdsfZvfghXaasn will magically become: XaZbbdsfZvfghXaasn. So, clutching at straws, I tried this: on mouseUp set the useUnicode to true replace (numToChar(2367)) with (numToChar(105)) end

Re: Learning LiveCode

2012-12-29 Thread Richmond
Dear Nigel Soden, I see that you have got yourself all hot and sweaty; possibly rather too soon :) Have you had a look here? http://lessons.runrev.com/s/lessons sincerely, Richmond. ___ use-livecode mailing list use-livecode@lists.runrev.com

Re: RevOnline

2012-12-29 Thread Richard Gaskin
Richmond wrote: Is RevOnline totally defunct? Seems to work well here in v5.5.3. What's not working for you? -- Richard Gaskin Fourth World LiveCode training and consulting: http://www.fourthworld.com Webzine for LiveCode developers: http://www.LiveCodeJournal.com Follow me on Twitter:

Re: Search, Replace and Unicode

2012-12-29 Thread Richmond
On 12/29/2012 04:35 PM, Richmond wrote: 'Tis very easy to do this: on mouseUp replace ZaX with XaZ in fld TEKST end mouseUp and ZaXbbdsfZvfghXaasn will magically become: XaZbbdsfZvfghXaasn. So, clutching at straws, I tried this: on mouseUp set the useUnicode to true replace

Re: Search, Replace and Unicode

2012-12-29 Thread Richmond
Now, of course, the real fun starts when one wants to play around with wild-cards so that one can, say, swap Z and X around in a unicodeText field that contains stuff like this: ZaXddZfXabcdeZoX as I am unclear how to do that with a non-unicodeText field, the next step seems a bit

Re: RevOnline

2012-12-29 Thread Richmond
On 12/29/2012 05:08 PM, Richard Gaskin wrote: Richmond wrote: Is RevOnline totally defunct? Seems to work well here in v5.5.3. What's not working for you? LC 4.5 Linux, machine number 1 (UbuntuStudio 12.10) : Connection failure Linux, machine number 2 (UbuntuStudio 12.10) : works. Mac:

Re: Search, Replace and Unicode

2012-12-29 Thread Richmond
On 12/29/2012 05:48 PM, Richmond wrote: Now, of course, the real fun starts when one wants to play around with wild-cards so that one can, say, swap Z and X around in a unicodeText field that contains stuff like this: ZaXddZfXabcdeZoX as I am unclear how to do that with a non-unicodeText

Re: threeDBox?

2012-12-29 Thread Peter Haworth
OK, seems to be working now, must have been a typo I guess. As you say, the threedbox effect looks pretty bad unless you have a background that makes it stand out. I'm using the box textstyle now and that looks better. Only surprise was that the box stops after the last character of text in the

Avoiding font substitution, cross-platform

2012-12-29 Thread tbodine
Hi, all. How do you avoid font substitution of static text fields in your standalones that are destined for different systems and platforms? (In Director, we had three methods: embedding fonts, converting text blocks to bitmaps and adding a fontmap file with cross-platform font substitutions

Re: Avoiding font substitution, cross-platform

2012-12-29 Thread Mark Talluto
On Dec 29, 2012, at 10:50 AM, tbodine wrote: Hi, all. How do you avoid font substitution of static text fields in your standalones that are destined for different systems and platforms? (In Director, we had three methods: embedding fonts, converting text blocks to bitmaps and adding a

Re: Search, Replace and Unicode

2012-12-29 Thread Phil Davis
Hi Richmond, Just curious - does setting the lockMessages lockScreen to true speed it up any? Or hiding the field? (Sorry if these have already been answered; I'm not following the thread too closely) On 12/29/12 8:18 AM, Richmond wrote: ran it through unicode addresses from 2325 to 62738,

Re: Avoiding font substitution, cross-platform

2012-12-29 Thread Richmond
On 12/29/2012 08:50 PM, tbodine wrote: Hi, all. How do you avoid font substitution of static text fields in your standalones that are destined for different systems and platforms? (In Director, we had three methods: embedding fonts, converting text blocks to bitmaps and adding a fontmap file

Re: Search, Replace and Unicode

2012-12-29 Thread Richmond
On 12/29/2012 09:38 PM, Phil Davis wrote: Hi Richmond, Just curious - does setting the lockMessages lockScreen to true speed it up any? Or hiding the field? (Sorry if these have already been answered; I'm not following the thread too closely) I really don't know as I am so thick those

Re: Help with Regex (was Re: Switch, Case and wild-cards?)

2012-12-29 Thread Peter Alcibiades
Firefox plugin is decent. A tutorial, very basic to start, but excellent and getting more sophisticated as it goes along, here: http://regex.learncodethehardway.org/book/ Recommended, even though it does start out assuming minimal knowledge. Peter -- View this message in context:

Re: Learning LiveCode

2012-12-29 Thread J. Landman Gay
On 12/29/12 7:06 AM, Nigel Soden wrote: Anyway, the rant is over and it cost me 49 dollars. Cracker's for the next week. There are almost always free options for the most common things, including calendars. While you are still learning, I'd hate to see your groceries suffer unnecessarily.

Re: Search, Replace and Unicode

2012-12-29 Thread Richmond
On 12/29/2012 09:38 PM, Phil Davis wrote: Hi Richmond, Just curious - does setting the lockMessages lockScreen to true speed it up any? Or hiding the field? (Sorry if these have already been answered; I'm not following the thread too closely) I ran unicode replace script that took 8

Re: Search, Replace and Unicode

2012-12-29 Thread Phil Davis
On 12/29/12 11:52 AM, Richmond wrote: On 12/29/2012 09:38 PM, Phil Davis wrote: Hi Richmond, Just curious - does setting the lockMessages lockScreen to true speed it up any? Or hiding the field? (Sorry if these have already been answered; I'm not following the thread too closely) I

Re: Help with Regex (was Re: Switch, Case and wild-cards?)

2012-12-29 Thread Peter Haworth
Thanks Peter, another weapon to add to my learning arsenal. Pete lcSQL Software http://www.lcsql.com On Sat, Dec 29, 2012 at 12:14 PM, Peter Alcibiades palcibiades-fi...@yahoo.co.uk wrote: Firefox plugin is decent. A tutorial, very basic to start, but excellent and getting more

Re: Avoiding font substitution, cross-platform

2012-12-29 Thread tbodine
Thanks, gents, and happy new year to you. I'm going old school with the image export/import! -- Tom Bodine -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/Avoiding-font-substitution-cross-platform-tp4658452p4658462.html Sent from the Revolution - User mailing

Re: Avoiding font substitution, cross-platform

2012-12-29 Thread Phil Davis
On 12/29/12 12:51 PM, tbodine wrote: Thanks, gents, and happy new year to you. I'm going old school with the image export/import! -- Tom Bodine Hi Tom, That is a great way to avoid special configuration requirements on the machines where your apps will run. Best - Phil Davis -- View

Re: Learning LiveCode

2012-12-29 Thread Dr. Hawkins
On Thursday, December 27, 2012, Peter Haworth wrote: Nah, it's left to right Harumph. all variants on two-dimensional thinking . . . -- Richard E. Hawkins, Esq. (702) 508-8462 ___ use-livecode mailing list use-livecode@lists.runrev.com Please

Re: Learning LiveCode

2012-12-29 Thread Dr. Hawkins
On Thursday, December 27, 2012, J. Landman Gay wrote: On 12/27/12 9:38 PM, Peter Haworth wrote: Nah, it's left to right. Heretic. Now wait a minut . . . There's no reason to accuse him of using emacs . . . :) -- Richard E. Hawkins, Esq. (702) 508-8462

Checkbox with dash?

2012-12-29 Thread Paul Foraker
The Mac interface guidelines indicate that a checkbox has two states, checked and unchecked. Except when it has a third state, dashed, indicating that not all the conditions are met for checking or unchecking. I have a field states containing a list of the states of the U.S. and a set of

Re: Checkbox with dash?

2012-12-29 Thread Mark Schonewille
Paul, If the image is too low, add 2 rows of transparent pixels at the bottom of the image. -- Best regards, Mark Schonewille Economy-x-Talk Consulting and Software Engineering Homepage: http://economy-x-talk.com Twitter: http://twitter.com/xtalkprogrammer KvK: 50277553 Use Color Converter

What's On The Menu?

2012-12-29 Thread Peter Haworth
It seems that you cannot have cascading items in an option menu. The secondary items appear as first level items with a tab before them. As far I can tell, I have to use a pulldown menu to be able to use cascading menu items. However, no matter which item you choose on a pulldown menu, when the

Re: Checkbox with dash?

2012-12-29 Thread Peter Haworth
Hi Paul, I assume you are setting the imageSOurce of char whatever of your field to display the checkbox? Try using the textShift property of the character containing the checkbox image. A negative number moves the image up and a positive number moves it down relative to the text in the line

Re: What's On The Menu?

2012-12-29 Thread Mark Wieder
Pete- Saturday, December 29, 2012, 2:13:06 PM, you wrote: It seems that you cannot have cascading items in an option menu. The secondary items appear as first level items with a tab before them. As far I can tell, I have to use a pulldown menu to be able to use cascading menu items.

Re: Checkbox with dash?

2012-12-29 Thread Mark Wieder
Paul- Saturday, December 29, 2012, 1:44:00 PM, you wrote: I tried converting the checkboxes to a list in a field and setting char 1 of each line to an image of a checkbox checked, unchecked, or dashed. That doesn't work because the baseline of the name of the region appears at the baseline

Re: What's On The Menu?

2012-12-29 Thread Peter Haworth
I'll use LC as an example. Lets say you have an application that needs to provide the ability to pick a card from any of the open stacks. The option menu would list the stacks with subitems for the cards in each stack. Same sort of thing for perhaps CDs in a music collection. The first level

Re: What's On The Menu?

2012-12-29 Thread Mark Wieder
Pete- I see why you would want cascading menus, but I don't see what an option menu buys you over a pulldown menu, aside from the one-liner of having to set the label yourself. -- -Mark Wieder mwie...@ahsoftware.net ___ use-livecode mailing list

Re: Switch, Case and wild-cards?

2012-12-29 Thread Robert Sneidar
Are Z and X the only characters that appear out of place? They also seem to be the only uppercase letters, unless that is just a coincidence of your example. If not a coincidence, why not make two passes, moving the uppercase letters first? I am not sure what you mean in the third rule. Are you

Re: threeDBox?

2012-12-29 Thread Robert Sneidar
Yeah I fail to see the point to using that property. Even with a backColor it looks pretty cheesy. Bob On Dec 29, 2012, at 10:16 AM, Peter Haworth wrote: OK, seems to be working now, must have been a typo I guess. As you say, the threedbox effect looks pretty bad unless you have a

Dockable Panes

2012-12-29 Thread mfstuart
Hey all, I'm interested in building an LC desktop application interface that has dockable panes/panels in it. What are dockable panes? For example: think of a window that has a vertical and a horizontal line, to form 4 panes in the window. In this example: Top left pane is #1 Top right pane is

Re: What's On The Menu?

2012-12-29 Thread Peter Haworth
When you click on an option menu, the last choice you made from it appears under the cursor and is highlighted. That doesn't happen with pulldown menus and so far I haven't found a way to make it happen. Jujst a convenience and it doesn't really matter in my case since there's a fairly short

Re: What's On The Menu?

2012-12-29 Thread Richard Gaskin
Would it be practical in your layout to consider using two option controls, in which the first one sets the range of values for the second? -- Richard Gaskin Fourth World Systems Software Design and Development for Desktop, Mobile, and Web

Re: Help with Regex (was Re: Switch, Case and wild-cards?)

2012-12-29 Thread Mark Laffoon
I've always found RegExhibit from http://roger-jolly.nl/software/#regexhibithelpful. Also, for reference material, http://www.regular-expressions.info/ has been of great help. Just my 2 cents. Mark -- I am CDO. This is a lot like OCD, except the letters are in alphabetical order... as they

Re: Dockable Panes

2012-12-29 Thread Robert Sneidar
Is the area the panes display in fixed? Are the pane sizes fixed? I think you need to investigate drag and drop commands and functions. If the panes are a fixed size and their positions are fixed, it's pretty simple to determine the next open space (if that's what you want) and see if anything

Re: What's On The Menu?

2012-12-29 Thread Robert Sneidar
Just to weigh in here, cascading menus works fine for a limited number of choices, but if there are many choices, and the menus need to scroll to see them all, cascading menus become a REAL irritation, especially if the user misses while trying to move the mouse to the right to get to the next

Re: Dockable Panes

2012-12-29 Thread Dick Kriesel
On Dec 29, 2012, at 5:48 PM, mfstu...@cox.net wrote: example: if the bottom left pane (#3) was dragged into the top left position (#1), panes 1 and 3 take up the space of 1 and 3, and are presented as a tab control. Panes 2 and 4 remain as they were. Hi, Mark. What happens when we drag an

Re: What's On The Menu?

2012-12-29 Thread Paul Hibbert
On 2012-12-29, at 5:52 PM, Peter Haworth wrote: When you click on an option menu, the last choice you made from it appears under the cursor and is highlighted. That doesn't happen with pulldown menus and so far I haven't found a way to make it happen. Jujst a convenience and it doesn't

Re: Dockable Panes

2012-12-29 Thread Mark Stuart
Hi Dick and Bob, The idea is that any pane can be dropped onto the position of any other pane. So if all 4 panes were in their original position, pane #3 could be dragged and dropped onto pane #4 position. Likewise, pane #2 could be dropped onto pane #3 position. All this is just my idea from what

Re: What's On The Menu?

2012-12-29 Thread Peter Haworth
Hi Richard, Thanks for the suggestion. I do use that technique but in this case, a cascading menu feels more appropriate. There are 6 first level items and two of them have second level items which are dynamically loaded but probably not more than two or three of them. The pulldown menu works

Re: What's On The Menu?

2012-12-29 Thread Peter Haworth
Thanks Paul, I'll give that a whirl. Pete lcSQL Software http://www.lcsql.com On Sat, Dec 29, 2012 at 8:53 PM, Paul Hibbert l...@pbh.on-rev.com wrote: AFAIK you can't auto highlight the previous menu choice for a pulldown menu (although I may be wrong), but you can add a checkmark to the

Re: Help with Regex (was Re: Switch, Case and wild-cards?)

2012-12-29 Thread Peter Haworth
Thanks Mark, more good resources. A question in the back of my mind now that I know enough about regexp to be dangerous. Is parsing a language something that can be done with regular expressions? I have a program in which I jumped though all sorts of hoops to parse SQL statements. It works

Re: Dockable Panes

2012-12-29 Thread Dick Kriesel
On Dec 29, 2012, at 9:32 PM, Mark Stuart mfstu...@cox.net wrote: Likewise, pane #2 could be dropped onto pane #3 position. Then, what appears where pane #2 was? ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to

Re: Help with Regex (was Re: Switch, Case and wild-cards?)

2012-12-29 Thread Peter Alcibiades
I don't know, but this is what the author of the 'learn regex the hard way' book has to say:- /The key to using regular expressions correctly is to know where their usefulness ends and when you need to bust out a lexer. You also need to know where a lexer falls down and when a parser is the right