[comp.windows.x] Text Widget

PAYNE@latlog.UUCP (06/21/88)

Can someone tell me what the translation table entry Meta<Key>\\< is
supposed to equate to, all combinations of the meta key and \ and < and
shift etc seem to fail!

Thanks, Julian Payne ...

dean@qucis.queensu.CA (Thomas Dean) (07/04/89)

	We are working with the Athena Text widget in V11R3
and would like information on the fields for the source and sink.
The manual for the Athena widgets does not say much about them.
Specifically we would like information on each of the functions in the
source - Purpose, parameters and Errors that are returned. For example,
what is the difference between the Disk and String sources besides
the fact that the Disk source uses a temporary file for storage? When
do we use which?

	We need to change the edit mode and commands depending on the
position of the cursor in the text. The application has a representation
of what should be displayed and what is editable. This seems to imply that
we must provide our own source that will change the modes as the cursor
moves or selections are made. Does anyone have any ideas? We have looked
at the source code for xedit, xman, and the Disk and String sources. However,
this has not left us with a clear idea of how to implement our interface.

Thanks in advance for any help.

Grethe Holm (holm@qucis.queensu.ca)
Tom Dean    (dean@qucis.queensu.ca)

Department of Computing and Information Science
Queen's University at Kingston

kit@EXPO.LCS.MIT.EDU (Chris D. Peterson) (07/06/89)

> 	We are working with the Athena Text widget in V11R3
> and would like information on the fields for the source and sink.

If you figure it out let me know :-)

Near as I can tell this interface is not currently documented anywhere, and
the people who understand it have long since disappeared.  

[ If there is anyone out there who has a discription of the interface 
  please let me know. ]

I am currently working on making the Ascii Text Widgets easier to use, and
in the process I hope to come up with a complete specification of the interface
between the text widget and its sources and sinks.  I hope to have this 
specification ready for inclusion in R4.  If you need to have this information
before that time (this yearish) then you will have to use the source.

						Chris D. Peterson     
						MIT X Consortium 

Net:	 kit@expo.lcs.mit.edu
Phone:   (617) 253 - 9608	
Address: MIT - Room NE43-213

jstravis@athena.mit.edu (John S. Travis) (09/16/89)

Hello again. I'm using Doug Young's one_line text widget code and
am having some trouble. I set up the widget this way:

 strcpy(file_hack_ptr->filename,"test");
 XtSetArg(wargs[0],XtNeditType,XwtextEdit);
 XtSetArg(wargs[1],XtNstring,file_hack_ptr->filename);
 textwidget = create_one_line_text_widget("edit",rowcol,wargs,2);

I'm using this so that someone can enter in a filename for save/read
operations. Now the widget pops up with "test" in it. I can modify
it, but when I access file_hack_ptr->filename in say a fopen 
statement it is still "test". Is file_hack_ptr->filename merely
copied into the widget. I though i was actually modifying the string 
itself? How do I do that, b/c that's what i want.

Thanks
John Travis
jstravis@athena.mit.edu

sinclair@cs.glasgow.ac.uk (Duncan Sinclair) (11/27/90)

I have been asked to find out if there exists any easy-to-use
front-ends for the asciiText widget.
This would provide convenient routines to, e.g., append text without
having to worry about the parameters for XawTextReplace(), etc.

Replies by mail only, and I'll summarise by demand.


-- 
Duncan Sinclair                     |  Try one    sinclair@cs.glasgow.ac.uk
Computing Science Research Student  |  of these:  sinclair@uk.ac.glasgow.cs
University of Glasgow               |..!mcsun!ukc!uk.ac.glasgow.cs!sinclair
Quote: "It takes a smart man to know when he's stupid." -- Barney Rubble

grant@gouche.UUCP (Grant Munsey) (02/22/91)

I would like to get a hold of a text widget that presents, more
or less, the actions of the Mac text library. I can't see how just
changing the translations for the Athena text widget can can get
the right effects. Anybody know of some good PD candidates?
Thanks,
-- 
Grant Munsey, Mainticore, Inc. (408) 733-3838
grant@gouche.portal.com  or  {uunet!opusys,decwrl!apple!portal}!gouche!grant