On Aug 11, 2012, at 7:25 PM, Brendan Murphy wrote: > Roger Clary wrote: >> Using doc, which is an instance of the FTDocument class, I can do >> doc.setRTF(s) but that clears the display and shows only what was >> in the last "s". > > The set methods will clear the document. Is that what you want? > Otherwise use the insert methods. No. I want my inserts to be cumulative. > >> If I try doc.insertRTF(s) the compiler complains, "no such method" >> I have been successful with mainTA.insertRTF(s) where mainTA is an >> instance of the FormattedTExt class, but all of the insertion >> point methods seem to belong to the FTDocument class. > > At the FTDocument level it is called insertRTFString. Ah, that helps. And it returns a boolean. That's why I wasn't finding it with autocomplete > >> Calling mainTA.insertRTF(s) and THEN doc.moveInsertionPoint seems >> to have no effect. > > To be specific, you should call doc.moveInsertionPointToEnd before > you insert (assuming you are appending the text to the end). I am finding that using the b = doc.insertRTFString that the text gets appended to the end without this call. > >> My biggest challenge will be to display Matching questions which >> need questions in column A and answers in column B approx. halfway >> across the page. I have made no progress toward getting that to >> work. > > Currently that is not possible in the FTC. You need to talk to Bob > about that one. bummer. Well I'll have to work around that limitation until Bob adds it. hint, hint. wink > > Note, in the demo in the TestWindow there is a menu handler called > "HelpTest" which you can use to test out things before you build a > complex infrastructure in your app. > > Will look into that. One last question (for now!). What does the argument "calculate offset" as boolean do? I see it in several methods. Thanks once again, Brendan, for your help. Roger Clary Class One Software lists@xxxxxxxxxxxxxxxx FTC Website: http://www.bkeeney.com/products/formatted-text-control Set List Options (digest and vacation modes): www.freelists.org/list/ftcdev List Archive: www.freelists.org/archives/ftcdev Unsubscribe: Send email to ftcdev-request@xxxxxxxxxxxxx with "unsubscribe" in the subject field.