RichText Implementation

Jan Sælid janselid at broadpark.no
Fri Aug 11 04:01:37 EDT 2006


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:
>>I’ve come to the point where I need to implement the Scriptwriter into my
application. I’ve build all the >>functionality around this function and
delayed the scriptwriter until a proper richtext field was implemented
>>into revolution.  It doesn’t 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?
>>I’m 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 at lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution




More information about the use-livecode mailing list