Redraw issue
- From: Ron Benditt <rbenditt@xxxxxxxxxxxxxxxxxx>
- To: ftcdev@xxxxxxxxxxxxx
- Date: Tue, 25 Mar 2008 22:22:39 -0400
I have RTF text saved in a string variable s. I then want to display
it in the FTC called Display, so I do this:
Display.getDoc.deleteAll
Display.setRTFText(s)
Display.resized
I find that I have to call the resized method afterwards in order to
make the RTF conform to the new size of the Display, which could be
changed at any time by the user. If I don't do this, centered text,
for example, does not look centered. This works very well on the
Mac. On Windows builds, I see the display first show the RTF in one
position, then I see the display "jump" as the text moves to a
slightly different location due to the resized method.
Is there any way to suppress the redraw during these steps, or am I
completely wet with how to best handle setting RTF in the FTC?
Oh, and in case you were wondering why I call the deleteAll method...
I've found that if I don't use it, I get duplicate RTF in the FTC for
some reason. Very weird, but solved by the deleteAll.
Thanks,
Ron Benditt
Alien Apparatus Company, Inc.
http://www.alienapparatus.com
FTC Website: www.truenorthsoftware.com/Realbasic/FormattedText.html
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.
- Follow-Ups:
- Re: Redraw issue
- From: Brendan Murphy
Other related posts:
- » Redraw issue
- » Re: Redraw issue
- Re: Redraw issue
- From: Brendan Murphy