Page 1 of 1

Setting up Rev help files

Posted: Sun Jul 19, 2009 3:42 pm
by bonbon
I'm writing some help screens in Rev cards, and I've set up some basic formatting buttons (bold, italic etc) to make the text look nice.

The problem is with hanging indents ("bullet points"). I can get these lined up nicely with a combination of firstIndent and leftMargin. The problem is that firstIndent and leftMargin apply to the field as a whole, rather than the selection.

This means that I can't set up normal word-wrapping text, with hanging-indent bullet points in the middle. Either the bullet points are fine, but word-wrap text indents from the second line, or everything is left aligned (including the bullet points).

Maybe I'm going about this the wrong way ... any suggestions ?

Posted: Mon Jul 20, 2009 11:09 am
by !Jerry!
Hi bonbon,

for a really nice formated text I'd use directly html format - it is the simplest way in my opinion.

Jerry

Posted: Mon Jul 20, 2009 10:23 pm
by bonbon
Hi Jerry,

Thanks for your reply. Sorry if I'm being dim, but just to be clear, are you saying that you build your help screens as html files, and display them using whatever the default browser is ? (It sounds much easier.)

I only ask because I have been struggling to get nicely formatted html into Rev fields.

Posted: Tue Jul 21, 2009 12:26 am
by !Jerry!
bonbon wrote:...are you saying that you build your help screens as html files, and display them using whatever the default browser is ? (It sounds much easier.)...
No, the browser is YOUR idea :) (and I think it isn't bad idea)
I spoke about rev fields - a field also can work with more complex text record, rtf or html which is maybe preferable. You can create a textfile in some editor and then load and convert its source code into the text form in relevant field:

Code: Select all

on mouseUp
   set the htmlText of fld "textFile" to fld"sourceFile"
end mouseUp
You can look at the htmlText property (or rtfText property) in Rev Dictionary.

Note: the formatting possibilities are limited more than I thought initially but they are perhaps sufficient. I can send you some sample...

Jerry

Posted: Wed Jul 22, 2009 4:38 pm
by bonbon
Thanks for that Jerry - it's given me a few ideas. I'm still having problems with the massive amount of html generated by MS Word (much of which Rev doesn't understand), so I'm having a go at writing my own help screen editor in Rev.

I need to do a bit more research into getting htmlText to behave itself, but I'm heading in the right direction (I hope).