Re: Importing Unicode text to a field .. How?

2011-05-28 Thread Richmond Mathewson
On 05/28/2011 08:16 AM, J. Landman Gay wrote: On 5/27/11 9:55 PM, Web Admin Himalayan Academy wrote: nope... that replacement does nothing... BTW, I think Richmond doesn't have any trouble with unicode lines because he's working on a Linux machine, so his line endings are already ascii 10. I

Re: download and save a file

2011-05-28 Thread Francis Nugent Dixon
Hi from Beautiful Brittany, Now I am confused ! As Richard says : It's fun to do it in LiveCode, so, even though I use CyberDuck regularly (what a beautiful app !), I thought it would be fun to write a little stack in LiveCode for Upload and Download. After all, "LiveCoding" IS fun !. I found d

Re: download and save a file

2011-05-28 Thread Björnke von Gierke
method two is called "anonymous ftp" aka. no login. It used to be widely used for file sharing, but these days there's almost no server that's so liberal. Note that for smaller tasks, you can also use put for ftp: put theData into "ftp://user:p...@url.com/folder/folder/textfile.txt"; On 28 May

Re: download and save a file

2011-05-28 Thread Björnke von Gierke
typo, forgot url: put theData into URL "ftp://user:p...@url.com/folder/folder/textfile.txt"; On 28 May 2011, at 13:40, Björnke von Gierke wrote: > method two is called "anonymous ftp" aka. no login. It used to be widely used > for file sharing, but these days there's almost no server that's so

Re: download and save a file

2011-05-28 Thread Richard Gaskin
Francis Nugent Dixon wrote: Hi from Beautiful Brittany, Now I am confused ! As Richard says : It's fun to do it in LiveCode, so, even though I use CyberDuck regularly (what a beautiful app !), I thought it would be fun to write a little stack in LiveCode for Upload and Download. After all, "Li

Re: download and save a file

2011-05-28 Thread Alex Tweedly
Or you could pick up Andre's FTPCommander (on revonline) and have a working stack to start with, but all the fun of making additions and changes if you want. -- Alex. On 28/05/2011 11:17, Francis Nugent Dixon wrote: Hi from Beautiful Brittany, Now I am confused ! As Richard says : It's fun

custom stack resize control

2011-05-28 Thread Todd Geist
Hello, I have a stack with a custom title bar, that I created (no stack controls) . I need to create a resize control to go in the lower right. I have seen this done before but I can't find any examples. Can any one point me at a good example? Thanks Todd Todd Geist ---

Re: custom stack resize control

2011-05-28 Thread Björnke von Gierke
on mouseDown put item 1 of the mouseLoc - item 1 of the loc of me into theX put item 2 of the mouseLoc - item 2 of the loc of me into theY repeat while the mouse is down set the loc of me to item 1 of the mouseLoc + theX, item 2 of the mouseLoc - theY set the rect of this sta

Re: [ANN] Live LiveCode code event #25

2011-05-28 Thread Björnke von Gierke
Personalised greeting. Join within the hour. Or miss the show. What do I care. Your loss. http://bjoernke.com/chatrev/ http://livecode.tv/ On 27 May 2011, at 18:51, Björnke von Gierke wrote: > Hi all > > The event continues to churn on, this time with GUI-Superstar Scott Rossi. He > will sh

RE: custom stack resize control

2011-05-28 Thread FlexibleLearning
Try the reSizeStack utility at http://www.flexiblelearning.com/xtalk.htm Hugh Senior FLCo Todd Geist wrote... Hello, I have a stack with a custom title bar, that I created (no stack controls) . I need to create a resize control to go in the lower right. I have seen this done before but I can'

Challenge: Faking 3D extrusion of a polygon

2011-05-28 Thread Michael Kristensen
Challenge: Faking 3D extrusion of a polygon Hi This is a challenge of making a fake 3D extrusion of a random shaped polygon. In very simple cases you can just copy the polygon, put it behind with a little offset and shade it a little darker than the front polygon. But if the offset gets a lit

Re: custom stack resize contro

2011-05-28 Thread Jim Lambert
ToddG wrote: > I have a stack with a custom title bar, that I created (no stack controls) . > I need to create a resize control to go in the lower right. I have seen this > done before but I can't find any examples. Can any one point me at a good > example? Also, look under this menu for a stack

Re: Importing Unicode text to a field .. How?

