[comp.windows.open-look] OLIT/TextEdit ???

fm@neptune.iex.com (Mohammad Faroog) (05/10/91)

Hi guys,

Is there any kind soul on the net who can answer a couple of my questions?

1 - Is there anyway to get font info. of TextEdit widget. What I have done
	is following.

	XFontStruct font;

	w_text = XtVaCreateManagedWidget(
			"text",
		    textEditWidgetClass,
		    w_form,
			XtNsource, "This is test",
			XtNy,70,
		    0
		  );
																				  XtVaGetValues(w_text,XtNfont,&font,0);
																				  printf("fid = %d\n",font.fid);
																				  The manual says XtNfont type is SGI. But somehow it is not giving me font
																				  info. back. fid field of font struct is always zero. Waht I am doing wrong?

																				2 - In the TextEdit widget, when a new line of text is added at the bottom of
																				    the window, widget redisplays the whole window. It does not scroll the text
																					upward. Is this a bug? Is there anyway to change this behavior?
																				Please send me direct mail. Thanks in advance.
																				fm@iex.com