[comp.windows.x] Text widget quick question

schriste@uceng.UC.EDU (Steven V. Christensen) (10/25/90)

Hi,
	I have an application which wishes to communicate periodic
status/output messages (one liners) to the user. Right now there
is an asciiTextWidget whose text I can change, add, etc.

	The functionality I desire and cannot seem to get is this:

	1) If there are fewer lines of output than there is space on
	   the text widget display, the text should start at the top,
	   and no vertical scrollbar should be present.

	2) When the program wishes to display a message, one line,
	   and it would result in more lines that display space, the
	   display should show the last line of output on the bottom of
	   the display area, and the rest can be seen via scrollbarring
	   up. Also, if the user had been looking at past text, the
	   scrollbar should be jumped to the end.

	3) I prefer the cursor to be invisible, but that isn't really
	   a major problem.

I guess I'm looking for the functionality of the scrollbars on xterm. If
something new comes out, and the user is looking back at previous stuff,
it jumps to the end.

Like I said, I have adding text to the list no problem. Can anyone help
me, or send me some programming examples?


		Thanks,
		  Steven
-- 
Steven V. Christensen
U.C. College of Eng.
schriste@uceng.uc.edu
For the adventurous: svc@elf0.uucp

len@mel.dit.csiro.au (Len Makin) (10/31/90)

In article <6500@uceng.UC.EDU>, schriste@uceng.UC.EDU (Steven V.
Christensen) writes:

|>	I have an application which wishes to communicate periodic
|>status/output messages (one liners) to the user. Right now there
|>is an asciiTextWidget whose text I can change, add, etc.
|>
|>	The functionality I desire and cannot seem to get is this:
|>
|>	1) If there are fewer lines of output than there is space on
|>	   the text widget display, the text should start at the top,
|>	   and no vertical scrollbar should be present.

*textFile*type:                 file
*textFile*string:               /var/len/project/it/xo.hlp
*textFile*scrollVertical:       whenNeeded         <<<<YOU NEED THIS

|>	3) I prefer the cursor to be invisible, but that isn't really
|>	   a major problem.

*textFile*displayCaret:         False               <<<<AND THIS
|>Steven V. Christensen
|>U.C. College of Eng.
|>schriste@uceng.uc.edu
|>For the adventurous: svc@elf0.uucp
                                     
Len Makin
Monash University College Gippsland
len@giaea.oz.au
temporarily at
len@mel.dit.csiro.au