[OT] standalone image problem
I don't have a standalone image problem; mainly because when I attempt to stand alone I generally fall over. That is what is so wonderful about this Use-List; one always has someone to lean on . . . :) ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
[req] old external sdk with the game of life code
does anyone have the old external sdk with the game of life code? either post a link here or email me directly.. thanks :-) ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
Re: standalone image problem
J. Landman Gay wrote: On 11/6/10 12:29 PM, Richard Gaskin wrote: For many years the engine used the folder where the executable resides as the defaultFolder, which for Mac was inside the bundle - when did this change? I can't find a reference to the change in any of the change docs I looked at, but sure enough, it's changed somewhere along the way. I'm sort of surprised I hadn't noticed till now, but I usually don't depend on the (default) defaultfolder in my standalones. Generally I set it myself if I need it. Me too. I figure any property subject to change at any time by any script needs to be saved, set to what I need explicitly, then restored when I'm done. Thanks for the reality check, since I couldn't find mention of when it changed either but felt (almost) certain I wasn't imagining that it had previously been different. Now that I think about it a bit more I wonder if that change was concurrent with the change to how image paths are found, maybe somewhere in the v3.0 time frame -- 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-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
serial port problems
I am trying to read data from a serial port (using a USB-serial adaptor). I am on a MacBook Pro running 10.5.8, using LiveCode 4.5, and Prolific model 2303 USB-serial adaptor. The following code does not work: on mouseUp put modem: into usbSerial put empty into field Field open driver usbSerial for text read read from driver usbSerial for 5 chars put it after field field close driver usbSerial end mouseUp Setting a breakpoint on the read from shows that the open does not appear to fail. Single-stepping through the read does not wait for any input from the connected terminal, it returns immediately. It is empty afterward. By reading for N chars I believe I am side-stepping any line - terminator issues. I have confirmed that the USB-serial adaptor and the terminal can talk to each other properly, using the command-line invocation: 'screen / dev/tty.usbserial'. I have confirmed that the serialControlString matches the terminal's settings. This fail whether I use open file or open driver. This fails whether I use modem or printer as the device. If I use /dev/tty.usbserial, the IDE hangs and I have to Force-Quit it. I have tried using the SerialTest.rev stack (http://www.troz.net/rev/stacks/SerialTest.rev ) as well: identical results. I have read Phil Worthington's paper on serial communication (http://www.pdslabs.net/usb/rev-usb1.pdf ); I believe I'm doing just as he suggests (except for the no-name adaptor I bought), but no luck. I did notice that the DeviceNames seems to now return its results in a format different from the one Phil describes, for whatever that might be worth (LC4.5 changes?). Has anything changed in LC4.5 regarding serial communication? Can others run the serialTest.rev script properly under LC4.5? Any suggestions welcome! Larry Walker Walker Energy Systems LLC Madison, WI USA Strategies Technologies www.walkerenergysystems.com ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
RE: Refreshing a card
Thanks Terry, the following worked beautifully.. set the showDateStamp of this stack to not the showDateStamp of this stack if there is a fld dateStampField then set the visible of field datestampfield to the showdatestamp of this stack end if break (I wasn't able to figure out how to use openCard in this situation but since I have a solution I'l leave that problem for another day). Thanks again. -- mark From: use-revolution-boun...@lists.runrev.com [use-revolution-boun...@lists.runrev.com] On Behalf Of Terry Judd [...@unimelb.edu.au] Sent: Sunday, October 31, 2010 10:57 PM To: How to use Revolution Subject: Re: Refreshing a card Mark - if you want to do a general refresh the card then just call openCard in your handler. If all you want to do is refresh the date stamp object then add something like... Set the visible of grp/fld/whatever dateStamp to the showDateStamp of this stack ...to your case statement HTH, Terry... On 1/11/10 2:52 PM, Mark Smith mark_sm...@cpe.umanitoba.ca wrote: Hello all, by now most of you are probably familiar with my silly questions (born of, I am afraid, too many years engrossed in procedural programming languages). Here we go. I have a menu option called Toggle Date Stamp and it toggles on/off the display of a date stamp on the card. When you select it you might expect that the card goes from displaying the date stamp to not displaying the date stamp ad infinitum. Not so. In fact nothing changes. If I move off the card and then back on I see the correct behaviour but not while I am actually on the card (or any card). I am guessing that in the Toggle Date Stamp menu code (below) I need to send a message to the card to refresh itself. But what message? case Toggle Date Stamp set the showDateStamp of this stack to not the showDateStamp of this stack -- insert some message to get the current card to redisplay itself break end switch (Note, yes the showDateStamp property is in the stack because it effects the behaviour of all of the cards, not particular ones. Hopefully I've got that bit of logic right :-) Thanks for your patience, -- Mark -- Dr Terry Judd | Senior Lecturer in Medical Education Medical Education Unit Melbourne Medical School The University of Melbourne ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
Re: serial port problems
I have had problems with 4.5 and serial comms. I have not had time to diagnose it properly. I just regressed back to use 4.0 until the bugs in 4.5 get dealt with (kind of annoyed that I paid for the upgrade I can't use yet though). I hope you get it figured out. Erik On Sun, Nov 7, 2010 at 10:18 AM, Larry Walker la...@walkerenergysystems.com wrote: I am trying to read data from a serial port (using a USB-serial adaptor). I am on a MacBook Pro running 10.5.8, using LiveCode 4.5, and Prolific model 2303 USB-serial adaptor. The following code does not work: on mouseUp put modem: into usbSerial put empty into field Field open driver usbSerial for text read read from driver usbSerial for 5 chars put it after field field close driver usbSerial end mouseUp Setting a breakpoint on the read from shows that the open does not appear to fail. Single-stepping through the read does not wait for any input from the connected terminal, it returns immediately. It is empty afterward. By reading for N chars I believe I am side-stepping any line -terminator issues. I have confirmed that the USB-serial adaptor and the terminal can talk to each other properly, using the command-line invocation: 'screen /dev/tty.usbserial'. I have confirmed that the serialControlString matches the terminal's settings. This fail whether I use open file or open driver. This fails whether I use modem or printer as the device. If I use /dev/tty.usbserial, the IDE hangs and I have to Force-Quit it. I have tried using the SerialTest.rev stack (http://www.troz.net/rev/stacks/SerialTest.rev) as well: identical results. I have read Phil Worthington's paper on serial communication (http://www.pdslabs.net/usb/rev-usb1.pdf); I believe I'm doing just as he suggests (except for the no-name adaptor I bought), but no luck. I did notice that the DeviceNames seems to now return its results in a format different from the one Phil describes, for whatever that might be worth (LC4.5 changes?). Has anything changed in LC4.5 regarding serial communication? Can others run the serialTest.rev script properly under LC4.5? -- == er...@sisyph.us http://sisyph.us (530) 213-ERIK http://twitter.com/eriks (530) 213-3745 http://www.linkedin.com/in/erikschwartz == ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
Re: Paging Shao Sean
I'm looking for the latest version of your libSMTP library. Could you post it somewhere for us? Uploading to (the new) RevOnline would be a community service and even better if you're willing. BTW, your stuff is so useful, I wish you had links on your web site. Ken Ray has a link to a newish 2.5.something libSMTP on his site but the URL doesn't resolve. :( I have a copy of 1.20 I can send you if Sean doesn't have a newer one... Ken Ray Sons of Thunder Software, Inc. Email: k...@sonsothunder.com Web Site: http://www.sonsothunder.com/ ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
Hello World iOS Sample App
I have finally started to tinker around with the pre-alpha. I built the Hello World app. It runs fine in the simulator, but after transferring it to my Touch I can get it to start, but it immediately quits. Anybody else run into this? -- On the first day, God created the heavens and the Earth On the second day, God created the oceans. On the third day, God put the animals on hold for a few hours, and did a little diving. And God said, This is good. ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
Stack scroll bars to fit small screen
InfoWallet now requires 1024 x 768 which is fine for all monitors these days except for NetBooks which typically have a resolution of 1024 x 600 and sometimes smaller. It would be difficult to squeeze everything to fit in that size window. How can I make the application window scroll (i.e. add scroll bars) if the window size became smaller than 1024 x 768? Lots of other applications do this. Word processors and web browsers just to name two. Bill Vlahos _ InfoWallet (http://www.infowallet.com) is about keeping your important life information with you, accessible, and secure. ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
Re: Paging Shao Sean
On 11/7/10 9:18 AM, Ken Ray wrote: I'm looking for the latest version of your libSMTP library. Could you post it somewhere for us? Uploading to (the new) RevOnline would be a community service and even better if you're willing. BTW, your stuff is so useful, I wish you had links on your web site. Ken Ray has a link to a newish 2.5.something libSMTP on his site but the URL doesn't resolve. :( I have a copy of 1.20 I can send you if Sean doesn't have a newer one... Thanks, but I have 1.5. I can send you if you want. :) That may actually be the most recent, but I wanted to check because it was released in 2003. -- Jacqueline Landman Gay | jac...@hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
Re: Stack scroll bars to fit small screen
You need to put everything in a group, and resize the grp with the window. On Sunday, November 7, 2010, Bill Vlahos bvla...@mac.com wrote: InfoWallet now requires 1024 x 768 which is fine for all monitors these days except for NetBooks which typically have a resolution of 1024 x 600 and sometimes smaller. It would be difficult to squeeze everything to fit in that size window. How can I make the application window scroll (i.e. add scroll bars) if the window size became smaller than 1024 x 768? Lots of other applications do this. Word processors and web browsers just to name two. Bill Vlahos _ InfoWallet (http://www.infowallet.com) is about keeping your important life information with you, accessible, and secure. ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
Re: standalone image problem
Not sure if this helps, but I usually set the filename to empty, THEN set it to the specific file when swapping out files with the sane name. On Sunday, November 7, 2010, Richard Gaskin ambassa...@fourthworld.com wrote: J. Landman Gay wrote: On 11/6/10 12:29 PM, Richard Gaskin wrote: For many years the engine used the folder where the executable resides as the defaultFolder, which for Mac was inside the bundle - when did this change? I can't find a reference to the change in any of the change docs I looked at, but sure enough, it's changed somewhere along the way. I'm sort of surprised I hadn't noticed till now, but I usually don't depend on the (default) defaultfolder in my standalones. Generally I set it myself if I need it. Me too. I figure any property subject to change at any time by any script needs to be saved, set to what I need explicitly, then restored when I'm done. Thanks for the reality check, since I couldn't find mention of when it changed either but felt (almost) certain I wasn't imagining that it had previously been different. Now that I think about it a bit more I wonder if that change was concurrent with the change to how image paths are found, maybe somewhere in the v3.0 time frame -- 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-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
Re: serial port problems
On 11/7/10 9:18 AM, Larry Walker wrote: I am trying to read data from a serial port (using a USB-serial adaptor). Glad to see this here Larry. Just to fill everyone in, Larry and I have been going around with this issue for about a week in the tech queue without success (and I really appreciate his patience, he's been incredibly reasonable about it.) I asked Mark Waddingham about the problem and he said that basically the serial commands haven't been changed since their initial implementation back in MetaCard, and that any device that represents itself as a serial device should work with open file (but not necessarily with the device name returned by the drivernames. Use modem: or printer: instead.) He also said that they have never been reworked to support OS X; they were originally written for OS 9 and have always continued to work in OS X, so the code hasn't been examined. Eric's comment that it works in 4.0 and not in 4.5 is something I don't think the team knows about. Since serial access hasn't changed in the engine, there must be some other change that peripherally affects serial port access. If that's so, then a bug report in the QCC would be in order. I hope either Sarah or Phil will see this, since they are the serial/USB experts here. Maybe they have some comments to add or a workaround they've discovered. -- Jacqueline Landman Gay | jac...@hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
Re: Hello World iOS Sample App
On 11/7/10 10:20 AM, Mike Kerner wrote: I have finally started to tinker around with the pre-alpha. I built the Hello World app. It runs fine in the simulator, but after transferring it to my Touch I can get it to start, but it immediately quits. Anybody else run into this? Did you go through all the provisioning stuff that Apple requires? Do you have your provisioning license, and is it copied it to the device? I don't know if that's the problem exactly but it is something to check. -- Jacqueline Landman Gay | jac...@hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
Re: Hello World iOS Sample App
Mike, I dont know what is going on in your special case. But I did have problems with code I pasted into the script editor in 4.5 and above.When you copy formatted text the script editor at times inserts spurious ascii 202 in front of the code. This is with formatted text only. If you first convert the text in a text editor to ascii it works. This is no problem with Rev 4.0, This is new. What you see happened to me also, app runs well in the IDE and Simulator, but the app froze on the device. It was discussed in the forum: http://forums.runrev.com/phpBB2/viewtopic.php?f=5t=5960 Maybe this has something to do with your problem. regards Bernd -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/Hello-World-iOS-Sample-App-tp3030945p3031047.html Sent from the Revolution - User mailing list archive at Nabble.com. ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
Re: Painfully slow performance (Trevor DeVore)
Thanks for all the input. I've pretty much ruled out SQLite as the cause of the problem because I'm using the same database in the IDE and the standalone so unless the standalone is using a different SQLite library than the IDE, there shouldn't be any difference in performance between the two. Maybe it would help if I give a little more detail as to what is happening on the card. The basic design of most of my cards involves a datagrid which displays summary information about selected table entries. When the user clicks on a row in the datagrid, I get the single entry associated with that row from the SQLite table and load information from it into controls on the form. I use naming conventions for the controls that allow the code to figure out which column in the table entry they are associated with. The slow down in performance is directly related to the number of option buttons on the card - no option buttons, no slowdown. For a card with several option buttons, when I click on a datagrid row in the IDE, the update of the controls on the card is instantaneous. When I do the same thing in the standalone, the update of the controls is painfully slow. This is using exactly the same data from the same database. The code to handle option buttons simply executes a SELECT statement to get data from the database, a simple set statement to set the text of the control to the data from the SELECT statement and another statement to set the menuhistory of the control using the lineoffset function to locate the value of the column in the current table row to the text of the control. Help! Pete Haworth ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
Re: Paging Shao Sean
Hi, i have here version 2.5.3. As i think it´s ok for Shao Sean, i´ve uploaded it to my dropbox and publish the link to this list. http://dl.dropbox.com/u/11969084/LiveCode/smtpLibraries/libSmtp253.livecode Btw.: Did you have a look also at Sarah´s library? Her library supports HTML and also attachments. Regards, Matthias Am 07.11.2010 um 18:47 schrieb J. Landman Gay: On 11/7/10 9:18 AM, Ken Ray wrote: I'm looking for the latest version of your libSMTP library. Could you post it somewhere for us? Uploading to (the new) RevOnline would be a community service and even better if you're willing. BTW, your stuff is so useful, I wish you had links on your web site. Ken Ray has a link to a newish 2.5.something libSMTP on his site but the URL doesn't resolve. :( I have a copy of 1.20 I can send you if Sean doesn't have a newer one... Thanks, but I have 1.5. I can send you if you want. :) That may actually be the most recent, but I wanted to check because it was released in 2003. -- Jacqueline Landman Gay | jac...@hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
Re: serial port problems
I think that the no-name adaptor might be a problem. I've successfully used the KEYSPAN adaptor with Rev recently with version 4. I have not tested the KEYSPAN with 4.5. search google for keyspanhttp://www.google.com/search?q=keyspan+serial+adaptorhl=ensafe=offclient=safarirls=enprmd=ssource=univtbs=shop:1tbo=uei=dPzWTMK8HIS2sAOrpYCNCwsa=Xoi=product_result_groupct=titleresnum=3ved=0CEIQrQQwAgbiw=1577bih=951 On 7 November 2010 07:18, Larry Walker la...@walkerenergysystems.comwrote: I am trying to read data from a serial port (using a USB-serial adaptor). I am on a MacBook Pro running 10.5.8, using LiveCode 4.5, and Prolific model 2303 USB-serial adaptor. ; I believe I'm doing just as he suggests (except for the no-name adaptor I bought), Stephen Barncard San Francisco Ca. USA more about sqb http://www.google.com/profiles/sbarncar ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
alerts
How do you do a dialog like the Save dialog (Command-S) in rev? (ie. it goes away without user interaction when the action is complete) Thanks -- Mark -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/alerts-tp3031113p3031113.html Sent from the Revolution - User mailing list archive at Nabble.com. ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
Re: standalone image problem
On Nov 6, 2010, at 11:29 AM, Richard Gaskin wrote: Devin Asay wrote: The tricky thing about standalone apps on OS X is that, if you do not set the defaultFolder in the stack, the defaultFolder will be the folder where the .app bundle resides. For many years the engine used the folder where the executable resides as the defaultFolder, which for Mac was inside the bundle - when did this change? I do remember it changing, but I don't remember exactly when. It's actually really handy, because you can choose to have the .app bundle's parent folder be the defaultFolder, or you can set it explicitly and hide all of your resource files and stacks inside the .app bundle. Devin Devin Asay Humanities Technology and Research Support Center Brigham Young University ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
Re: alerts
Not sure what you mean. The save dialog has its own life: It does its thing, and dismisses itself. If there is no user interaction, you can just hide the dialog after a certain amount of time has passed from when it appeared. Is that what you needed advice about? How to arrange that it dismiss itself after a certain interval? Craig Newman ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
Re: alerts
I reread your post. I might still be confused by without user interaction when the action is complete. Is the action just the showing of the dialog? But if all you want is to show some sort of dialog, and then dismiss it, just: showYourDialog wait 120--or whatever hideYourDialog Is your dialog a substack? A field? That is why I rolled it all into showYourDialog instead of, say show field yourField. Ask again if I am way off base. ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
How do you program a save dialog when no changes in the file has been made?
I have code in my save menu that brings up a dialog for saving a file with Don't Save, Cancel and Save. After the user saves the file the first time, the code will automatically insert the name of the file into the dialog above when the user wants to save it again or get ready to open a new file. Any time the user gets ready to close the file or open a new file the dialog above (Don't Save, Cancel and Save) appears. How do I code it so that when the user does NOT make a change to the file (preserving the save file) the dialog of Don't Save, Cancel and Save will not appear and the file will go ahead close or a new file dialog will appear? -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/How-do-you-program-a-save-dialog-when-no-changes-in-the-file-has-been-made-tp3031279p3031279.html Sent from the Revolution - User mailing list archive at Nabble.com. ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
Re: How do you program a save dialog when no changes in the file has been made?
you need to set a flag, for example, if this would be in a text editor, i'd set a dirty flag on rawkeydown of the main text entry field, and then when the stack (window) is closed i'd check for that flag: --in the field on rawkeydown theKey set the dirty of me to true pass rawkeydown end rawkeydown --in the stack on openstack set the dirty of field text to false end openstack on closestackrequest if the dirty of field text then -- do the save dialog here else pass closestackrequest end if end closestackrequest note: this is a simplified example, and does not cover all real life possibilities On 7 Nov 2010, at 23:46, charles61 wrote: I have code in my save menu that brings up a dialog for saving a file with Don't Save, Cancel and Save. After the user saves the file the first time, the code will automatically insert the name of the file into the dialog above when the user wants to save it again or get ready to open a new file. Any time the user gets ready to close the file or open a new file the dialog above (Don't Save, Cancel and Save) appears. How do I code it so that when the user does NOT make a change to the file (preserving the save file) the dialog of Don't Save, Cancel and Save will not appear and the file will go ahead close or a new file dialog will appear? -- official ChatRev page: http://bjoernke.com?target=chatrev Chat with other RunRev developers: go stack URL http://bjoernke.com/chatrev/chatrev1.3b3.rev; ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
Re: [req] old external sdk with the game of life code
Thanks to Mark W (no, the other Mark W ;-) for sending it to me off- list.. ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
Re: serial port problems
On Mon, Nov 8, 2010 at 1:18 AM, Larry Walker la...@walkerenergysystems.com wrote: I am trying to read data from a serial port (using a USB-serial adaptor). I am on a MacBook Pro running 10.5.8, using LiveCode 4.5, and Prolific model 2303 USB-serial adaptor. The following code does not work: on mouseUp put modem: into usbSerial put empty into field Field open driver usbSerial for text read read from driver usbSerial for 5 chars put it after field field close driver usbSerial end mouseUp Setting a breakpoint on the read from shows that the open does not appear to fail. Single-stepping through the read does not wait for any input from the connected terminal, it returns immediately. It is empty afterward. By reading for N chars I believe I am side-stepping any line -terminator issues. I have confirmed that the USB-serial adaptor and the terminal can talk to each other properly, using the command-line invocation: 'screen /dev/tty.usbserial'. I have confirmed that the serialControlString matches the terminal's settings. This fail whether I use open file or open driver. This fails whether I use modem or printer as the device. If I use /dev/tty.usbserial, the IDE hangs and I have to Force-Quit it. OK, I haven't tried any of this with LC 4.5, but if Mark says nothing has changed, then this should still be valid. Firstly, modem: is unlikely to work. Some Keyspans allow you to configure one of their connections to appear to be a modem, but unless your Mac actually has a modem, then this is not going to connect to anything. You MUST install drivers for your adapter. In your case, Prolific supply all the drivers at http://www.prolific.com.tw/eng/downloads.asp?id=31. Once you have the drivers installed, check the driverNames again and hopefully something will show up. Here is what I get on a Mac with a Keyspan (two port) and a generic FTDI adapter attached and Rev 4.0: usbserial-FTC8J5X3,/dev/tty.usbserial-FTC8J5X3,/dev/cu.usbserial-FTC8J5X3 KeySerial1,/dev/tty.KeySerial1,/dev/cu.KeySerial1 USA28X1a2P1.1,/dev/tty.USA28X1a2P1.1,/dev/cu.USA28X1a2P1.1 USA28X1a2P2.2,/dev/tty.USA28X1a2P2.2,/dev/cu.USA28X1a2P2.2 Bluetooth-PDA-Sync,/dev/tty.Bluetooth-PDA-Sync,/dev/cu.Bluetooth-PDA-Sync Each line of the driverNames contains 3 items. The one you need to use is the last one, starting with /dev/cu.. To open the port to the first device on the list, I would use: global gPortName put /dev/cu.usbserial-FTC8J5X3 into gPortName open driver gPortName for binary update if the result is not empty then answer error Unable to open port cr the result end if When finished, close the port using: close driver gPortName But you may need to adjust the serial port settings before you can actually send and receive data. This depends on the device you are communicating with, rather than the adapter, but my serial test stack allows easy access to the common settings, so you can test this. When writing, again it depends on the device. Some require a fixed number of bytes, some need a specific end-of-line. Use my test stack to work this out if you don't have the docs. Reading: the problem with reading a fixed number of bytes is that the bytes you don't read are still in the buffer and will mess up your next read. This may not matter if you are closing the port after each read, but I always prefer to use: read from driver gPortName until empty in 90 ticks This grabs everything it can inside the time limit. Then I can work out whether I have received multiple signals, or a partial signal and act accordingly, either processing the segments in a loop, or asking the serial port for more data. I hope this helps you get started, but if not, feel free to get back to me, either on or off list. Cheers, Sarah ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
Re: Paging Shao Sean
On 11/7/10 12:57 PM, Matthias Rebbe wrote: Hi, i have here version 2.5.3. As i think it´s ok for Shao Sean, i´ve uploaded it to my dropbox and publish the link to this list. http://dl.dropbox.com/u/11969084/LiveCode/smtpLibraries/libSmtp253.livecode Btw.: Did you have a look also at Sarah´s library? Her library supports HTML and also attachments. Thank you very much, I hope Sean doesn't mind. This version is newer than one that someone just sent me privately. I appreciate it. Sean also wrote, so I'll get back to her and see if this is the latest. I do have Sarah's stack which is also excellent. Right now I'm just reviewing the options. I don't need enclosures or html, so probably either one will work. -- Jacqueline Landman Gay | jac...@hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
Re: Refreshing a card
Hi Monte, sorry if I missed replying. The problem was that on any specific card when I selected the toggle date stamp menu option, visibly nothing happened. In reality the property showdatestamp was changing from true to false on each menu selection based on the statement: set the showDateStamp of this stack to not the showDateStamp of this stack but the field itself (I think I've called it the datestampfield) did not appear or disappear as one might expect. Going from the current card (where the toggle was selected) to another card did show the desired result. ie. if you toggled the showdatestamp to off (or false in this case) then going to another card suppressed displaying the datestampfield. There is a line of code each time you open a card that stays if there is a fld dateStampField then put the dateStamp of this card into field dateStampField end if but what I was doing (which did not work) was trying to make it visible or not by doing something like this if there is a fld dateStampField then put the dateStamp of this card into field dateStampField else put into field dateStampField end if sort of trying to make it visible or not visible myself. I did not know about the set the visible of... command sequence. By adding that into the menu handler (if that is the correct term) so that it says case Toggle Date Stamp set the showDateStamp of this stack to not the showDateStamp of this stack -- new stuff added to make it visible/invisible if there is a fld dateStampField then set the visible of field datestampfield to the showdatestamp of this stack end if works fine. Its still a bit tricky to wrap my head around this. The mechanics of doing it have some pieces here, some pieces there, and its not entirely clear to me how they all work together. And I guess the critical portion to understand is that there is a large junk of this visibility thing which I'm NOT doing. Now its something that reunrev handles when you set the visibility property of the field through the menu. Put another way, previously I was trying to make it appear or not by putting the date in the field, or a space. Now, I don't worry about it. I put the date in the field (if there is one) and let the visibility property handle whether it gets displayed or not. If that makes any sense. Anyway, I appreciate your feedback. -- Mark -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/Refreshing-a-card-tp3021743p3031539.html Sent from the Revolution - User mailing list archive at Nabble.com. ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
Re: alerts
Hi Craig, I looked up dialogs and what not in the dictionary and user guide and all I found where ones driven by ask and answer (nothing like a 1 way conversation like tell). In this case we don't need the user to dismiss the dialog, or answer anything, we just want to inform them that something is going on (a save is in process) and once it is finished the dialog should just go away. Wondering if runrev has a command for that, or if we are building it from pieces what is/are the critical pieces (ie. how would i know the save is complete for example). Thanks -- Mark -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/alerts-tp3031113p3031542.html Sent from the Revolution - User mailing list archive at Nabble.com. ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
Re: alerts
Hi Craig, Forget the part about not knowing when a save is done... I'm a little tired at the moment but did figure it out. I have code that says: on mouseUp save this stack end mouseUp Pretty simple. But there is no visible indication to the user in my stack that anything happened. So what I want to do is: on mouseUp -- show a dialog saying we're saving now... (sort of like what runrev itself does when you do cmd-S) save this stack -- dismiss the dialog end mouseUp BUT, the only dialogs I have found in runrev are ask or answer, both of which require the user to dismiss them. How do you do an information only dialog (or is it an alert?) that does not require user intervention? PS which reminds me, is there anyway to see how the IDE itself was implemented? (i'd go look at the code for the IDE's save command). I've heard or read that it is possible to do that but haven;t discovered how. Thanks again, -- Mark -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/alerts-tp3031113p3031553.html Sent from the Revolution - User mailing list archive at Nabble.com. ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
Re: alerts
Hi Mark, Why don't you create an image, paste it wherever you want into your stack; then when you want it to appear, just show it; when you're through with it, then hide it. I've done this a number of times. I usually create such images using MacDraft, but I'm sure you can do the same with various other drawing programs. You have complete control of what the image contains. Joe Wilkins On Nov 7, 2010, at 10:07 PM, Mark Smith wrote: Hi Craig, I looked up dialogs and what not in the dictionary and user guide and all I found where ones driven by ask and answer (nothing like a 1 way conversation like tell). In this case we don't need the user to dismiss the dialog, or answer anything, we just want to inform them that something is going on (a save is in process) and once it is finished the dialog should just go away. Wondering if runrev has a command for that, or if we are building it from pieces what is/are the critical pieces (ie. how would i know the save is complete for example). Thanks -- Mark ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution