realbasic-nug
[Top] [All Lists]

Re: EditField Scroll Bar Acting Funny (solved??)

To: realbasic-nug at lists dot realsoftware dot com
Subject: Re: EditField Scroll Bar Acting Funny (solved??)
From: Raphael Davison <raphaeld at optonline dot net>
Date: Mon, 31 Oct 2005 20:10:06 -0500
Delivered-to: realbasic-nug at lists dot realsoftware dot com
References: <5B5EB158-9DFD-4E37-9B59-E85ACF6F7754 at optonline dot net> <EF993303-9660-4A8D-8569-485E48FCA6BE at optonline dot net>
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>

<Prev in Thread] Current Thread [Next in Thread>