2011-05-28 Thread Web Admin Himalayan Academy
Sweet Mangos! It works (smile) I was very close.. in fact I thought I had tried that before. Interesting that you cannot do the replacement in the field itself, you have to do it to the data in the variable *before* you pass it to the field. because replace numtochar(13) with numtochar(10)

RE: Importing Unicode text to a field .. How?

2011-05-28 Thread Slava Paperno
Cool, jacque! I am impressed. Just for my edification, how did you know that the original text was in UTF16? And if you knew that, maybe you also know why my attempts to getRevBrowserGet(browserID, "selected") for Cyrillic text returns the dreaded question marks? I posted this in the using Extern

Re: Challenge: Faking 3D extrusion of a polygon

2011-05-28 Thread Mike Bonner
Might look here at Björnkes page. http://bjoernke.com/?target=games has a 3d rotation stack that requires the animation engine, if you have a license for AE thats cool, if not, I think you can still download it and use it in trial mode to try it out. Not sure if anything in there could be adapted

Re: [ANN] GET INSPIRED to do more with Livecode

2011-05-28 Thread Andrew Kluthe
I am intrigued. :) -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/ANN-GET-INSPIRED-to-do-more-with-Livecode-tp3556760p3558175.html Sent from the Revolution - User mailing list archive at Nabble.com. ___ use-livecode mai

Re: [ANN] GET INSPIRED to do more with Livecode

2011-05-28 Thread Jim Ault
glad to hear. What questions do you have? On May 28, 2011, at 4:17 PM, Andrew Kluthe wrote: I am intrigued. :) Jim Ault Las Vegas ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and

Re: Challenge: Faking 3D extrusion of a polygon

2011-05-28 Thread Björnke von Gierke
you can create one polygon that shows all the lines, by inserting empty lines at the right place. for example: 40,75 331,189 131,149 19,349 40,75 40,75 65,75 331,189 356,189 156,149 19,349 44,349 40,75 40,75 65,75 356,189 331,189 156,149 44,349 19,349 40,75 however this can at sometimes produc

Re: Importing Unicode text to a field .. How?

2011-05-28 Thread J. Landman Gay
On 5/28/11 4:25 PM, Slava Paperno wrote: Cool, jacque! I am impressed. Just for my edification, how did you know that the original text was in UTF16? I'm afraid it won't help with your scripting. I just opened the file in BBEdit, it tells you what the encoding is. Then I had it show invisible

Re: Importing Unicode text to a field .. How?

2011-05-28 Thread J. Landman Gay
On 5/28/11 3:56 PM, Web Admin Himalayan Academy wrote: Interesting that you cannot do the replacement in the field itself, you have to do it to the data in the variable *before* you pass it to the field. because replace numtochar(13) with numtochar(10) in fld "unicode_Script" does not work.

Re: Importing Unicode text to a field .. How?

2011-05-28 Thread J. Landman Gay
On 5/28/11 10:22 PM, J. Landman Gay wrote: On 5/28/11 4:25 PM, Slava Paperno wrote: Cool, jacque! I am impressed. Just for my edification, how did you know that the original text was in UTF16? I'm afraid it won't help with your scripting. I just opened the file in BBEdit, it tells you what th

Re: custom stack resize contro

2011-05-28 Thread dunbarx
A direct way to do it, though with my quick workup one must move slowly, is to have this in the card or stack script: on mouseMove put the rect of this stack into tRect put the screenMouseLoc into tLoc if item 3 of tRect - item 1 of tLoc < 20 and item 4 of tRect - item 2 of tLoc < 20 then

Unicode and revBrowser: "selected" property and callback messages

2011-05-28 Thread Slava Paperno
Hi again, Jacqueline! Thanks for keeping up this dialog. You said: > By convention, a UTF-8 file doesn't use a BOM. When I save my Unicode files as UTF-8 text (from the Windows Notepad or Dreamweaver, for example), the files do have a BOM. I found that when I read them into LC variables, I have

Re: Unicode and revBrowser: "selected" property and callback messages

2011-05-28 Thread J. Landman Gay
On 5/29/11 12:21 AM, Slava Paperno wrote: When I save my Unicode files as UTF-8 text (from the Windows Notepad or Dreamweaver, for example), the files do have a BOM. I found that when I read them into LC variables, I have to strip the first two characters, otherwise my attempts to determine the