Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!uunet!husc6!cmcl2!nrl-cmf!ames!ucbcad!ucbvax!latlog.UUCP!PAYNE From: PAYNE@latlog.UUCP Newsgroups: comp.windows.x Subject: X toolkit Message-ID: <970.8711092045@latlog.co.uk> Date: Mon, 9-Nov-87 15:45:39 EST Article-I.D.: latlog.970.8711092045 Posted: Mon Nov 9 15:45:39 1987 Date-Received: Thu, 12-Nov-87 07:23:12 EST Sender: daemon@ucbvax.BERKELEY.EDU Organization: The ARPA Internet Lines: 42 I have some questions about the X toolkit (my last query did not seem to get through): 1) How do you register ordinary windows (i.e. not widgets) with the dispatcher. If this is not possible then the XtDispatch routine should indicate whether or not it used the event? 2) Can more than one function be called automatically by the dispatcher for the same widget (or window) and the same event mask? 3) I have got the text widget to work but I have had some problems understanding how it should be used: a) When you pass a string to XtTextStringCreate does it use the string as a buffer or does it copy the string to its own buffer, who is in charge of checking that the buffer does not overflow and dealing with it when the end of the buffer is reached? b) What I want to do is have a XttextAppend widget where I can send it a prompt and then type commands in which I can send to the application every time I get a newline. The text widget is wonderful for appending text and moving through the text (I love the emacs-type functionality) but it seems very hard to get information back about what I typed. At the moment I have to check key press events and maintain my own buffer, I can't read the data itself because I need to distinguish between what the user typed and what the application printed. c) I assume that the only way for the application to put text into the widget is by using XtTextReplace, if this is so and the function is public then the typedef for XtTextBlock should be in Text.h and not TextP.h? (XtTextBlock is the type of one of the arguments) 4) Do I need to write my own forms or will they appear with the next release? Should this type of query go straight to the toolkit people? If the answer is yes could someone tell me who the correct person to send queries to is?? Keep up the good work. Julian Payne. European Silicon Structures (ES2).