Re: Builing a complex text-editor - possible?
Thanks... Actually, a hidden table field could be the right thing. Then I could store information about the lines on the same lines as the original. Because I also need to store detailed information about the users text. I'm building something similar to a scriptwriter - like Final Draft. The lines will have character names, dialoge, etc. If one line has a character name, like: ROGER Dialog.. ..if the user enter the "Roger"-line - the table field will contain info like an array: tab(100), type(Character), instance(the number of rogers), and so on... My next questions (thanks for the help) is: 1. Could I make a chunk of Roger and make the cursor jump to that chunk? (It would then seem like an individual margin) 2. Will this make the typing slow? 3. Is this a good idea at all? J.S. > At 12:54 AM +0100 3/7/2004, Jan Sælid wrote: > >Is it possible to have different margins in different parts of the > >same field - like Word? > >If this is not the case. Does anyone have any suggestion on how to do this? > > It's not (yet) possible - currently the margins and firstIndent > properties don't apply to lines in fields, only to the entire field. > I'm not sure it's practical to build a full word processor in Rev > right now, with variable margins for different paragraphs. > > For *displaying* text with variable margins, I would take the > approach of creating a separate transparent field (with its own > margins and firstIndent setting) for each run of text, then grouping > the fields and giving the group a scrollbar. This makes the group > look like a single scrolling field, but each separate field in the > group can have its own margins, background color, and so on. > > However, for editing this would be problematic. You could create the > fields on the fly to reflect the user's margin settings, but then > you'd have to handle such things as selecting multiple paragraphs > across field boundaries by script. > -- > jeanne a. e. devoto ~ [EMAIL PROTECTED] > http://www.jaedworks.com > ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution
Re: Builing a complex text-editor - possible?
On Saturday, March 6, 2004, at 04:54 PM, Jan Sælid wrote: Is it possible to have different margins in different parts of the same field - like Word? If this is not the case. Does anyone have any suggestion on how to do this? I would consider multiple fields in a group. Sounds like lots of work to build up the core capability, though. Dar Scott ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution
Re: Builing a complex text-editor - possible?
At 12:54 AM +0100 3/7/2004, Jan Sælid wrote: Is it possible to have different margins in different parts of the same field - like Word? If this is not the case. Does anyone have any suggestion on how to do this? It's not (yet) possible - currently the margins and firstIndent properties don't apply to lines in fields, only to the entire field. I'm not sure it's practical to build a full word processor in Rev right now, with variable margins for different paragraphs. For *displaying* text with variable margins, I would take the approach of creating a separate transparent field (with its own margins and firstIndent setting) for each run of text, then grouping the fields and giving the group a scrollbar. This makes the group look like a single scrolling field, but each separate field in the group can have its own margins, background color, and so on. However, for editing this would be problematic. You could create the fields on the fly to reflect the user's margin settings, but then you'd have to handle such things as selecting multiple paragraphs across field boundaries by script. -- jeanne a. e. devoto ~ [EMAIL PROTECTED] http://www.jaedworks.com ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution
Builing a complex text-editor - possible?
Is it possible to have different margins in different parts of the same field - like Word? If this is not the case. Does anyone have any suggestion on how to do this? J.S ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution