moving and scaling an image

2012-02-09 Thread David Glasgow
Hello folks, I am trying to get an image to slide from the middle of the screen either to the top or the bottom. However, the screen has a perspective, as if you were looking down a bowling alley, with a vanishing point somewhere above the screen. To maintain the sense of depth, images

Re: What is up with FormattedHeight?

2012-02-09 Thread Ken Corey
On 06/02/2012 03:30, Howard Bornstein wrote: I need to find the smallest rectangle that will enclose a line of text of arbitrary text size in a field. I thought I could use formattedheight and formattedwidth to do this but it doesn't seem to be working. I'm very perplexed too. Instead of

Re: [ANN] Casey's Solitaire published on Android Market

2012-02-09 Thread John Craig
Kudos for getting it published! Any timescale for the iOS version? I think my old android phone has died :( On 08/02/2012 17:23, J. Landman Gay wrote: My first Android release: https://market.android.com/details?id=com.hyperactivesw.casey The Market accepted the upload without any

Re: moving and scaling an image

2012-02-09 Thread Ken Corey
On 09/02/2012 08:40, David Glasgow wrote: I am trying to get an image to slide from the middle of the screen either to the top or the bottom. However, the screen has a perspective, as if you were looking down a bowling alley, with a vanishing point somewhere above the screen. To maintain the

Re: What is up with FormattedHeight?

2012-02-09 Thread Scott Rossi
Hi Ken: The following function does what you propose using a transitional image and gets pretty close. It requires the long id of the target field, and only works on transparent fields. You'd have to add additional code to convert the non-text portion of the field to alphaData, or temporarily

Re: How alive is LiveCode?

2012-02-09 Thread Michael Kann
Michael, What do you want to use LiveCode for? Michael --- On Wed, 2/8/12, Michael Chean mp.ch...@gmail.com wrote: From: Michael Chean mp.ch...@gmail.com Subject: How alive is LiveCode? To: use-livecode@lists.runrev.com Date: Wednesday, February 8, 2012, 8:54 PM When I'm considering a tool I

Re: [ANN] Casey's Solitaire published on Android Market

2012-02-09 Thread John Craig
Hi, Thomas. I've been writing PNGs directly from LiveCode - can you send an example of one of the misbehaving ones? I'm curious if I can identify the rogue data and maybe strip it out. John. On 09/02/2012 14:57, Thomas McGrath III wrote: Jac, Congratulations, Looks great. I hope it does

Re: [ANN] Casey's Solitaire published on Android Market

2012-02-09 Thread J. Landman Gay
On 2/9/12 4:37 AM, John Craig wrote: Kudos for getting it published! Any timescale for the iOS version? I think my old android phone has died :( Thanks John. The only thing that's holding up the iOS release is the glitchy rotation bug in the engine. RR has reproduced the problem and I

Re: [ANN] Casey's Solitaire published on Android Market

2012-02-09 Thread J. Landman Gay
On 2/9/12 8:57 AM, Thomas McGrath III wrote: As far as the artifacts, Were these PNGs under the fields? From Photoshop? If so there is a very weird instance where transparencies produce this kind of visual effect. I have been able to solve that problem on a Mac. The problem is there is something

RE: [ANN] Casey's Solitaire published on Android Market

2012-02-09 Thread John Dixon
Jacque... What problems are you experiencing with rotation. I have been playing with it quite a lot and have not found it to misbehave... Or in other words, 'What am I doing wrong ?... Where's my glitch ?'... :-) Date: Thu, 9 Feb 2012 11:09:31 -0600 From: jac...@hyperactivesw.com Thanks

Re: How alive is LiveCode?

2012-02-09 Thread Richmond
On 02/09/2012 04:54 AM, Michael Chean wrote: When I'm considering a tool I look at the community resources to see whether they are being kept up. For instance the RunRev forum, why is it that the last announcement of a new release was 4.6? Do the RunRev staff answer questions? Why are there

Re: [ANN] Casey's Solitaire published on Android Market

2012-02-09 Thread J. Landman Gay
On 2/9/12 11:44 AM, John Dixon wrote: Jacque... What problems are you experiencing with rotation. I have been playing with it quite a lot and have not found it to misbehave... Or in other words, 'What am I doing wrong ?... Where's my glitch ?'... :-) This one:

Re: moving and scaling an image

2012-02-09 Thread David Glasgow
On 9 Feb 2012, at 2:57 pm, Ken Corey wrote: From: Ken Corey k...@kencorey.com Date: 9 February 2012 10:54:06 am GMT To: use-livecode@lists.runrev.com Subject: Re: moving and scaling an image Reply-To: How to use LiveCode use-livecode@lists.runrev.com On 09/02/2012 08:40, David Glasgow

Re: moving and scaling an image

2012-02-09 Thread Richard Gaskin
David Glasgow wrote: I just want to give the most basic impression of pulling towards and pushing away of images. The maths isn't the problem, its the moving and scaling at the same time. You and me both. The moment I can make anything close to News360 in LiveCode, ah, the UI

Re: moving and scaling an image

2012-02-09 Thread Richmond
On 02/09/2012 10:40 AM, David Glasgow wrote: Hello folks, I am trying to get an image to slide from the middle of the screen either to the top or the bottom. However, the screen has a perspective, as if you were looking down a bowling alley, with a vanishing point somewhere above the screen.

savingStandalone

2012-02-09 Thread Klaus on-rev
Hi friends, there is this handy savingStandalone message which does not come with any parameter. Is there a way to get to know for what platform the current standalone is being build? I would take different actions for Mac resp. Windows standalone, but probably I'm out of luck... Any hints

Re: [ANN] Casey's Solitaire published on Android Market

2012-02-09 Thread Thomas McGrath III
John, I have examples at work so it will have to wait until next week. I will post them then. -- Tom McGrath III http://lazyriver.on-rev.com 3mcgr...@comcast.net On Feb 9, 2012, at 11:44 AM, John Craig wrote: Hi, Thomas. I've been writing PNGs directly from LiveCode - can you send an

Strange Option Menu behavior on Windows

2012-02-09 Thread Pete
I am experiencing some very strange behavior of a standard Livecode option menu on Windows 7 - the same menu works perfectly on OS X. The only perhaps slightly unusual situation is that the option menu is in a customised datagrid column. The option menu contains various comparison operators,

Re: moving and scaling an image

2012-02-09 Thread Bob Sneidar
Richmond, this gave me the horrible case of the jitters. The image would shift positions as I dragged it. I tried locking and unlocking the screen before and after the sizing and positioning of the image, but apparently when the user is interacting with the IDE, the screen is going to unlock

Re: savingStandalone

2012-02-09 Thread Pete
Hi Klaus, Depending on what it is you need to do, you might be able to use the standAloneSaved message. It comes with a parameter containing the path to the folder than the standalone was saved in so you can tweak the contents of the individual platform folders within that folder. Pete On Thu,

RE: moving and scaling an image

2012-02-09 Thread John Dixon
Bernd Niggeman posted this a a solution to scaling and moving images http://forums.runrev.com/phpBB2/viewtopic.php?f=27t=8042#p37952 You might get some ideas from the stack... On 09/02/2012 08:40, David Glasgow wrote: I am trying to get an image to slide from the middle of the screen either

Re: savingStandalone

2012-02-09 Thread Klaus on-rev
Hi Pete, Am 09.02.2012 um 19:31 schrieb Pete: Hi Klaus, Depending on what it is you need to do, you might be able to use the standAloneSaved message. It comes with a parameter containing the path to the folder than the standalone was saved in so you can tweak the contents of the individual

Re: Strange Option Menu behavior on Windows

2012-02-09 Thread Bob Sneidar
There is a way to escape special characters like that in a menu. I believe you are using characters that have a special function in a menu, and this is confusing the menu. I do not know why it is not happening on OS X tho'. Read up in the dictionary on menus and see what you can find. Bob

Re: moving and scaling an image

2012-02-09 Thread Malte Brill
Hi, if you want to move and scale at the same time, changing the rectangle property is your friend. You will want to do this in a send in time structure and calculate where the the corner points of your control need to be at the given time. You will want to lock screen before you set the

Re: moving and scaling an image

2012-02-09 Thread J. Landman Gay
On 2/9/12 12:16 PM, Richmond wrote: I made a stack 1024x768 pixels and popped an image right in the middle of it, and put this in the script of the image: on mouseDown grab me end mouseDown on mouseStillDown set the idleRate to 1 put the item 2 of the loc of me into LOK if LOK 0 then set the

Re: How alive is LiveCode?

2012-02-09 Thread Alejandro Tejada
Hi Michael, On 02/09/2012 04:54 AM, Michael Chean wrote: When I'm considering a tool I look at the community resources to see whether they are being kept up. If I understand well your question, you want to know if LiveCode is the right tool for your project. Well, RunRev has the definite

Re: savingStandalone

2012-02-09 Thread Pete
No, different message Klaus - you were using saveStandalone which has no parameters, but there's another message standaloneSaved that has the parameter I mentioned. But you don;t get that message until after the standalone has been saved so it may not be useful to you. Pete On Thu, Feb 9, 2012

Re: moving and scaling an image

2012-02-09 Thread Richmond
On 02/09/2012 08:30 PM, Bob Sneidar wrote: Richmond, this gave me the horrible case of the jitters. The image would shift positions as I dragged it. I tried locking and unlocking the screen before and after the sizing and positioning of the image, but apparently when the user is interacting

Re: Strange Option Menu behavior on Windows

2012-02-09 Thread Pete
I'm not using any characters that have special meaning in a menu. Even if I was, the problem would appear on OS X as well as Windows. Pete On Thu, Feb 9, 2012 at 10:46 AM, Bob Sneidar b...@twft.com wrote: There is a way to escape special characters like that in a menu. I believe you are using

Re: savingStandalone

2012-02-09 Thread Klaus on-rev
Hi Pete, Am 09.02.2012 um 20:15 schrieb Pete: No, different message Klaus - you were using saveStandalone which has no parameters, but there's another message standaloneSaved that has the parameter I mentioned. Ah, yes, I see, my fault. But you don;t get that message until after the

Re: moving and scaling an image

2012-02-09 Thread Richmond
On 02/09/2012 09:04 PM, J. Landman Gay wrote: On 2/9/12 12:16 PM, Richmond wrote: I made a stack 1024x768 pixels and popped an image right in the middle of it, and put this in the script of the image: on mouseDown grab me end mouseDown on mouseStillDown set the idleRate to 1 put the item 2

Re: Any in-house corporate developers?

2012-02-09 Thread Ben Rubinstein
On 09/02/2012 00:40, Bob Sneidar wrote: You should be aware that currently only a few SQL databases are supported: sqLite, mySQL, Valentina, and one other I cannot remember. Microsoft SQL is NOT supported to my knowledge, and some corporations require MS SQL compliance. I think that's a bit

regex help please

2012-02-09 Thread Klaus on-rev
Hi friends, in my current project I need to deal with VERY small XML files with maybe up to 20 entries. So using the XML external seems to be a bit overkill. Some time ago I found a little reg ex here on the list which I turned into a function and will return me everything inside of a given

Re: moving and scaling an image

2012-02-09 Thread Ken Corey
Well, I must be missing something. Take a look at: http://its.ec/static/faux3d.livecode.zip Is that the kind of thing you're after? Seems smooth enough for me (and works in the iOS simulator, though the Motif-themed scrollbar looks decidedly odd). -Ken On 09/02/2012 17:53, David Glasgow

Re: regex help please

2012-02-09 Thread Andre Garzia
Klaus, I used to work like that, doing little XML files with RegEx and matchText. After working like that for a long time, I came to realize that there was no advantage at all in my case. It was simpler to work with RevXML. The problem with RegEx is all the little cases where it fails. I think

Re: regex help please

2012-02-09 Thread Ken Corey
On 09/02/2012 20:24, Klaus on-rev wrote: in my current project I need to deal with VERY small XML files with maybe up to 20 entries. Wait, didn't we just hear that you can't parse html (or XML) with regexps? *grin* function mk_getXMLdata tText, tTag get matchText(tText,(?s) tTag

Re: regex help please

2012-02-09 Thread Mark Wieder
Klaus, What Andre said. Nonetheless, if you want to continue down the regex path, try something like get matchText(tText,(?s) tTag (.*?)/ tTag ,tValue) replace tTagtValue / tTag with tTagtNewValue / tTag in tText -- Mark Wieder

Re: regex help please

2012-02-09 Thread Klaus on-rev
Hi Andre, Am 09.02.2012 um 21:38 schrieb Andre Garzia: Klaus, I used to work like that, doing little XML files with RegEx and matchText. After working like that for a long time, I came to realize that there was no advantage at all in my case. It was simpler to work with RevXML. The

Re: regex help please

2012-02-09 Thread Klaus on-rev
Hi guys, Am 09.02.2012 um 21:52 schrieb Mark Wieder: Klaus, What Andre said. Sigh... :-) Nonetheless, if you want to continue down the regex path, try something like get matchText(tText,(?s) tTag (.*?)/ tTag ,tValue) replace tTagtValue / tTag with tTagtNewValue /

Re: regex help please

2012-02-09 Thread Andre Garzia
Klaus, Since you have control, then instead of RegEx, you can go like mynode nodecontent /mynode All in different lines, then, you can just use lineOffset to find the start node and the end node and copy or replace the data between those lines. It is easier than RegEx. On Thu, Feb 9, 2012 at

Re: regex help please

2012-02-09 Thread Klaus on-rev
Hi Andre, Am 09.02.2012 um 22:05 schrieb Andre Garzia: Klaus, Since you have control, then instead of RegEx, you can go like mynode nodecontent /mynode All in different lines, then, you can just use lineOffset to find the start node and the end node and copy or replace the data

Re: regex help please

2012-02-09 Thread Ken Corey
On 09/02/2012 21:00, Klaus on-rev wrote: get matchText(tText,(?s) tTag (.*?)/ tTag ,tValue) replace tTagtValue/ tTag with tTagtNewValue/ tTag in tText well, I did not want to pass the text that I want to overwrite in the XML, which I do not now in that moment! But

Re: regex help please

2012-02-09 Thread Ken Ray
Nonetheless, if you want to continue down the regex path, try something like get matchText(tText,(?s) tTag (.*?)/ tTag ,tValue) replace tTagtValue / tTag with tTagtNewValue / tTag in tText well, I did not want to pass the text that I want to overwrite in the XML,

Re: moving and scaling an image

2012-02-09 Thread Bob Sneidar
I followed the instructions. On the 12th loop I get an error that essentially says there is no such control as control 12. Bob On Feb 9, 2012, at 11:52 AM, Alejandro Tejada wrote: Hi David, Please, read this message from last year about my stack named Infinite zoom: Hi All,

Re: moving and scaling an image

2012-02-09 Thread Ken Corey
On 09/02/2012 22:30, Bob Sneidar wrote: I followed the instructions. On the 12th loop I get an error that essentially says there is no such control as control 12. Do you have 12 images in the image directory? The first time I didn't...so I added some more. Then, I double-clicked on the card

Re: moving and scaling an image

2012-02-09 Thread Bob Sneidar
I changed the loop max count to 11. The script finished but it appears all objects are off the screen. Nothing is showing. Bob On Feb 9, 2012, at 11:52 AM, Alejandro Tejada wrote: Hi David, Please, read this message from last year about my stack named Infinite zoom: Hi All,

Re: regex help please

2012-02-09 Thread Klaus on-rev
Hi friends, thank you all for your help, i got it to work now! Again thanks a lot! Best Klaus -- Klaus Major http://www.major-k.de kl...@major.on-rev.com ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to

Re: Any in-house corporate developers?

2012-02-09 Thread Bob Sneidar
I stand corrected. I forgot about ODBC because I tried that some time ago (back in Revolution 2.7 or something like that) on my Mac and could not for the life of me get it to work reliably, but it wasn't Rev/LC's fault at the time. Bob On Feb 9, 2012, at 12:03 PM, Ben Rubinstein wrote: On

Re: input and output to a cli

2012-02-09 Thread Pete
Hi Andrew, I don;t pretend to understand a fraction of what your program does but I've passed input and grabbed output from standard command line programs from LC by - building a file with the commnds to be executed - executing a shell command for the program that redirects stdin to my command

Re: regex help please

2012-02-09 Thread Bob Sneidar
Your training is almost complete. Destroy Darth Vader and take his place at my side! Mooo haah haah haha hahah ahah! Bob On Feb 9, 2012, at 12:24 PM, Klaus on-rev wrote: So with this text above in tText and tag2 int tTag: function mk_getXMLdata tText, tTag get matchText(tText,(?s)

Re: moving and scaling an image

2012-02-09 Thread Bob Sneidar
I had 13. Bob On Feb 9, 2012, at 2:32 PM, Ken Corey wrote: On 09/02/2012 22:30, Bob Sneidar wrote: I followed the instructions. On the 12th loop I get an error that essentially says there is no such control as control 12. Do you have 12 images in the image directory? The first time

Re: moving and scaling an image

2012-02-09 Thread Bob Sneidar
Also, the images are all white. I used Preview to convert from png to jpg. Could that be a problem? Bob On Feb 9, 2012, at 2:32 PM, Ken Corey wrote: On 09/02/2012 22:30, Bob Sneidar wrote: I followed the instructions. On the 12th loop I get an error that essentially says there is no such

Re: How alive is LiveCode?

2012-02-09 Thread Sivakatirswami
Om Shanti Sivakatirswami Kauai Aadheenam On 2/8/12 4:54 PM, Michael Chean wrote: When I'm considering a tool I look at the community resources to see whether they are being kept up. For instance the RunRev forum, why is it that the last announcement of a new release was 4.6? Do the RunRev

Re: [ANN] Casey's Solitaire published on Android Market

2012-02-09 Thread Andrew Henshaw
Really frustratingly, ive had this problem before, and I dont have it now so I know its fixable but not how. Ill try to dig round in the time machine backups to see if I can go back to a flashing version, then compare the code to see whats changed, but its definitely fixable and im sure it

Re: [ANN] Casey's Solitaire published on Android Market

2012-02-09 Thread J. Landman Gay
On 2/9/12 5:43 PM, Andrew Henshaw wrote: The only things I changed were changes to lock screen etc, and all my rotations now call any resizing code in a separate sub to avoid problems I had with mobgui undoing changes I wanted, eg on resizestack send doresize to me in 1 end

Re: [ANN] Casey's Solitaire published on Android Market

2012-02-09 Thread J. Landman Gay
On 2/9/12 5:54 PM, J. Landman Gay wrote: My scripts do the same, calling out to another handler for resizing. But I did make some changes to lock screen so I bet that's it. I took most of them out. I'll try bracketing the handler with lock/unlock. Thanks for the idea. Didn't help. :( --

Drag and Drop in a locked field

2012-02-09 Thread Bob Sneidar
Hi all. I use locked fields with multiple lines and listBehavior set to true as a kind of menu. Now I am trying to allow the user to rearrange the items in the list. I read in the Dictionary that LC handles drag and drop between *unlocked* fields automatically. Crud. So I tried unlocking the

Re: Drag and Drop in a locked field

2012-02-09 Thread Ken Ray
On Feb 9, 2012, at 6:35 PM, Bob Sneidar wrote: Hi all. I use locked fields with multiple lines and listBehavior set to true as a kind of menu. Now I am trying to allow the user to rearrange the items in the list. I read in the Dictionary that LC handles drag and drop between *unlocked*

Re: input and output to a cli

2012-02-09 Thread Andrew Kluthe
I'm familiar with how this is done on linux but anyone have any idea how to do it on windows? -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/input-and-output-to-a-cli-tp4374607p4374977.html Sent from the Revolution - User mailing list archive at Nabble.com.

Re: input and output to a cli

2012-02-09 Thread Andrew Kluthe
Nvm, I just found it. I didnt think you could do this on windows. Using the :) thanks. -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/input-and-output-to-a-cli-tp4374607p4374983.html Sent from the Revolution - User mailing list archive at Nabble.com.

Re: input and output to a cli

2012-02-09 Thread Mike Bonner
Will open process work for this? Open the process for update, set up a read loop, parse the incoming data, write back to the process. On Thu, Feb 9, 2012 at 5:54 PM, Andrew Kluthe and...@rjdfarm.com wrote: I'm familiar with how this is done on linux but anyone have any idea how to do it on

Re: Drag and Drop in a locked field

2012-02-09 Thread Bob Sneidar
Thanks I will give it a go. I have it partially working, but I found if I drag too fast the engine selects another line before dragStart is triggered. Also I had to send dragEnter from the dragStart handler otherwise the process never kicked off. I tried sending dragStart in a mouseDown

Re: How alive is LiveCode?

2012-02-09 Thread Michael Chean
I want to write databased applications to take care of some of the pain-points at my current employment. And if this works out I'd like to extend it to the full application - which is your normal professional billing program. I'm using VFP right now and would have no reluctance to continue

Re: Any in-house corporate developers?

2012-02-09 Thread Michael Chean
I agree about the blinders that many have concerning languages outside what they know. By security I was thinking application security, User login; group membership; controlling access to various parts of the application. I guess I would have to roll my own. I'm used to purchasing