AllText 3.0
Tech Support Questions

Q. I'm trying to fill an Alltext /Pro with text from an RTF file, so that there are various fonts, sizes, colors, symbols, etc. all mixed together. Then I want to scroll down so that a given paragraph begins at the top of the box. Since the text is of several font sizes, I don't see a straightforward way to calculate the scroll position in twips. Is there another way I can scroll down to a particular paragraph?

A. You use the ScrollVert to scroll and the ATX_CurToXY function to identify how far to scroll.
	paragraph& = Desired_Paragraph_Number
	character% = 0 ' first character in paragraph
	x% = ATX_CurToXY (ALLText1, paragraph&, character%, X&, Y&)
	ALLText1.ScrollVert = y&


[TECH SUPPORT TOC]

[HOME] [TABLE OF CONTENTS] [SEARCH]