Re: RichText Implementation
Another way to solve this problem easily and elegantly, with far more capabilities than you ask for, with off-the-shelf components: 1. Forget about Rich Text Format. 2. Get a copy of altBrowser from Altuit. 3. Learn CSS. 8^) Quite seriously, Jim Lyons On Aug 13, 2006, at 2:30 PM, Jan Sælid wrote: Hi André and Dan I will definitively keep you updated! If I can do anything about this, it's for everyone. I will post my stack online under Jan Selid, if I feel I'm remotely close to anything. There are 3 big tasks that needs to be done. 1. Individual margins The only solution I have right now is tabstops. 2. A custom wordwrapper that calculates the wordwrap based on the above tabstops. 3. an rtf-exporter A handler that converts the above tabstops to the proper li-number of the rtf-code. Since rev already has RTFText property, this is, I believe, not too difficult. - and, as you said, calculations when using different fonts. It's a huge task, and your interest surely helps ;-) André wrote: I am following attentively your attempt to simulate a richtext field. I hope you will keep informing us about the problems you are encountering and your solutions. ___ 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: RichText Implementation
I am following attentively your attempt to simulate a richtext field. I have a stack that presents a lot of texts (one text in one main field on each card). Often these texts include lists that normally should be indented (often with 2 levels). So I got the same problem as yours. After unsuccessful trials I gave up and currently all the lines of my texts are left aligned. For the (to be normally indented lists) I used special characters such as * and - (but left aligned). So that the presentation is not up to standard. So I am very much interested by any solution you could find. The main issue I encountered was the following : When a line had to wrap, I had to type a return and then a tab in order to get an indented paragraph. Then, when for one reason or another, the width of the field was reduced, even a little bit, or if I changed the style of the characters (font or size), I got a terrible mess ! It happened for example, when I was transferring the content of a field in another field that I use as a printing field. Hav'nt you got this kind of problem ? In your example, I suppose that you have a return after You know you. So that if you reduce the width of your field, the word you will wrap, isolated and left aligned (without tab). Hope my English-like English is understandable enough :-)) Thanks a lot for your attempt to turn around this crucial shortcoming in Rev. I hope you will keep informing us about the problems you are encountering and your solutions. Best regards from Grenoble André Le 5 août 06 à 14:04, Jan Sælid a écrit : The scriptwriter needs to know if the user is editing dialogue, a character name, an action etc. the format of a script looks something like this: --- TRUMP You didn't call, Eliza. You know you won't get anything if you... He goes to the desk and snatches the... --- This format needs three different margins. One for the character name, one for the dialogue and one for the action part. One approach I'm thinking of is to use tabstops and have a rawkeyup handler in the field that checks what type of element the writer is editing and puts the cursor at the right tab if the writer e.g. pushes the downkey. The challenge with this method is that I have to store every element in the script in a custom property of the field with the number of tabs for each element. Maybe with a reference to the linenumber. e.g. The line1 of fld Script. Am I on the right track? Hope this is understandable. Any ideas are appreciated. In the long run it could be handy to make a library of functions that other revolution users could use. I Wrote: I’m really in need of individual paragraphs. ___ 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: RichText Implementation
Hi André and Dan I will definitively keep you updated! If I can do anything about this, it's for everyone. I will post my stack online under Jan Selid, if I feel I'm remotely close to anything. There are 3 big tasks that needs to be done. 1. Individual margins The only solution I have right now is tabstops. 2. A custom wordwrapper that calculates the wordwrap based on the above tabstops. 3. an rtf-exporter A handler that converts the above tabstops to the proper li-number of the rtf-code. Since rev already has RTFText property, this is, I believe, not too difficult. - and, as you said, calculations when using different fonts. It's a huge task, and your interest surely helps ;-) André wrote: I am following attentively your attempt to simulate a richtext field. I hope you will keep informing us about the problems you are encountering and your solutions. ___ 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: RichText Implementation
Hi again I received a private mail from a user of this list who told me that someone at RevCon said that revolution 2.8 will offer individual paragraph formatting. Anyone heard anything about this? If it takes too long time I have decided to do it the hard way. The best solution I can think of is using tabs in replacement for margins. I cannot wait another year Jan Jan wrote: Ive come to the point where I need to implement the Scriptwriter into my application. Ive build all the functionality around this function and delayed the scriptwriter until a proper richtext field was implemented into revolution. It doesnt seem that revolution will add this feature to revolution in the nearest future. So my question is: Does anyone know of anyone that have hardcoded this function into revolution? Or is my only option to hardcode this myself? Im really in need of individual paragraphs. The scriptwriter needs to know if the user is editing dialogue, a character name, an action etc. the format of a script looks something like this: --- TRUMP You didn't call, Eliza. You know you won't get anything if you... He goes to the desk and snatches the... --- This format needs three different margins. One for the character name, one for the dialogue and one for the action part. One approach I'm thinking of is to use tabstops and have a rawkeyup handler in the field that checks what type of element the writer is editing and puts the cursor at the right tab if the writer e.g. pushes the downkey. The challenge with this method is that I have to store every element in the script in a custom property of the field with the number of tabs for each element. Maybe with a reference to the linenumber. e.g. The line1 of fld Script. Am I on the right track? Hope this is understandable. Any ideas are appreciated. In the long run it could be handy to make a library of functions that other revolution users could use. 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: RichText Implementation
Jan... The only official word on future release features at RevCon came from CEO Kevin Miller under non-disclosure. Obviously, we're not at liberty to discuss any of that information here. I can say that there was a lot of scuttlebutt at the show about this very topic and that I will be quite surprised not to see it in some future release. Whether that will come within a year, I can't say and I'm not sure anyone, including Kevin, could say with certainty. But I feel your pain. Lack of rich text formatting has forced me onto another dev platform for one big project and is threatening to do so for another. On 8/11/06, Jan Sælid [EMAIL PROTECTED] wrote: Hi again I received a private mail from a user of this list who told me that someone at RevCon said that revolution 2.8 will offer individual paragraph formatting. Anyone heard anything about this? If it takes too long time I have decided to do it the hard way. The best solution I can think of is using tabs in replacement for margins. I cannot wait another year Jan ~~ Dan Shafer, Information Product Consultant and Author http://www.shafermedia.com Get my book, Revolution: Software at the Speed of Thought From http://www.shafermediastore.com/tech_main.html ___ 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: RichText Implementation
Dan- I'm really sorry to let this out. I didn't know that is was under non-disclosure. Well, actually, if I had used my mind, buy I guess the news made me no think and only hope for a solution. At least I know I'm not the only one with this problem. That always help a little. I have wished for this feature since 2003, even started a campaign to make people vote for it on bugzilla. But I decided to start building my project anyway, and it's a very big project. I just got an answer from revolution that I should not wait for this feature but do what I need to do... The only rad platform that have this feature is realbasic. But I've tried it several times, and I really don't like it. I grown into rev. I guess I have to take a leap of faith. Because I've done so much work already. Thanks for the answer. Dan wrote: But I feel your pain. Lack of rich text formatting has forced me onto another dev platform for one big project and is threatening to do so for another. ___ 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: RichText Implementation
No apologies needed, Jan. No harm done. I had not for a long while been able to understand -- though I admit to not having spent a huge amount of time investigating either -- why RR or someone doesn't incorporate an external that would give us a fully formattable text object. There are a lot of such engines lying around. I can edit rich text in an HTML page, for Heaven's sake! Why can't I get that in a full-blown standalone app development tool? Turns out, as far as I can understand it, that the text engine in RunRev is so deeply interconnected at a fundamental level that any attempt to replace it or modify it is a HUGE undertaking. So I concluded that if rich text formatting of content is important to an app I'm being asked to create, I have two alternatives: (1)use RunRev but do the text formatting using HTML and output the reports/results in HTML for viewing in a browser (including, of course, altBrowser which can be embedded fairly neatly into the app directly); or (2) pick a different tool that has the built-in text editing incorporated. Python, which is my other favorite language, has numerous libraries in support of formatted, rich and other text options, e.g. Another reason why having only one tool in your toolbox isn't a great idea for a serious developer. Python lacks chunking but Transcript lacks rich text control. On 8/11/06, Jan Sælid [EMAIL PROTECTED] wrote: Dan- I'm really sorry to let this out. I didn't know that is was under non-disclosure. Well, actually, if I had used my mind, buy I guess the news made me no think and only hope for a solution. At least I know I'm not the only one with this problem. That always help a little. I have wished for this feature since 2003, even started a campaign to make people vote for it on bugzilla. But I decided to start building my project anyway, and it's a very big project. I just got an answer from revolution that I should not wait for this feature but do what I need to do... The only rad platform that have this feature is realbasic. But I've tried it several times, and I really don't like it. I grown into rev. I guess I have to take a leap of faith. Because I've done so much work already. Thanks for the answer. Dan wrote: But I feel your pain. Lack of rich text formatting has forced me onto another dev platform for one big project and is threatening to do so for another. ___ 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 -- ~~ Dan Shafer, Information Product Consultant and Author http://www.shafermedia.com Get my book, Revolution: Software at the Speed of Thought From http://www.shafermediastore.com/tech_main.html ___ 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: RichText Implementation
The scriptwriter needs to know if the user is editing dialogue, a character name, an action etc. the format of a script looks something like this: --- TRUMP You didn't call, Eliza. You know you won't get anything if you... He goes to the desk and snatches the... --- This format needs three different margins. One for the character name, one for the dialogue and one for the action part. One approach I'm thinking of is to use tabstops and have a rawkeyup handler in the field that checks what type of element the writer is editing and puts the cursor at the right tab if the writer e.g. pushes the downkey. The challenge with this method is that I have to store every element in the script in a custom property of the field with the number of tabs for each element. Maybe with a reference to the linenumber. e.g. The line1 of fld Script. Am I on the right track? Hope this is understandable. Any ideas are appreciated. In the long run it could be handy to make a library of functions that other revolution users could use. I Wrote: Im really in need of individual paragraphs. ___ 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