Reports and Formatted Text
(Note that I posted this to the forum, but no answer, perhaps its too RTFM) I suppose I will be forever the beginner. I have done some pretty fun stuff with LiveCode lately, but have looked at this too long. I have developed a simple webpage that does time calculation for competitive carriage driving (yes, horses carriages, talk about buggy whip makers!) Sometimes we compete where there is no internet connectivity or even cell phone connections. So, I'd like to make an app that run on Mac, Windows, iOS, Android, etc. The easiest way to explain it is to look a the website: http://drivingnews.us/marathontimes ... select 'Set Default Speeds'-any of those and then for Section A distance: type in 6505, Section D type in 1 (it will convert to K) and Section E type in 7500 and calculate. (you can click on any of the options if you like) The front page, I know how to do just fine in LiveCode, but how do I get the formatted text on the 'calculated' page? I am sure its quite easy, as is almost everything in LiveCode. thanks in advance, Mike.___ 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: Reports and Formatted Text
Mike- Monday, November 15, 2010, 6:41:11 AM, you wrote: (Note that I posted this to the forum, but no answer, perhaps its too RTFM) I think most of us here don't look at the web forum... The front page, I know how to do just fine in LiveCode, but how do I get the formatted text on the 'calculated' page? OK - I'm a bit confused by your terminology - do you want to create a webpage or an app? With no internet connectivity at the site I'm assuming you're talking about an app. In that case, what I'd do is have two pages in the stack: the first being the input form and the second being the calculated results. On the second page, use the property editor to set the text fonts the way you want. Then have buttons on each page that simply go to the other page. OTOH, if you really do want to output web pages on the fly, bracket your calculated results with html tags: bukmub Did I misunderstand what you're trying to accomplish? -- -Mark Wieder mwie...@ahsoftware.net ___ 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: Reports and Formatted Text
Mark, Thank you for your response. You've got it exactly right. I already have a web page implementation ... first user request: an iPhone App, 2nd: Android, 3rd: PC ... because at competitions occasionally we do not have cell coverage (though for the most part, it was because the iPhone people didn't realize that they could use their browsers ... but have to remember, carriage drivers have a rather high average age :-) So the 'way' to do this is to define individual fields and set their properties for font and visibility (if a value isn't entered for a phase, then that phase doesn't get any values) ... Given this approach, what I am unsure of is how to make the size of Section A output variable (2 lines if 1.5K, but 8 lines if 7.5K) and then not have blank space if section D isn't specified. The idea is that if a printer is around, they can print this and tape it directly to their carriage. (try some values on the web page and it might help understand my wandering http://driivngnews.us/marathontimes) thanks in advance, Mike. ___ 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
formatted text in clipboardData
I am trying to use a script to put the text of three text fields into the clipboardData and then manually paste it into a Word document and keep the text formatting. Field txt1 - font A Bold Field txt2 - font B Regular Field txt3 - font A Regular If I copy and paste each of the 3 fields separately, the fonts and formatting are retained. But with this script; set the clipboardData[rtf] to the rtfText of fld txt1 the rtfText of fld txt2 the rtfText of fld txt3 and then paste in the Word document, even when choosing formatted text result in all three becoming font A Regular. I have tried the same thing with htmlText and neither one works so far for me. Is it possible to do what I am trying to do? Cheers, Lars ___ 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: formatted text in clipboardData
Lars, Try this or a slightly different variant: set the htmlText of fld txt4 to the htmlText of fld txt1 \ the htmlText of fld txt2 the htmlText of fld txt4 set the clipboardData[rtf] to the rtfText of fld txt4 You'll need an additional field txt4. Best, Mark Op 31-03-10 15:04, Lars Brehmer schreef: I am trying to use a script to put the text of three text fields into the clipboardData and then manually paste it into a Word document and keep the text formatting. Field txt1 - font A Bold Field txt2 - font B Regular Field txt3 - font A Regular If I copy and paste each of the 3 fields separately, the fonts and formatting are retained. But with this script; set the clipboardData[rtf] to the rtfText of fld txt1 the rtfText of fld txt2 the rtfText of fld txt3 and then paste in the Word document, even when choosing formatted text result in all three becoming font A Regular. I have tried the same thing with htmlText and neither one works so far for me. Is it possible to do what I am trying to do? Cheers, Lars ___ 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: Pasting formatted text into Rev fields not possible on OS X
François You asked: has anyone observed the difference between optical size of of fonts between rev and other apps in OS X? I'm sorry I was hasty in my comments on the optical appearance of text. You may have experienced differences that were not causally related to the bugs with html and rtfText that I was concerned with. I now have seen text size differences that are not related to html or rtfText bugs, but on Windows XP. I don't have the latest mac OS to text, but things look OK on OS 10.3.9. Hence my rash assumption. It would be good if you added your experiences to the bug report: http://quality.runrev.com/qacenter/show_bug.cgi?id=8474 http://quality.runrev.com/qacenter/show_bug.cgi?id=8474 All the best Gerard -- View this message in context: http://n4.nabble.com/Pasting-formatted-text-into-Rev-fields-not-possible-on-OS-X-tp585872p882090.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: Pasting formatted text into Rev fields not possible on OS X
do you work on Windows? In http://quality.runrev.com/qacenter/show_bug.cgi?id=8428, comment 6 says that RTF is not used for pasting in Mac OS X. best François Le 13 nov. 2009 à 08:21, gmccarthy a écrit : has anyone observed the difference between optical size of of fonts between rev and other apps in OS X? There does not seem to be an entry for this in qacenter. http://quality.runrev.com/qacenter/show_bug.cgi?id=7609 Yes, this was the whole point of my initial report. bug 7331 I put it in terms of teh rtfText is actually different so the so called optical size is obviously different. There are now 5 bug reports for more problems associated with rtfText problems http://quality.runrev.com/qacenter/show_bug.cgi?id=7331 http://quality.runrev.com/qacenter/show_bug.cgi?id=7334 http://quality.runrev.com/qacenter/show_bug.cgi?id=7985 http://quality.runrev.com/qacenter/show_bug.cgi?id=8428 http://quality.runrev.com/qacenter/show_bug.cgi?id=7609 To observed optical difference that people are noticing is due to the actual difference in the rtfText values. See http://quality.runrev.com/qacenter/show_bug.cgi?id=7331 for specific details of the rtfText translation problem and a stack for demonstrating the rtfText translation problems. Also note the optical differences by dragging the image from teh lower left corner over the field to see that the text is actually different in size. ___ 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: Pasting formatted text into Rev fields not possible on OS X
There are now 4 bug reports for more problems associated with rtfText problems http://quality.runrev.com/qacenter/show_bug.cgi?id=7331 http://quality.runrev.com/qacenter/show_bug.cgi?id=7334 http://quality.runrev.com/qacenter/show_bug.cgi?id=7985 http://quality.runrev.com/qacenter/show_bug.cgi?id=8428 See http://quality.runrev.com/qacenter/show_bug.cgi?id=7331 for specific details of the rtfText translation problem and a stack for demonstrating the rtfText translation problems. Regards Gerard McCarthy -- View this message in context: http://n4.nabble.com/Pasting-formatted-text-into-Rev-fields-not-possible-on-OS-X-tp585872p620088.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: Pasting formatted text into Rev fields not possible on OS X
Le 12 nov. 2009 à 09:13, gmccarthy a écrit : There are now 4 bug reports for more problems associated with rtfText problems http://quality.runrev.com/qacenter/show_bug.cgi?id=7331 http://quality.runrev.com/qacenter/show_bug.cgi?id=7334 http://quality.runrev.com/qacenter/show_bug.cgi?id=7985 http://quality.runrev.com/qacenter/show_bug.cgi?id=8428 See http://quality.runrev.com/qacenter/show_bug.cgi?id=7331 for specific details of the rtfText translation problem and a stack for demonstrating the rtfText translation problems. Regards Gerard McCarthy has anyone observed the difference between optical size of of fonts between rev and other apps in OS X? There does not seem to be an entry for this in qacenter. Best François ___ 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: Pasting formatted text into Rev fields not possible on OS X
François Chaplais wrote: has anyone observed the difference between optical size of of fonts between rev and other apps in OS X? There does not seem to be an entry for this in qacenter. http://quality.runrev.com/qacenter/show_bug.cgi?id=7609 Add your comments. :) -- 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: Pasting formatted text into Rev fields not possible on OS X
has anyone observed the difference between optical size of of fonts between rev and other apps in OS X? There does not seem to be an entry for this in qacenter. http://quality.runrev.com/qacenter/show_bug.cgi?id=7609 Yes, this was the whole point of my initial report. bug 7331 I put it in terms of teh rtfText is actually different so the so called optical size is obviously different. There are now 5 bug reports for more problems associated with rtfText problems http://quality.runrev.com/qacenter/show_bug.cgi?id=7331 http://quality.runrev.com/qacenter/show_bug.cgi?id=7334 http://quality.runrev.com/qacenter/show_bug.cgi?id=7985 http://quality.runrev.com/qacenter/show_bug.cgi?id=8428 http://quality.runrev.com/qacenter/show_bug.cgi?id=7609 To observed optical difference that people are noticing is due to the actual difference in the rtfText values. See http://quality.runrev.com/qacenter/show_bug.cgi?id=7331 for specific details of the rtfText translation problem and a stack for demonstrating the rtfText translation problems. Also note the optical differences by dragging the image from teh lower left corner over the field to see that the text is actually different in size. -- View this message in context: http://n4.nabble.com/Pasting-formatted-text-into-Rev-fields-not-possible-on-OS-X-tp585872p620810.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
Pasting formatted text into Rev fields not possible on OS X
Hi all, FYI: I just reported this very nasty bug: http://quality.runrev.com/qacenter/show_bug.cgi?id=8428 Hope this gets fixed until this evening* :-D *Or whenever Rev 4 is officially released. Best Klaus -- Klaus Major http://www.major-k.de kl...@major.on-rev.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: Pasting formatted text into Rev fields not possible on OS X
Klaus, I just checked it... and it works perfectly well both from TextEdit to Rev and from Rev to TextEdit, both with drag and drop and copy/paste (MacOS 10.6) Should I add it to your report ? Some computers have their idiosyncrasies... Jacques Le 11 nov. 2009 à 15:21, Klaus Major a écrit : Hi all, FYI: I just reported this very nasty bug: http://quality.runrev.com/qacenter/show_bug.cgi?id=8428 Hope this gets fixed until this evening* :-D *Or whenever Rev 4 is officially released. Best Klaus -- Klaus Major http://www.major-k.de kl...@major.on-rev.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 ** Prof. Jacques Hausser Department of Ecology and Evolution Biophore / Sorge University of Lausanne CH 1015 Lausanne please use my private address: 6 route de Burtigny CH-1269 Bassins tel/fax:++ 41 22 366 19 40 mobile: ++ 41 79 757 05 24 E-Mail: jacques.haus...@unil.ch *** ___ 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: Pasting formatted text into Rev fields not possible on OS X
Hi Jacques, Klaus, I just checked it... and it works perfectly well both from TextEdit to Rev and from Rev to TextEdit, both with drag and drop and copy/paste (MacOS 10.6) Should I add it to your report ? Well, that might be a good idea. Some computers have their idiosyncrasies... You bet! :-) Jacques Best Klaus -- Klaus Major http://www.major-k.de kl...@major.on-rev.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: Pasting formatted text into Rev fields not possible on OS X
Hi Klaus, An afterthought: I remember some time ago I had problems with the menu's items after re-loading RunRev after a crash. Some shortcuts didn't work anymore. And finally it was due to problems during the downloading, apparently some parts were not replaced by the new ones. It was solved when I get rid of RunRev completely before re-download it. Just an idea... All the best Jacques PS: as you already completed your report, I did'nt add redundant imformation ;-) Le 11 nov. 2009 à 15:52, Klaus Major a écrit : Hi Jacques, Klaus, I just checked it... and it works perfectly well both from TextEdit to Rev and from Rev to TextEdit, both with drag and drop and copy/paste (MacOS 10.6) Should I add it to your report ? Well, that might be a good idea. Some computers have their idiosyncrasies... You bet! :-) Jacques Best Klaus -- Klaus Major http://www.major-k.de kl...@major.on-rev.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 ** Prof. Jacques Hausser Department of Ecology and Evolution Biophore / Sorge University of Lausanne CH 1015 Lausanne please use my private address: 6 route de Burtigny CH-1269 Bassins tel/fax:++ 41 22 366 19 40 mobile: ++ 41 79 757 05 24 E-Mail: jacques.haus...@unil.ch *** ___ 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: Pasting formatted text into Rev fields not possible on OS X
Klaus Major wrote: Hi all, FYI: I just reported this very nasty bug: http://quality.runrev.com/qacenter/show_bug.cgi?id=8428 Hope this gets fixed until this evening* :-D *Or whenever Rev 4 is officially released. Hey; you outdid me this time . . . :) I hope they are having fun in San Francisco: I am really enjoying myself, chewing my beard here in Bulgaria. When I think of the money we all (well, not the odd, sensible German) stumped up to go to Edinburgh it just makes me happy when I think of it being spent on air tickets out to California and associated junketings rather than R and D . . . :) Remember, ever so softly, mutter to yourself: Elastic-sided GANTT charts and you will discover inner peace! --- NOW: I just ran up a styled text document in Ye Olde Appleworks on my trusty G4 (colours, italics, funny fonts, different sizes) and copy-pasted it across to a scrollable text-field in Studio dp-4 and: 1. Colours were preserved, 2. Italics were preserved, 3. Different fonts were preserved, Only the sizes got lost. Am I reading you right, or do you mean pasting between text fields in RunRev? ___ 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: Pasting formatted text into Rev fields not possible on OS X
Hi Jacques, Hi Klaus, An afterthought: I remember some time ago I had problems with the menu's items after re-loading RunRev after a crash. Some shortcuts didn't work anymore. And finally it was due to problems during the downloading, apparently some parts were not replaced by the new ones. It was solved when I get rid of RunRev completely before re-download it. Just an idea... forgot to mention that this is on OS X 10.6.x, but it works fine with Rev 3.5!? A little later... Just tested this at home and everything works fine, almost the same machine (MacMini 2009, 4 GB RAM) and setup as at work, Rev updated via Check for updates etc... WTF??? All the best Jacques PS: as you already completed your report, I did'nt add redundant imformation ;-) Yo :-) Best Klaus -- Klaus Major http://www.major-k.de kl...@major.on-rev.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: Pasting formatted text into Rev fields not possible on OS X
Le 11 nov. 2009 à 17:17, Richmond Mathewson a écrit : NOW: I just ran up a styled text document in Ye Olde Appleworks on my trusty G4 (colours, italics, funny fonts, different sizes) and copy-pasted it across to a scrollable text-field in Studio dp-4 and: 1. Colours were preserved, 2. Italics were preserved, 3. Different fonts were preserved, Only the sizes got lost. Am I reading you right, or do you mean pasting between text fields in RunRev? interesting test here. Did the same copy paste from appleworks (which is carbon) into rev studio 3.5 (I will upgrade in a few days ;-)) and it kept color, font, style but lost size (which was 48, while the pasted text appeared to between 10 or 12 pt)). When setting the size to 48 inside rev, the text was resized, but the baseline was unchanged, and was much too high. Now I did the same thing, but from pages '09 (and it is certainly cocoa). Everything was kept, except the baseline. I have to mention that the Pages pasting was done in the rev field just below the paste from AW. Now, let me see; I put empty into the field thru the msg box and paste (command -c) from Pages into the field. Everything is OK except the baseline which is much too high, i.e., 3/4 of the text disappears atop (?) of the field. Same thing with dp-4. Most disturbing is that, even when the text size was supposedly right in rev (i.e. 48pt), the optical size was different (it was smaller in rev). Is this some remnant of a windows v.s. mac point size war? Boy, this really is fishy... Best François ___ 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: Pasting formatted text into Rev fields not possible on OS X
On Nov 11, 2009, at 2:29 PM, François Chaplais wrote: Le 11 nov. 2009 à 17:17, Richmond Mathewson a écrit : NOW: I just ran up a styled text document in Ye Olde Appleworks on my trusty G4 (colours, italics, funny fonts, different sizes) and copy-pasted it across to a scrollable text-field in Studio dp-4 and: 1. Colours were preserved, 2. Italics were preserved, 3. Different fonts were preserved, Only the sizes got lost. Am I reading you right, or do you mean pasting between text fields in RunRev? interesting test here. Did the same copy paste from appleworks (which is carbon) into rev studio 3.5 (I will upgrade in a few days ;-)) and it kept color, font, style but lost size (which was 48, while the pasted text appeared to between 10 or 12 pt)). When setting the size to 48 inside rev, the text was resized, but the baseline was unchanged, and was much too high. Now I did the same thing, but from pages '09 (and it is certainly cocoa). Everything was kept, except the baseline. I have to mention that the Pages pasting was done in the rev field just below the paste from AW. Now, let me see; I put empty into the field thru the msg box and paste (command -c) from Pages into the field. Everything is OK except the baseline which is much too high, i.e., 3/4 of the text disappears atop (?) of the field. What happens if you turn off fixedLineHeight for the field you are pasting into? 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: Pasting formatted text into Rev fields not possible on OS X
interesting test here. Did the same copy paste from appleworks (which is carbon) into rev studio 3.5 (I will upgrade in a few days ;-)) and it kept color, font, style but lost size (which was 48, while the pasted text appeared to between 10 or 12 pt)). When setting the size to 48 inside rev, the text was resized, but the baseline was unchanged, and was much too high. Now I did the same thing, but from pages '09 (and it is certainly cocoa). Everything was kept, except the baseline. I have to mention that the Pages pasting was done in the rev field just below the paste from AW. Now, let me see; I put empty into the field thru the msg box and paste (command -c) from Pages into the field. Everything is OK except the baseline which is much too high, i.e., 3/4 of the text disappears atop (?) of the field. What happens if you turn off fixedLineHeight for the field you are pasting into? Devin thanks for pointing this to me. The difference is that now (after allowing variable text height) the baseline is always consistent with the optical text size. However, the size info is lost when pasting is done from AppleWorks; and the optical sizes are different (like a 7% error) between the sources and the rev field. This is on revstudio 3.5 running on snow leopard 10.6.2. Very best François ___ 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: Pasting formatted text into Rev fields not possible on OS X
Please see the earlier bug that I posted that explains what you are all seeing: http://quality.runrev.com/qacenter/show_bug.cgi?id=7331 I posted this originally since I was having problems creating rtf files to import into word due to inexact translation in the font size in runrev. Note Olivers's comment: --- Comment #1 From Oliver Kenyon 2008-10-28 06:55:41 [reply] --- Hi Gerard, Thanks for the report. I can confirm this behavior, Revolution seems to converting font sizes through a number of fudge factors, both when displaying them and when producing RTF. We will have to investigate this further so we can work out how to make font sizes more consistent. Regards Oliver You can download the stack from this bug report and add your own experiments with pasting and put the rtfText in a field and upload your stack to the bug centre for all to compare. Regards Gerard McCarthy -- View this message in context: http://n4.nabble.com/Pasting-formatted-text-into-Rev-fields-not-possible-on-OS-X-tp585872p620084.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
Formatted Text
I'm using Studio 2.8.1 I want to have a field into which information will be placed when someone clicks a button. I want bolding and italics and such to be in the field. However, when I format text in a field on another card so that this text will be transferred to the other field, the formatting disappears. Put cd fld formattedtext into card fld wantsformattedtext doesn't retain the formatting, bold, italic, etc. What's the smart way to do this? Thanks! Tom Tom Cole Lecturer, American English and Culture Program College of Extended Education Arizona State 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: Formatted Text
Hi Tom, You can try to use the rtfText or htmlText properties. The put command transfers plain text, but if you set the rtfText of a field to the rtfText of another field, the formatting is preserved. -- Best regards, Mark Schonewille Economy-x-Talk Consulting and Software Engineering http://economy-x-talk.com http://www.salery.biz Dutch forum: http://runrev.info/rrforum/ Benefit from our inexpensive hosting services. See http://economy-x-talk.com/server.html for more info. On 14 okt 2008, at 00:03, Thomas Cole wrote: I'm using Studio 2.8.1 I want to have a field into which information will be placed when someone clicks a button. I want bolding and italics and such to be in the field. However, when I format text in a field on another card so that this text will be transferred to the other field, the formatting disappears. Put cd fld formattedtext into card fld wantsformattedtext doesn't retain the formatting, bold, italic, etc. What's the smart way to do this? Thanks! Tom ___ 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: Formatted Text
This works: set the htmlText of field x to the htmlText of field y On Oct 13, 2008, at 3:03 PM, Thomas Cole wrote: I'm using Studio 2.8.1 I want to have a field into which information will be placed when someone clicks a button. I want bolding and italics and such to be in the field. However, when I format text in a field on another card so that this text will be transferred to the other field, the formatting disappears. Put cd fld formattedtext into card fld wantsformattedtext doesn't retain the formatting, bold, italic, etc. What's the smart way to do this? Thanks! Tom Tom Cole Lecturer, American English and Culture Program College of Extended Education Arizona State 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 ___ 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: Pasting Formatted Text (was Re: A Revolution beginner seeks advice...)
Karen, I tested it too on windoze and no problem including them pagebreaks... Although the lineheight wasn't respected (as expected), the rest came in ok. cheers Xavier On 17.02.2005 20:23:39 use-revolution-bounces wrote: Not sure what could be happening here, Karen. What platform are you on? And what specific types of formatting are you using and losing? When I copy a two-page Word document on OS X containing bold and italicized type and paste it into a scrolling field in Rev, all the formatting is retained. So I can't reproduce your problem. If you provide more specifics, perhaps we can nail this down for you! Dan On Feb 17, 2005, at 5:42 AM, Karen wrote: One thing that puzzles me is the pasting of text from other applications into a Revolution edit field. If there is a page break in a document (from Microsoft Word or from Pages) then the formatting is lost when I paste into my app's edit field. However, text without a page break is OK. Is there something I'm doing wrong? ___ use-revolution mailing list use-revolution@lists.runrev.com http://lists.runrev.com/mailman/listinfo/use-revolution - Visit us at http://www.clearstream.com IMPORTANT MESSAGEInternet communications are not secure and therefore Clearstream International does not accept legal responsibility for the contents of this message.The information contained in this e-mail is confidential and may be legally privileged. It is intended solely for the addressee. If you are not the intended recipient, any disclosure, copying, distribution or any action taken or omitted to be taken in reliance on it, is prohibited and may be unlawful. Any views expressed in this e-mail are those of the individual sender, except where the sender specifically states them to be the views of Clearstream International or of any of its affiliates or subsidiaries.END OF DISCLAIMER ___ use-revolution mailing list use-revolution@lists.runrev.com http://lists.runrev.com/mailman/listinfo/use-revolution
Pasting Formatted Text (was Re: A Revolution beginner seeks advice...)
Not sure what could be happening here, Karen. What platform are you on? And what specific types of formatting are you using and losing? When I copy a two-page Word document on OS X containing bold and italicized type and paste it into a scrolling field in Rev, all the formatting is retained. So I can't reproduce your problem. If you provide more specifics, perhaps we can nail this down for you! Dan On Feb 17, 2005, at 5:42 AM, Karen wrote: One thing that puzzles me is the pasting of text from other applications into a Revolution edit field. If there is a page break in a document (from Microsoft Word or from Pages) then the formatting is lost when I paste into my app's edit field. However, text without a page break is OK. Is there something I'm doing wrong? ___ use-revolution mailing list use-revolution@lists.runrev.com http://lists.runrev.com/mailman/listinfo/use-revolution
Re: Pasting Formatted Text
Thanks very much Dan, you are correct - I went back and tried again with a document created in Word and it was all OK. It just seems to be Apple's Pages program that is the problem. Word retains the format when I paste from Pages into Word, but then pasting from Word into Revolution loses the font type, size and colour - plus anything such as bold formatting. Similarly, pasting directly from Pages loses the formatting. However, if I paste using text generated in a number of other programs it all works (this is running under Mac OS X 10.3.8). I guess that Apple is doing something funny with Pages... Thanks for taking the time to reply, I think that I should buy your book now if/when I buy Revolution :-). Karen On 17/2/05 8:27 pm, Dan Shafer wrote: Message: 10 Date: Thu, 17 Feb 2005 11:23:39 -0800 From: Dan Shafer [EMAIL PROTECTED] Subject: Pasting Formatted Text (was Re: A Revolution beginner seeks advice...) To: How to use Revolution use-revolution@lists.runrev.com Message-ID: [EMAIL PROTECTED] Content-Type: text/plain; charset=US-ASCII; format=flowed Not sure what could be happening here, Karen. What platform are you on? And what specific types of formatting are you using and losing? When I copy a two-page Word document on OS X containing bold and italicized type and paste it into a scrolling field in Rev, all the formatting is retained. So I can't reproduce your problem. If you provide more specifics, perhaps we can nail this down for you! Dan ___ use-revolution mailing list use-revolution@lists.runrev.com http://lists.runrev.com/mailman/listinfo/use-revolution
Re: Pasting Formatted Text
Pages is using XML just like Keynote for all of the styles etc. The XML can be accessed and manipulated if needed. Tom On Feb 17, 2005, at 5:55 PM, Karen wrote: Similarly, pasting directly from Pages loses the formatting. I guess that Apple is doing something funny with Pages... Thomas J. McGrath III SCS 1000 Killarney Dr. Pittsburgh, PA 15234 412-885-8541 ___ use-revolution mailing list use-revolution@lists.runrev.com http://lists.runrev.com/mailman/listinfo/use-revolution
Re: Pasting Formatted Text
On Feb 17, 2005, at 2:55 PM, Karen wrote: I guess that Apple is doing something funny with Pages... Now that would be a first! NOT Thanks for taking the time to reply, I think that I should buy your book now if/when I buy Revolution :-). I hope you decide to use Rev whether or not you buy my book. I hate to see people using hard-to-use development tools with Rev around! Dan Karen On 17/2/05 8:27 pm, Dan Shafer wrote: Message: 10 Date: Thu, 17 Feb 2005 11:23:39 -0800 From: Dan Shafer [EMAIL PROTECTED] Subject: Pasting Formatted Text (was Re: A Revolution beginner seeks advice...) To: How to use Revolution use-revolution@lists.runrev.com Message-ID: [EMAIL PROTECTED] Content-Type: text/plain; charset=US-ASCII; format=flowed Not sure what could be happening here, Karen. What platform are you on? And what specific types of formatting are you using and losing? When I copy a two-page Word document on OS X containing bold and italicized type and paste it into a scrolling field in Rev, all the formatting is retained. So I can't reproduce your problem. If you provide more specifics, perhaps we can nail this down for you! Dan ___ use-revolution mailing list use-revolution@lists.runrev.com http://lists.runrev.com/mailman/listinfo/use-revolution ___ use-revolution mailing list use-revolution@lists.runrev.com http://lists.runrev.com/mailman/listinfo/use-revolution
Rtf - formatted text question
Hello, I hope somebody can help out a newbie. I am programming an EnglishCherokeeEnglish dictionary. Because I am very poor, I have to use the free edition of Revolution, so my code has to be tight. Here is my problem: I need to use character formatting in my definition field, but I can't figure out how to do that. My stack script: on preOpen set the rtfText of field tsalagiData to URL file:TsalagitoEnglishTest.rtf set itemDelimiter to tab repeat for each line thisLine in field TsalagiData put item 1 of thisLine linefeed after field wordlist end repeat end preOpen --this puts my tab delimited rtf file into an invisible field tsalagiData, then puts the first chunk (the english word) into the field wordlist. This works fine, except that importing the rtf file, for some reason, strips out all of my semicolons, which I need for formatting (see below). My script for the field wordlist: on mouseDown put the selectedText of field wordlist into field EnglishWord put word 2 of clickLine() into listLine select line listLine of field TsalagiData set itemDelimiter to tab put item 2 of the selectedText of field TsalagiData into field TsalagiDefine replace ; with return in field TsalagiDefine end mouseDown This also works fine, except when (Item 2) is put in the field TsalagiDefine the character formatting is gone. (Item 1, used above, doesn't need formatting.) Is there any way to move rtf text from one field to another and retain the formatting? Why are my semicolons stripped when I import my rtf file? Thanks. Duane Poncy visit Elohi Gadugi: poetry, software, Cherokee culture and Native American rights. http://dsaoregon.igc.org/tsalagi/ Another world is not only possible, she is on her way. On a quiet day, I can hear her breathing. - Arundhati Roy - ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution
RE: Rtf - formatted text question
Duane, Do you have to use RTF? The reason I ask is that the HTMLText manages styles a lot better than RTF, and even if you use RTF for your import, I'd use HTMLText to move styled data from one field to another: set the htmlText of fld 2 to the htmlText of fld 1 As to why semicolons are stripped in RTF import... I don't know. Any chance you could use some other delimiter? Ken Ray Sons of Thunder Software Email: [EMAIL PROTECTED] Web Site: http://www.sonsothunder.com/ -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Duane Poncy Sent: Wednesday, June 04, 2003 12:27 AM To: [EMAIL PROTECTED] Subject: Rtf - formatted text question Hello, I hope somebody can help out a newbie. I am programming an EnglishCherokeeEnglish dictionary. Because I am very poor, I have to use the free edition of Revolution, so my code has to be tight. Here is my problem: I need to use character formatting in my definition field, but I can't figure out how to do that. My stack script: on preOpen set the rtfText of field tsalagiData to URL file:TsalagitoEnglishTest.rtf set itemDelimiter to tab repeat for each line thisLine in field TsalagiData put item 1 of thisLine linefeed after field wordlist end repeat end preOpen --this puts my tab delimited rtf file into an invisible field tsalagiData, then puts the first chunk (the english word) into the field wordlist. This works fine, except that importing the rtf file, for some reason, strips out all of my semicolons, which I need for formatting (see below). My script for the field wordlist: on mouseDown put the selectedText of field wordlist into field EnglishWord put word 2 of clickLine() into listLine select line listLine of field TsalagiData set itemDelimiter to tab put item 2 of the selectedText of field TsalagiData into field TsalagiDefine replace ; with return in field TsalagiDefine end mouseDown This also works fine, except when (Item 2) is put in the field TsalagiDefine the character formatting is gone. (Item 1, used above, doesn't need formatting.) Is there any way to move rtf text from one field to another and retain the formatting? Why are my semicolons stripped when I import my rtf file? Thanks. Duane Poncy visit Elohi Gadugi: poetry, software, Cherokee culture and Native American rights. http://dsaoregon.igc.org/tsalagi/ Another world is not only possible, she is on her way. On a quiet day, I can hear her breathing. - Arundhati Roy - ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use- revolution ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution
Re: Rtr-formatted text question
Ken, I tried your suggestion, but it doesn't do what I need it to do. It moved all of the text from field1 to field2. Selecting a chunk of the field doesn't work either. What I need to do is move a chunk of a single line of selected text from the field with the formatting intact. Can this be done??? Thank you. Duane Poncy Original Message: From: Ken Ray [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: RE: Rtf - formatted text question Date: Wed, 4 Jun 2003 01:06:04 -0500 Organization: Sons of Thunder Software Reply-To: [EMAIL PROTECTED] Duane, Do you have to use RTF? The reason I ask is that the HTMLText manages styles a lot better than RTF, and even if you use RTF for your import, I'd use HTMLText to move styled data from one field to another: set the htmlText of fld 2 to the htmlText of fld 1 As to why semicolons are stripped in RTF import... I don't know. Any chance you could use some other delimiter? Ken Ray Sons of Thunder Software Email: [EMAIL PROTECTED] Web Site: http://www.sonsothunder.com/ -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Duane Poncy Sent: Wednesday, June 04, 2003 12:27 AM To: [EMAIL PROTECTED] Subject: Rtf - formatted text question Hello, I hope somebody can help out a newbie. I am programming an EnglishCherokeeEnglish dictionary. Because I am very poor, I have to use the free edition of Revolution, so my code has to be tight. Here is my problem: I need to use character formatting in my definition field, but I can't figure out how to do that. My stack script: on preOpen set the rtfText of field tsalagiData to URL file:TsalagitoEnglishTest.rtf set itemDelimiter to tab repeat for each line thisLine in field TsalagiData put item 1 of thisLine linefeed after field wordlist end repeat end preOpen --this puts my tab delimited rtf file into an invisible field tsalagiData, then puts the first chunk (the english word) into the field wordlist. This works fine, except that importing the rtf file, for some reason, strips out all of my semicolons, which I need for formatting (see below). My script for the field wordlist: on mouseDown put the selectedText of field wordlist into field EnglishWord put word 2 of clickLine() into listLine select line listLine of field TsalagiData set itemDelimiter to tab put item 2 of the selectedText of field TsalagiData into field TsalagiDefine replace ; with return in field TsalagiDefine end mouseDown This also works fine, except when (Item 2) is put in the field TsalagiDefine the character formatting is gone. (Item 1, used above, doesn't need formatting.) Is there any way to move rtf text from one field to another and retain the formatting? Why are my semicolons stripped when I import my rtf file? Thanks. Duane Poncy Duane Poncy visit Elohi Gadugi: poetry, software, Cherokee culture and Native American rights. http://dsaoregon.igc.org/tsalagi/ Another world is not only possible, she is on her way. On a quiet day, I can hear her breathing. - Arundhati Roy - ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution
RE: Rtr-formatted text question
Duane, Sorry, I didn't know you wanted a chunk. You can do the same thing, just include the chunk in your expression, like: set the htmlText of fld 2 to the htmlText of word 4 to 7 of fld 1 Let me know if this works or not... Ken Ray Sons of Thunder Software Email: [EMAIL PROTECTED] Web Site: http://www.sonsothunder.com/ -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Duane Poncy Sent: Wednesday, June 04, 2003 9:52 PM To: [EMAIL PROTECTED] Subject: Re: Rtr-formatted text question Ken, I tried your suggestion, but it doesn't do what I need it to do. It moved all of the text from field1 to field2. Selecting a chunk of the field doesn't work either. What I need to do is move a chunk of a single line of selected text from the field with the formatting intact. Can this be done??? Thank you. Duane Poncy Original Message: From: Ken Ray [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: RE: Rtf - formatted text question Date: Wed, 4 Jun 2003 01:06:04 -0500 Organization: Sons of Thunder Software Reply-To: [EMAIL PROTECTED] Duane, Do you have to use RTF? The reason I ask is that the HTMLText manages styles a lot better than RTF, and even if you use RTF for your import, I'd use HTMLText to move styled data from one field to another: set the htmlText of fld 2 to the htmlText of fld 1 As to why semicolons are stripped in RTF import... I don't know. Any chance you could use some other delimiter? Ken Ray Sons of Thunder Software Email: [EMAIL PROTECTED] Web Site: http://www.sonsothunder.com/ -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Duane Poncy Sent: Wednesday, June 04, 2003 12:27 AM To: [EMAIL PROTECTED] Subject: Rtf - formatted text question Hello, I hope somebody can help out a newbie. I am programming an EnglishCherokeeEnglish dictionary. Because I am very poor, I have to use the free edition of Revolution, so my code has to be tight. Here is my problem: I need to use character formatting in my definition field, but I can't figure out how to do that. My stack script: on preOpen set the rtfText of field tsalagiData to URL file:TsalagitoEnglishTest.rtf set itemDelimiter to tab repeat for each line thisLine in field TsalagiData put item 1 of thisLine linefeed after field wordlist end repeat end preOpen --this puts my tab delimited rtf file into an invisible field tsalagiData, then puts the first chunk (the english word) into the field wordlist. This works fine, except that importing the rtf file, for some reason, strips out all of my semicolons, which I need for formatting (see below). My script for the field wordlist: on mouseDown put the selectedText of field wordlist into field EnglishWord put word 2 of clickLine() into listLine select line listLine of field TsalagiData set itemDelimiter to tab put item 2 of the selectedText of field TsalagiData into field TsalagiDefine replace ; with return in field TsalagiDefine end mouseDown This also works fine, except when (Item 2) is put in the field TsalagiDefine the character formatting is gone. (Item 1, used above, doesn't need formatting.) Is there any way to move rtf text from one field to another and retain the formatting? Why are my semicolons stripped when I import my rtf file? Thanks. Duane Poncy Duane Poncy visit Elohi Gadugi: poetry, software, Cherokee culture and Native American rights. http://dsaoregon.igc.org/tsalagi/ Another world is not only possible, she is on her way. On a quiet day, I can hear her breathing. - Arundhati Roy - ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use- revolution ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution