moving and scaling an image
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 'pushed away' should shrink into the distance, and ones 'pulled' closer should embiggen. Any suggestions how this could best be achieved? The eventual destination of this may well be iPad, so any special considerations there would be welcome. Cheers, David Glasgow ___ 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
Re: What is up with FormattedHeight?
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 worrying about what is/is not added to the text image, fonts, screen smoothing, margins, whatever (itis bound to have a platform-specific element to it), I figured Why not just ask the bits? So, I wrote a script (http://its.ec/static/testfield.livecode.zip) to investigate. It takes a snapshot of the field and puts it into a new image. Step through the bits of that image, and we should be able to say exactly where the text begins and ends, right? Only...it doesn't work as I've written it. No pixels are found. Ah, okay, maybe I didn't understand something, so I added a graphic from a PNG, and did the search on that, and it finds the pixels very easily. Same code, only the name has been changed. Different result. Clearly, there's something I don't understand at work here. Can anyone see what I've done wrong (and help Howard too?) On the plus side, it does this /very/ quickly. I was surprised at how fast stepping through the pixels of the graphic in a loop actually is. -Ken ___ 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
Re: [ANN] Casey's Solitaire published on Android Market
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 problem and listed the app exactly as the manifest said it should (I did customize the manifest file a bit to limit downloads to large screens.) I was impressed with how well LiveCode managed all the details. I had absolutely no trouble at all with the app. This was way easier than the Apple horror stories I've been reading, but that's next. An iOS version will follow after a couple of engine glitches get fixed. A comment on pricing: I have noticed that free apps get panned a lot, and sometimes for no reason. I actually saw a comment that said, I had a fight with my girlfriend so I'm giving this app one star. People who pay a small fee seem to write more legitimate feedback. So the fee is an experiment. Hopefully it's low enough that it isn't off-putting. I learned a lot doing this. ___ 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
Re: moving and scaling an image
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 sense of depth, images 'pushed away' should shrink into the distance, and ones 'pulled' closer should embiggen. Any suggestions how this could best be achieved? The eventual destination of this may well be iPad, so any special considerations there would be welcome. Oh go on, just say it: you want a 3D environment. I've read interesting things about Franklin3d.com, but that doesn't seem to work on an iPad. If you don't care about true 3D, you might be able to get away with cheating with a 2D solution and a little extra effort to make things appear 3D, but not /really/ be 3D. You could calculate the math for this yourself, but there's always AnimationEngine for moving stuff around. -Ken ___ 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
Re: What is up with FormattedHeight?
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 convert the field to transparent and restore after capturing the text rect. function tmTextRect pField lock screen ## CREATE IMAGE WITH ALPHADATA reset the templateImage set lineSize of the templateImage to 0 create image put long id of it into tempImage do export snapshot from pField to tempImage as PNG put alphadata of tempImage into theAlphaData ## DEFINE GRID put width of tempImage into theColumnCount delete tempImage reset the templateImage unlock screen ## LOOP THROUGH ALPHA DATA LOOKING FOR ## PIXELS THAT MEET VISIBILITY THRESHOLD ( 5) put 1 into theRowNum put 0 into theColumnNum put 0,0,0,0 into theRect repeat for each char theByte in theAlphaData add 1 to theColumnNum put charToNum(theByte) into theValue if theValue 5 then if item 1 of theRect is 0 then put theColumnNum into item 1 of theRect put theRowNum into item 2 of theRect put theColumnNum into item 3 of theRect put theRowNum into item 4 of theRect end if put min(theColumnNum, item 1 of theRect) into item 1 of theRect put min(theRowNum, item 2 of theRect) into item 2 of theRect put max(theColumnNum, item 3 of theRect) into item 3 of theRect put max(theRowNum, item 4 of theRect) into item 4 of theRect end if if theColumnNum = theColumnCount then add 1 to theRowNum put 0 into theColumnNum end if end repeat add left of pField to item 1 of theRect add left of pField to item 3 of theRect add top of pField to item 2 of theRect add top of pField to item 4 of theRect return theRect end tmTextRect Regards, Scott Rossi Creative Director Tactile Media, UX Design Recently, Ken Corey wrote: 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 worrying about what is/is not added to the text image, fonts, screen smoothing, margins, whatever (itis bound to have a platform-specific element to it), I figured Why not just ask the bits? ___ 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
Re: How alive is LiveCode?
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 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 so many queries that languish? Why do many of the tools including YogaSQL seem to have had their last release a year or more ago? Not trying to troll here, but just wondering what your impression are. Has RunRev been growing? The language is so elegant I keep thinking that there is something I'm missing as to why it's not more popular. Mike ___ 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 ___ 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
Re: [ANN] Casey's Solitaire published on Android Market
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 very well for you. 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 'legacy' left over in the way photoshop (and some other apps as well) saves pngs that only shows up in certain applications and or when using certain techniques to display a png with transparency. A lot of people mistakenly have been blaming powerpoint/preview/etc. on the internet, but it is actually an issue with legacy code used to write out transparencies in pngs. If this is the case I can box up my workaround (it is a kludge however) and send it to you. -- Tom McGrath III http://lazyriver.on-rev.com 3mcgr...@comcast.net On Feb 8, 2012, at 5:49 PM, J. Landman Gay wrote: On 2/8/12 4:26 PM, Ralph DiMola wrote: Jacque, I can't find it in the Market. Is it my device/OS version? Yeah, probably, and I'm sorry about that. :( I had to set the manifest to allow only Android 2.3 or higher. I had got it to work on 2.2 by using software rendering instead of OpenGL, but the engine started drawing crazy blue artifacts around all the transparent fields. They didn't coincide with any object shapes, it was random blocks of noise. I couldn't release it that way. If you're curious what it was doing, I put screen shots in the QCC: http://quality.runrev.com/show_bug.cgi?id=9881. It's wild. So I'm hoping that gets fixed in the engine, and if it does I'll change the manifest to allow 2.2. It still won't be the fastest rendering but at least the screen will look right. I'll shoot you a private email if/when I can update the app, if you want, and to anyone else who just can't wait to clean up bird poop. -- Jacqueline Landman Gay | jac...@hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com ___ 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 ___ 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 ___ 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
Re: [ANN] Casey's Solitaire published on Android Market
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 imagine it will be fixed in the next release. After that I can proceed, provided I can figure out Apple's submission procedure, which I admit I've been avoiding. Then there's the wait for approval too, of course. -- Jacqueline Landman Gay | jac...@hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com ___ 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
Re: [ANN] Casey's Solitaire published on Android Market
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 'legacy' left over in the way photoshop (and some other apps as well) saves pngs that only shows up in certain applications and or when using certain techniques to display a png with transparency. A lot of people mistakenly have been blaming powerpoint/preview/etc. on the internet, but it is actually an issue with legacy code used to write out transparencies in pngs. Interesting, I didn't know that. The images are Photoshop, yes. Both screenshots are actually from the same card, the only difference is which objects are hidden or displayed. The weird part though is that the blue areas don't coincide with any of the image rects. If you look at the history field, the blue partly surrounds the field and partly cuts into it on one line. There are no objects of that size or shape on the card, not even hidden ones. This didn't used to happen, only a week or two ago it was fine. It occured to me last night that my Archos tablet had a firmware update 2 days ago. I've sent a copy of the game off to the ever-helpful Ralph DiMola to take a look. If he doesn't see what I see, then it's my tablet and I can release for 2.2 users. Ralph also said he's seen this before and it is a due to a bad algorithm, but I don't know who's algorithm is responsible. If it does turn out to be the Photoshop problem, it might be easier for me to just resave the image in Graphic Converter and see if that's any better. Maybe I'll try that today. -- Jacqueline Landman Gay | jac...@hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com ___ 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
RE: [ANN] Casey's Solitaire published on Android Market
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 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 imagine it will be fixed in the next release. After that I can proceed, provided I can figure out Apple's submission procedure, which I admit I've been avoiding. Then there's the wait for approval too, of course. ___ 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
Re: How alive is LiveCode?
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 so many queries that languish? Why do many of the tools including YogaSQL seem to have had their last release a year or more ago? Not trying to troll here, but just wondering what your impression are. Has RunRev been growing? The language is so elegant I keep thinking that there is something I'm missing as to why it's not more popular. Mike ___ 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 My impression is that the Livecode Use-list (i.e. this list) is alive and hopping. As far as I understand the RunRev staff tend only to answer questions to Enterprise customers. missing as to why it's not more popular that, I think, comes down to snobbery and the desire to keep one's mystique: I know several C++ developers here in Bulgaria; when I tell them my history: MiniFortran, Fortran, BASIC, PASCAL, ZYLOG, Hypercard, Toolbook, RunRev/Livecode they start looking at me very oddly indeed right after ZYLOG, as they regard object-based stuff as kiddy-toys. On being shown Livecode they also start curling their lips as it is, at least superficially, extremely easy to get something up-and-running licketty split; they always say the same thing; that isn't REAL computer programming - which is, of course, nonsense. Oddly enough there are lots and lots of people who believe in all sorts of nonsense, and as long as it doesn't interfere with their normal day-to-day interaction with the world, it doesn't cause them any problems. Part of the problem maybe the Hypercard legacy; in that it was packaged as a sort of Lego-kit programming toy, and its successrs such as Supercard, Metacard and Livecode carry that 'stain', and Toolbook is still marketed as a sort of hopped-up Powerpoint for teachers (far from it, I had a hell of a job getting my head around it when I used it in 1998-2000). Livecode CAN be used as a Lego-kit programming toy; but anybody but the most basic users are going to want to go a bit further than that pretty rapidly. One can go incredibly far if one so wishes. I am writing this using Thunderbird e-mail client on a computer running a Debian-derivative distro of Linux: I am quite unable to see why people continue to use Microsoft Windows (and pay for it); the vast majority of people think I am daft. The attitudes towards Livecode and Linux are very similar. Richmond Mathewson. ___ 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
Re: [ANN] Casey's Solitaire published on Android Market
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: http://quality.runrev.com/show_bug.cgi?id=9985 -- Jacqueline Landman Gay | jac...@hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com ___ 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
Re: moving and scaling an image
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 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 sense of depth, images 'pushed away' should shrink into the distance, and ones 'pulled' closer should embiggen. Any suggestions how this could best be achieved? The eventual destination of this may well be iPad, so any special considerations there would be welcome. Oh go on, just say it: you want a 3D environment. I've read interesting things about Franklin3d.com, but that doesn't seem to work on an iPad. If you don't care about true 3D, you might be able to get away with cheating with a 2D solution and a little extra effort to make things appear 3D, but not /really/ be 3D. You could calculate the math for this yourself, but there's always AnimationEngine for moving stuff around. -Ken No! Honest injun! I don't want a 3d environment! 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. I took a quick look at AnimationEngine, which clearly does lots of fantastic things I don't need. However, I would get it if it was the only way to solve this problem. I couldn't see any commands that obviously related to scaling on the move though - can anyone say definitively? David G ___ 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
Re: moving and scaling an image
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 possibilities that open up -- Richard Gaskin Fourth World LiveCode training and consulting: http://www.fourthworld.com Webzine for LiveCode developers: http://www.LiveCodeJournal.com LiveCode Journal blog: http://LiveCodejournal.com/blog.irv ___ 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
Re: moving and scaling an image
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. To maintain the sense of depth, images 'pushed away' should shrink into the distance, and ones 'pulled' closer should embiggen. Any suggestions how this could best be achieved? The eventual destination of this may well be iPad, so any special considerations there would be welcome. Cheers, David Glasgow ___ 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 Here's the clunky version: 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 width of me to LOK set the height of me to LOK end if set the loc of me to 512, LOK end mouseStillDown on mouseUp set the idleRate to 1 put the item 2 of the loc of me into LOK if LOK 0 then set the width of me to LOK set the height of me to LOK end if set the loc of me to 512, LOK end mouseUp certainly is achingly clunky on my P4, 3 GHz, 2 GB RAM running kinkified Ubuntu. AND, while I'm here, an opportunity for a faintly bi*chy note: tried to upload the stack to RevOnline with no success whatsoever. Richmond Mathewson. ___ 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
savingStandalone
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 welcome! :-) 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 subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: [ANN] Casey's Solitaire published on Android Market
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 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 very well for you. 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 'legacy' left over in the way photoshop (and some other apps as well) saves pngs that only shows up in certain applications and or when using certain techniques to display a png with transparency. A lot of people mistakenly have been blaming powerpoint/preview/etc. on the internet, but it is actually an issue with legacy code used to write out transparencies in pngs. If this is the case I can box up my workaround (it is a kludge however) and send it to you. -- Tom McGrath III http://lazyriver.on-rev.com 3mcgr...@comcast.net On Feb 8, 2012, at 5:49 PM, J. Landman Gay wrote: On 2/8/12 4:26 PM, Ralph DiMola wrote: Jacque, I can't find it in the Market. Is it my device/OS version? Yeah, probably, and I'm sorry about that. :( I had to set the manifest to allow only Android 2.3 or higher. I had got it to work on 2.2 by using software rendering instead of OpenGL, but the engine started drawing crazy blue artifacts around all the transparent fields. They didn't coincide with any object shapes, it was random blocks of noise. I couldn't release it that way. If you're curious what it was doing, I put screen shots in the QCC: http://quality.runrev.com/show_bug.cgi?id=9881. It's wild. So I'm hoping that gets fixed in the engine, and if it does I'll change the manifest to allow 2.2. It still won't be the fastest rendering but at least the screen will look right. I'll shoot you a private email if/when I can update the app, if you want, and to anyone else who just can't wait to clean up bird poop. -- Jacqueline Landman Gay | jac...@hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com ___ 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 ___ 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 ___ 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 ___ 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
Strange Option Menu behavior on Windows
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, such as +,,, =,=, etc and its menuhistory is initially set to 3 which equates to the = sign. The = sign is visible in the option menus on every row of the datagrid except whichever row is currently selected in the datagrid, whether selected by script or clicked on by the user. On that row the option menu appears to be blank. However, when I click on it to show the options list, the = sign appears and is highlighted but all the other options in the list appear blank until I move the mouse over one, then the option appears in the display. As mentioned this does not happen on OS X, just on Windows. I'm afraid this sounds like some sort of weird bug related to Datagrids, option menus, and Windows but hoping someone might be able to shed some light on it. Thanks, -- Pete Molly's Revenge http://www.mollysrevenge.com ___ 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
Re: moving and scaling an image
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 anyway whenever an idle hits. Seems there ought to be a way around this, but I don't have the time right now to troubleshoot it. It is however fairly quick on my Macbook Pro. Bob On Feb 9, 2012, at 10:16 AM, Richmond wrote: 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. To maintain the sense of depth, images 'pushed away' should shrink into the distance, and ones 'pulled' closer should embiggen. Any suggestions how this could best be achieved? The eventual destination of this may well be iPad, so any special considerations there would be welcome. Cheers, David Glasgow ___ 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 Here's the clunky version: 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 width of me to LOK set the height of me to LOK end if set the loc of me to 512, LOK end mouseStillDown on mouseUp set the idleRate to 1 put the item 2 of the loc of me into LOK if LOK 0 then set the width of me to LOK set the height of me to LOK end if set the loc of me to 512, LOK end mouseUp certainly is achingly clunky on my P4, 3 GHz, 2 GB RAM running kinkified Ubuntu. AND, while I'm here, an opportunity for a faintly bi*chy note: tried to upload the stack to RevOnline with no success whatsoever. Richmond Mathewson. ___ 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 ___ 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
Re: savingStandalone
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, Feb 9, 2012 at 10:19 AM, Klaus on-rev kl...@major.on-rev.comwrote: 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 welcome! :-) 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 subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode -- Pete Molly's Revenge http://www.mollysrevenge.com ___ 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
RE: moving and scaling an image
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 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. ___ 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
Re: savingStandalone
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 platform folders within that folder. AHA! So there IS in fact a parameter, but this is undocumented! Great, thanks a lot! Pete On Thu, Feb 9, 2012 at 10:19 AM, Klaus on-rev kl...@major.on-rev.comwrote: 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 welcome! :-) 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 subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: Strange Option Menu behavior on Windows
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 On Feb 9, 2012, at 10:27 AM, Pete wrote: 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, such as +,,, =,=, etc and its menuhistory is initially set to 3 which equates to the = sign. The = sign is visible in the option menus on every row of the datagrid except whichever row is currently selected in the datagrid, whether selected by script or clicked on by the user. On that row the option menu appears to be blank. However, when I click on it to show the options list, the = sign appears and is highlighted but all the other options in the list appear blank until I move the mouse over one, then the option appears in the display. As mentioned this does not happen on OS X, just on Windows. I'm afraid this sounds like some sort of weird bug related to Datagrids, option menus, and Windows but hoping someone might be able to shed some light on it. Thanks, -- Pete Molly's Revenge http://www.mollysrevenge.com ___ 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 ___ 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
Re: moving and scaling an image
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 rectangle and unlock it afterwards. For the iPad a frameRate of about 20 to 45 fps can be achieved, depending on how many objects you move and scale at the same time. It is advisable to not use the best resizequality option for the image. If you are choosing not to use images, there is room for a little more fps. No true 3d with this, as Ken already said. shamelessPluganimationEngine handles this task quite effeciently I guess with the aeChangeRect command. You can even let your movement and scaling ease with it. :-) /shamelessPlug Cheers, Malte ___ 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
Re: moving and scaling an image
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 width of me to LOK set the height of me to LOK end if set the loc of me to 512, LOK end mouseStillDown on mouseUp set the idleRate to 1 put the item 2 of the loc of me into LOK if LOK 0 then set the width of me to LOK set the height of me to LOK end if set the loc of me to 512, LOK end mouseUp certainly is achingly clunky on my P4, 3 GHz, 2 GB RAM running kinkified Ubuntu. I'm not surprised. That's not a good way to do it. You should ditch the grab command entirely and use a mousedown to store the object reference in a local script variable, a mousemove message to calculate the new rect of the object if the variable isn't empty, and a mouseup to empty the variable so that mousemove won't do anything any more. You'll get a smooth response this way. -- Jacqueline Landman Gay | jac...@hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com ___ 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
Re: How alive is LiveCode?
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 answer. They know for sure because they support every professional developer in multiple operating systems, including the mobile platforms. About using the forums and mail list activity as indicator of health or interest in this platform would be misleading. For example, I have never post about any of my commercial projects in neither list or board. And I am not alone. Searching in google about made with Runrev or made with Livecode brings many developers and companies that never have posted anything in the mail list or forum. Never... Some years ago, someone proposed that participants posted information about the projects they were working and I was one who opposed to this. The reasons are obvious, Don't you think? In my humble opinion, this platform needs an extensive book about creating Externals in every platform. But that is only me. You should ask each one about their particular needs. Have a nice day! Al ___ 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
Re: savingStandalone
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 at 10:40 AM, Klaus on-rev kl...@major.on-rev.comwrote: 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 platform folders within that folder. AHA! So there IS in fact a parameter, but this is undocumented! Great, thanks a lot! Pete On Thu, Feb 9, 2012 at 10:19 AM, Klaus on-rev kl...@major.on-rev.com wrote: 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 welcome! :-) 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 subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode -- Pete Molly's Revenge http://www.mollysrevenge.com ___ 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
Re: moving and scaling an image
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 with the IDE, the screen is going to unlock anyway whenever an idle hits. Seems there ought to be a way around this, but I don't have the time right now to troubleshoot it. It is however fairly quick on my Macbook Pro. Well; I had a horrible case of the jitters after a 9 hour teaching day, and that code was the result . . . :) Bob On Feb 9, 2012, at 10:16 AM, Richmond wrote: 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. To maintain the sense of depth, images 'pushed away' should shrink into the distance, and ones 'pulled' closer should embiggen. Any suggestions how this could best be achieved? The eventual destination of this may well be iPad, so any special considerations there would be welcome. Cheers, David Glasgow ___ 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 Here's the clunky version: 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 width of me to LOK set the height of me to LOK end if set the loc of me to 512, LOK end mouseStillDown on mouseUp set the idleRate to 1 put the item 2 of the loc of me into LOK if LOK 0 then set the width of me to LOK set the height of me to LOK end if set the loc of me to 512, LOK end mouseUp certainly is achingly clunky on my P4, 3 GHz, 2 GB RAM running kinkified Ubuntu. AND, while I'm here, an opportunity for a faintly bi*chy note: tried to upload the stack to RevOnline with no success whatsoever. Richmond Mathewson. ___ 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 ___ 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 ___ 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
Re: Strange Option Menu behavior on Windows
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 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 On Feb 9, 2012, at 10:27 AM, Pete wrote: 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, such as +,,, =,=, etc and its menuhistory is initially set to 3 which equates to the = sign. The = sign is visible in the option menus on every row of the datagrid except whichever row is currently selected in the datagrid, whether selected by script or clicked on by the user. On that row the option menu appears to be blank. However, when I click on it to show the options list, the = sign appears and is highlighted but all the other options in the list appear blank until I move the mouse over one, then the option appears in the display. As mentioned this does not happen on OS X, just on Windows. I'm afraid this sounds like some sort of weird bug related to Datagrids, option menus, and Windows but hoping someone might be able to shed some light on it. Thanks, -- Pete Molly's Revenge http://www.mollysrevenge.com ___ 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 ___ 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 -- Pete Molly's Revenge http://www.mollysrevenge.com ___ 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
Re: savingStandalone
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 standalone has been saved so it may not be useful to you. Yep, that does not help me, thanks anyway! Pete 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 subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: moving and scaling an image
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 of the loc of me into LOK if LOK 0 then set the width of me to LOK set the height of me to LOK end if set the loc of me to 512, LOK end mouseStillDown on mouseUp set the idleRate to 1 put the item 2 of the loc of me into LOK if LOK 0 then set the width of me to LOK set the height of me to LOK end if set the loc of me to 512, LOK end mouseUp certainly is achingly clunky on my P4, 3 GHz, 2 GB RAM running kinkified Ubuntu. I'm not surprised. That's not a good way to do it. Nor am I; 15 minutes after a long day with absolutely no forethought whatsoever. You should ditch the grab command entirely and use a mousedown to store the object reference in a local script variable, a mousemove message to calculate the new rect of the object if the variable isn't empty, and a mouseup to empty the variable so that mousemove won't do anything any more. You'll get a smooth response this way. ___ 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
Re: Any in-house corporate developers?
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 misleading - a large part of the in-house apps that I've made with LiveCode exclusively interface with MS SQL- they do this via ODBC, but that is generally a reasonable way to do that (per a recent discussion I think on this list, recommended by MS over OLE). I've not had any problems with this. Similarly we work with PostgreSQL over ODBC - and in general I'd expect most SQL databases to be accessible in that way. Some of our apps also integrate with Oracle, for which there is a direct driver - this used to require an 'Enterprise' license from RunRev, but I believe is now bundled as standard with all license types. HTH, Ben ___ 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
regex help please
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 XML tag: ... tag1bla bla/tag1 tag2more bla bla/tag2 ... So with this text above in tText and tag2 int tTag: function mk_getXMLdata tText, tTag get matchText(tText,(?s) tTag (.*?)/ tTag ,tValue) return tValue end mk_getXMLdata will give : more bla bla So far so good, I even almost understand the reg ex ;-) Now I am looking for another little snippet to (over) write something in(to) a certain TAG, know what I mean? If someone could supply a nifty replacetext snippet that would be great! :-) Thanks in advance! 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 subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: moving and scaling an image
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 wrote: No! Honest injun! I don't want a 3d environment! 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. I took a quick look at AnimationEngine, which clearly does lots of fantastic things I don't need. However, I would get it if it was the only way to solve this problem. I couldn't see any commands that obviously related to scaling on the move though - can anyone say definitively? ___ 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
Re: regex help please
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 you should use RevXML, it might look overkill but it will cut your debug time a lot. Cheers andre On Thu, Feb 9, 2012 at 6:24 PM, Klaus on-rev kl...@major.on-rev.com wrote: 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 XML tag: ... tag1bla bla/tag1 tag2more bla bla/tag2 ... So with this text above in tText and tag2 int tTag: function mk_getXMLdata tText, tTag get matchText(tText,(?s) tTag (.*?)/ tTag ,tValue) return tValue end mk_getXMLdata will give : more bla bla So far so good, I even almost understand the reg ex ;-) Now I am looking for another little snippet to (over) write something in(to) a certain TAG, know what I mean? If someone could supply a nifty replacetext snippet that would be great! :-) Thanks in advance! 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 subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode -- http://www.andregarzia.com -- All We Do Is Code. http://fon.nu -- minimalist url shortening service. ___ 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
Re: regex help please
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 (.*?)/ tTag ,tValue) return tValue end mk_getXMLdata Throwing caution to the winds, this probably does something similar to what you want without further regexp voodoo: function mk_replaceXMLdata tText, tTag, tNewText put tText into tValue if matchText(tText,(?s) tTag (.*?)/ tTag ,tValue) then put replaceText(tText, \ tTagtValue/tTag,\ tTagtNewText/tTag) into tValue end if return tValue end mk_replaceXMLdata And remember: zalgo is tony the pony! He's a comin! -Ken ___ 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
Re: regex help please
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 ___ 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
Re: regex help please
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 problem with RegEx is all the little cases where it fails. I think you should use RevXML, it might look overkill but it will cut your debug time a lot. than you for your insight, but in this project I have complete control over the XML and thus will not get any surprises :-) Cheers andre 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 subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: regex help please
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 / 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 this is neccesary in Mark's and zalgo/tony the coming ponys (? :-D ) scripts. I only want to pass the XML text, the tagname and the NEW text to be place inside of these tags. Any other hints? -- Mark Wieder 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 subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: regex help please
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 6:54 PM, Klaus on-rev kl...@major.on-rev.com wrote: 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 problem with RegEx is all the little cases where it fails. I think you should use RevXML, it might look overkill but it will cut your debug time a lot. than you for your insight, but in this project I have complete control over the XML and thus will not get any surprises :-) Cheers andre 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 subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode -- http://www.andregarzia.com -- All We Do Is Code. http://fon.nu -- minimalist url shortening service. ___ 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
Re: regex help please
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 between those lines. It is easier than RegEx. well, that's what I want to find out by myself, but can't without the appropriate reg ex ;-) 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 subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: regex help please
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 this is neccesary in Mark's and zalgo/tony the coming ponys (? :-D ) scripts. I only want to pass the XML text, the tagname and the NEW text to be place inside of these tags. Any other hints? You might take a look at the code again. In both cases you hand in the whole XML text, the tag you want to replace, and the value you want to stuff into it. The matchText function gets the current value in that tag. Mark's replace above (or my replaceText) replace that, and return the result. -Ken ___ 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
Re: regex help please
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, which I do not now in that moment! But this is neccesary in Mark's and zalgo/tony the coming ponys (? :-D ) scripts. I only want to pass the XML text, the tagname and the NEW text to be place inside of these tags. Mark Weider's code will work for you, Klaus… the tValue is something that the matchText function FILLS with the current text inside the brackets, so you don't need to know it ahead of time. The (.*?) is a way to capture what is between the tags, and the 3rd+ parameters to he matchTextFunction are variables that are provided to the function that get filled with whatever is being captured. The matchText function returns either 'true' (if it can find what you are looking for) or 'false') if it can't. Mark's code above assumes a 'true' result by using get. Here's an example that takes into account the possibility that you may not match what you're looking for: put tagHello/tag into tData if matchText(tData,(?s)tag(.*?)/tag,tValue) = true then put tValue -- Since this matches, you'll get Hello in the msg box else put No Match end if Ken Ray Sons of Thunder Software, Inc. Email: k...@sonsothunder.com Web Site: http://www.sonsothunder.com/ ___ 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
Re: moving and scaling an image
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, Today, I found time to revisit this code, originally published in 2009. Now the stack could zoom in and zoom out using the mouse scroll wheel. If you want, read that messages thread, started back in 2009: http://runtime-revolution.278305.n4.nabble.com/First-test-for-Infinite-Zoom-td621701.html I created two download links to public files in my Dropbox folder: http://dl.dropbox.com/u/3834621/Zoom_infinite_2011_07_03.zip http://dl.dropbox.com/u/3834621/Zoom_infinite_2011_07_03.rev Tell me if any of them fail. Still available in the web, here you could find the original images: http://public.hbk-bs.de/~baumgarn/zoom/steps/ Have a nice day! Al -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/moving-and-scaling-an-image-tp4372218p4374155.html Sent from the Revolution - User mailing list archive at Nabble.com. ___ 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 ___ 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
Re: moving and scaling an image
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 one in the App Browser, and then clicked the button again. Worked fine the second time. -Ken ___ 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
Re: moving and scaling an image
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, Today, I found time to revisit this code, originally published in 2009. Now the stack could zoom in and zoom out using the mouse scroll wheel. If you want, read that messages thread, started back in 2009: http://runtime-revolution.278305.n4.nabble.com/First-test-for-Infinite-Zoom-td621701.html I created two download links to public files in my Dropbox folder: http://dl.dropbox.com/u/3834621/Zoom_infinite_2011_07_03.zip http://dl.dropbox.com/u/3834621/Zoom_infinite_2011_07_03.rev Tell me if any of them fail. Still available in the web, here you could find the original images: http://public.hbk-bs.de/~baumgarn/zoom/steps/ Have a nice day! Al -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/moving-and-scaling-an-image-tp4372218p4374155.html Sent from the Revolution - User mailing list archive at Nabble.com. ___ 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 ___ 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
Re: regex help please
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 subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: Any in-house corporate developers?
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 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 misleading - a large part of the in-house apps that I've made with LiveCode exclusively interface with MS SQL- they do this via ODBC, but that is generally a reasonable way to do that (per a recent discussion I think on this list, recommended by MS over OLE). I've not had any problems with this. Similarly we work with PostgreSQL over ODBC - and in general I'd expect most SQL databases to be accessible in that way. Some of our apps also integrate with Oracle, for which there is a direct driver - this used to require an 'Enterprise' license from RunRev, but I believe is now bundled as standard with all license types. HTH, Ben ___ 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 ___ 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
Re: input and output to a cli
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 file and stdout to a text file - opening and reading the redirected stdout file to get the results. Pete On Thu, Feb 9, 2012 at 2:17 PM, Andrew Kluthe and...@rjdfarm.com wrote: Hey, I have a program with a command line interface that was written in nodejs to act as a bot for an irc server. It takes commands and prints responses and chatter in irc out to a command line. I launch it by calling this from a command line. node borg.js and I get a prompt similar to OHAI and it waits for commands. I input commands and read the responses right from the command console. I want to be able to send commands to this interface from a livecode program on windows and I want the output to be displayed in a scrolling list field. How does one go about communicating with this kind of command line interface with livecode? Can anyone point me in the right direction? Kind Regards, Andrew K ___ 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 -- Pete Molly's Revenge http://www.mollysrevenge.com ___ 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
Re: regex help please
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) tTag (.*?)/ tTag ,tValue) return tValue end mk_getXMLdata will give : more bla bla So far so good, I even almost understand the reg ex ;-) ___ 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
Re: moving and scaling an image
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 I didn't...so I added some more. Then, I double-clicked on the card one in the App Browser, and then clicked the button again. Worked fine the second time. -Ken ___ 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 ___ 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
Re: moving and scaling an image
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 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 one in the App Browser, and then clicked the button again. Worked fine the second time. -Ken ___ 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 ___ 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
Re: How alive is LiveCode?
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 staff answer questions? Why are there so many queries that languish? Why do many of the tools including YogaSQL seem to have had their last release a year or more ago? Not trying to troll here, but just wondering what your impression are. Has RunRev been growing? The language is so elegant I keep thinking that there is something I'm missing as to why it's not more popular. Mike Aloha, Mike: xTalk has been in the application development world since the day Hypercard started in the late 80's. LiveCode is the evolution of that set of tools but like modern man in relation to an earlier sub-species. My Point is simply this: xTalk is never, ever, going to die. It is like some species on the planet that have been with us through many extinction cycles, but which has survived each one. LiveCode is the current Elephant which carries xTalk to the latest robust level, able to uproot entire forests in a few days. It is a very powerful species of programming that can eat any set of requirements or use cases alive (get you thru the project from beginning to end) faster than any other language you might try to use. Just because there is a lot of noise about it on the net, doesn't make the language your best choice. Someone once tried to sell me on using Drupal for web/CMS because they had so many hits, but that's only because Drupal is so nasty. You have to practically go to Univerisity to use it, or pay for support big time. If you get a CMS that really works, then you find the developers are very quiet because the thing just works and instead of spending all their time posting issues on the forums, they are busy getting content up and online (OC Portal is a good example of something that just works) So the good stuff that just works has less chatter in the digital sphere, but that doesn't mean its inferior Alexander makes a good point that we have no idea who uses LiveCode for what. Here at Himalayan Academy Publications I/we use it for everything imaginable, desktop clients for Hinduism Today International daily blog, build web slide shows. I have an international network of volunteers using desktop clients to download audio files, transcript and upload to our web server where almost all the CGI is LiveCode. The Great Adobe's Version Cue for In house document revision control was a) a horribly buggy beast which cost our editorial team 100's of hours. b) they killed it in the end. Instead of going for some Digital Asset Manager that would meet our needs, I wrote my on revision control system for InDesign files in less that 3 weeks of time (part time). I have a few apps on line that I built in circa 2000 that *still* get downloaded and run fine on Windows or Mac. ___ 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
Re: [ANN] Casey's Solitaire published on Android Market
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 existed before the accelerated rendering. 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 resizestack Might be worth a go. Andy On 9 Feb 2012, at 17:51, J. Landman Gay wrote: 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: http://quality.runrev.com/show_bug.cgi?id=9985 ___ 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
Re: [ANN] Casey's Solitaire published on Android Market
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 resizestack Might be worth a go. 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. -- Jacqueline Landman Gay | jac...@hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com ___ 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
Re: [ANN] Casey's Solitaire published on Android Market
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. :( -- Jacqueline Landman Gay | jac...@hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com ___ 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
Drag and Drop in a locked field
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 field on mouseDown and then sending mouseDown again in 0 seconds, but that was a bust. I tried just unlocking the field on mouseDown and locking it on mouseUp but that was problematic too. Any easy way to implement this? I could use a datagrid I suppose (grumble grumble) but it would be nice if I could just do this with a simple list field. I want to reorder entire lines by dragging and dropping them. Bob ___ 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
Re: Drag and Drop in a locked field
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* fields automatically. Crud. So I tried unlocking the field on mouseDown and then sending mouseDown again in 0 seconds, but that was a bust. I tried just unlocking the field on mouseDown and locking it on mouseUp but that was problematic too. Any easy way to implement this? I could use a datagrid I suppose (grumble grumble) but it would be nice if I could just do this with a simple list field. I want to reorder entire lines by dragging and dropping them. I'm using a variation of Scott Rossi's Get In Line implementation… you can download the stack directly with this URL: http://www.tactilemedia.com/site_files/downloads/getinline.rev.zip Scott's got a lot of great tutorials and demos at his site, so you should check out: http://www.tactilemedia.com/site_files/software/tutorials.html Ken Ray Sons of Thunder Software, Inc. Email: k...@sonsothunder.com Web Site: http://www.sonsothunder.com/ ___ 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
Re: input and output to a cli
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. ___ 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
Re: input and output to a cli
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. ___ 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
Re: input and output to a cli
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 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. ___ 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 ___ 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
Re: Drag and Drop in a locked field
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 handler, but that didn't seem to fix it. Weird. This sort of thing should be automatic in the engine IMHO. Seems like a common thing to want to rearrange lines in a list by dragging and dropping. Bob On Feb 9, 2012, at 4:50 PM, Ken Ray wrote: 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* fields automatically. Crud. So I tried unlocking the field on mouseDown and then sending mouseDown again in 0 seconds, but that was a bust. I tried just unlocking the field on mouseDown and locking it on mouseUp but that was problematic too. Any easy way to implement this? I could use a datagrid I suppose (grumble grumble) but it would be nice if I could just do this with a simple list field. I want to reorder entire lines by dragging and dropping them. I'm using a variation of Scott Rossi's Get In Line implementation… you can download the stack directly with this URL: http://www.tactilemedia.com/site_files/downloads/getinline.rev.zip Scott's got a lot of great tutorials and demos at his site, so you should check out: http://www.tactilemedia.com/site_files/software/tutorials.html Ken Ray Sons of Thunder Software, Inc. Email: k...@sonsothunder.com Web Site: http://www.sonsothunder.com/ ___ 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 ___ 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
Re: How alive is LiveCode?
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 using it if it were still in development. For ad-hoc reporting and querying it's the best. VFP covers all of the bases including report writing, a built in db, SQL support (sort of) and I can see that with LiveCode I'm going to have to add external tools to fill in the gaps. Thanks for the responses. Mike ___ 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
Re: Any in-house corporate developers?
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 frameworks in the VFP world where much of the user security is already designed. Have you ever come across such a product for LiveCode? Also, you mentioned that it is a single developer environment, that is sort of limiting. How about source control, is there anyway to make use of those types of tools to keep track of changes. ___ 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