[Search for users] [Overall Top Noters] [List of all Conferences] [Download this site]

Conference bulova::decw_jan-89_to_nov-90

Title:DECWINDOWS 26-JAN-89 to 29-NOV-90
Notice:See 1639.0 for VMS V5.3 kit; 2043.0 for 5.4 IFT kit
Moderator:STAR::VATNE
Created:Mon Oct 30 1989
Last Modified:Mon Dec 31 1990
Last Successful Update:Fri Jun 06 1997
Number of topics:3726
Total number of notes:19516

78.0. "Stext scroll doesnt track end of text" by VOGON::MIOTTO (A Room with a VUE) Tue Jan 31 1989 11:07

I'm having a spot of bother with text widgets.

I've got two text widgets, both with a vertical scroll bar (scroll_vertical
set to true) and with auto_show_insertion_point true. Only one is editable,
and I'm copying the string from this one (with STextGetString) to the
non-editable one (with STextSetString) when the value_changed callback is
activated (you've guessed it, I'm doing a real-time copy of what's being typed
in one text widget into another display).  

Now, the trouble with this is that, when I've done the STextSetString call, the
text widget shows the TOP of the text, so making it necessary to scroll to the
bottom to see what's been typed. Even if I change the insertion position
argument, this does not seem to work. How can I track the END of the text
rather than the beginning?

So far the only method I've found has been to change top_position after
changing the string, but this means that I get the text drawn twice, which
causes a hell of a flicker on the screen.

Incidentally, the flicker is something that seems to occur whenever I SetValues
on the target text widget (not if I use STextSetString, though). Any idea
how I can stop it?

Olivo

T.RTitleUserPersonal
Name
DateLines
78.1HARBOR::DECWINDOWS_PROGRAMMINGGVRIEL::SCHOELLERWho's on first?Tue Jan 31 1989 16:525
I can't give you any help on your questions but you might get better
response in HARBOR::DECWINDOWS_PROGRAMMING.  Just KP7...

Dick