[comp.windows.x] TextWidgets the athena way

coltoff@PRC.Unisys.COM (Joel Coltoff) (10/16/88)

I've got so many little problems I don't remember them all.
They are also unrelated so perhaps posting them this way is
the best idea. These relate to text widget.

I've got a scrollable widget that text gets dumped into. It is
a popup for "error" messages. Usually they just go by and get ignored.
Sometimes we want to make sure one is read. When all the output is
done I want to reposition the display and make loud obnoxious
beeping noises. Setting XtNdisplayPosition doesn't seem to work.
Should it or does this only get looked at when the widget is created?

Secondly, how can I find out how wide the scrollbar attached to a
particluar text widget is?

Lastly, what do I need to set in .Xdefaults so that the font in
one particular text widget changes? If I set "prog*TextSink.Font"
that works fine but "prog*Name.TextSink.Font" doesn't. Any clues
here?

Thanks in advance.

swick@ATHENA.MIT.EDU (Ralph R. Swick) (10/18/88)

> Setting XtNdisplayPosition doesn't seem to work.

fixed in R3.

> Secondly, how can I find out how wide the scrollbar attached to a
> particluar text widget is?

not easily.  One hack would be to query the resource database, using the
instance name "scrollbar" and hope you get the same answer that
Scrollbar did when Text created it.  Since R2 didn't give you a handle
on the resource database, you're stuck 'till R3.

> If I set "prog*TextSink.Font"
> that works fine but "prog*Name.TextSink.Font" doesn't

also fixed in R3.