My code reads text and textstyle data from an XML file. It does a
decodequotedprintable and then uses SetTextAndStyle to populate the
edit field. It's very straight-forward. My problem was the edit
field's scroll bar wouldn't refresh. I did try to redraw the rect
and the whole window but nothing worked until I added the enabled
false and true at the end of the code that populates the edit field
(not the TextChanged event like I previously said).
On Oct 31, 2005, at 3:46 PM, Raphael Davison wrote:
The workaround for this was the following code in the TextChanged
event:
me.Enabled = false
me.Enabled = true
Begin forwarded message:
From: Raphael Davison <raphaeld at optonline dot net>
Date: October 31, 2005 11:48:48 AM EST
To: realbasic-nug at lists dot realsoftware dot com
Subject: EditField Scroll Bar Acting Funny
I have a method that sets text and style data into a multi-line
styled editfield. The scroll bar doesn't update (it stays the way
it was the last time I set the text) until I actually click on the
up or down arrows or if the window is deactivated and
reactivated. Does anyone have a workaround? (RB2004 v4)
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>
Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>
|