Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!wuarchive!cs.utexas.edu!solo.csci.unt.edu!iex!neptune!fm From: fm@neptune.iex.com (Mohammad Faroog) Newsgroups: comp.windows.open-look Subject: OLIT/TextEdit ??? Message-ID: Date: 9 May 91 22:00:35 GMT Sender: news@iex.uucp (USENET news) Organization: IEX Corporation Lines: 27 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