[comp.windows.open-look] Guide & text panes

jack@richsun.cpg.trs.reuter.com (Jack Gidding) (05/07/91)

Hello net-world,


I am using Sun Microsystems Guide to become familiar with Open Look programming
as well as to design an implement a simple front end for a demo program.

I have two questions, both involving text panes.

1) When I quit the application(which uses a text pane), a notice box comes up
	and asks to save or discard the edits. I would like to stop this from 
	happening. The text pane is read-only and there is no real reason to
	save the output.  Is there a way to stop this notifier box?

2) It appears that when I write something to the text pane using textsw_insert()
	there is a "lag" time in between the time that I call for it to be   
	printed and the time that it is printed. It seems as if it will print
	at the time that a mouse event is encountered(e.g. mouse moves over text	pane).  If there is no mouse event, it saves the data for a while and
	then writes it all at once. It is acting like a buffer.  The problem is
	that the items being written out are real-time data and buffering is
	very bad. Is there a way that I can stop this "feature"?


Thanks,

Jack Gidding
jack@richsun.cpg.trs.reuter.com

warsaw@nlm.nih.gov (Barry A. Warsaw) (05/07/91)

>>>>> "Jack" == Jack Gidding <jack@richsun.cpg.trs.reuter.com> writes:

	Jack> 1) When I quit the application(which uses a text pane), a
	Jack> notice box comes up 	and asks to save or discard the edits.
	Jack> I would like to stop this from 	happening. The text pane
	Jack> is read-only and there is no real reason to 	save the
	Jack> output.  Is there a way to stop this notifier box?

I always to a textsw_reset() on the pane before destroying it. Works
for me -- I no longer get those messages on my read-only panes.

-Barry

NAME:  Barry A. Warsaw         INET: warsaw@nlm.nih.gov
TELE:  (301) 496-1936          UUCP: uunet!nlm.nih.gov!warsaw

lwake@runcible.West.Sun.COM (Larry Wake) (05/17/91)

In article <WARSAW.91May6190039@warsaw.nlm.nih.gov> warsaw@nlm.nih.gov writes:
<>>>>> "Jack" == Jack Gidding <jack@richsun.cpg.trs.reuter.com> writes:
<
<	Jack> 1) When I quit the application(which uses a text pane), a
<	Jack> notice box comes up 	and asks to save or discard the edits.
<	Jack> I would like to stop this from 	happening. The text pane
<	Jack> is read-only and there is no real reason to 	save the
<	Jack> output.  Is there a way to stop this notifier box?
<
<I always to a textsw_reset() on the pane before destroying it. Works
<for me -- I no longer get those messages on my read-only panes.

You can also set the attribute TEXTSW_IGNORE_LIMIT to TEXTSW_INFINITY
when you create the text subwindow (or any other time, really).
--
Larry Wake, Sun Microsystems, Salusa Secundus field office
(larry.wake@west.sun.com)
"He's bad... but he'll die.  So I like it!"