[comp.windows.x] AsciiSink -- tab stops??

steve@acorn.co.uk (Steve "Daffy" Hunt) (05/11/89)

The AsciiSink widget in R3 differs from that of R2 in the
area of tab stops.  The old R2 bug where the first tab
on a line was wrong when there was a scrollbar has been
fixed, and the tab stops may now be specified as a list
of positions rather than just "every 8".

The tab stops are set with static procedure AsciiSetTabs(),
which is defined in AsciiSink.c, and it is exported
by means of the pointer SetTabs in XtTextSinkRec.

However, there does not seem to be a public interface
for setting the tab stops!  ascii{Disk,String}WidgetClass
call sink->SetTabs() in their initialize_hook, but this
technique seems to be naughty for an application (use
of a field in the private structure).

Am I missing something fundamental or is there some
missing functionality here?

				Steve Hunt

swick@ATHENA.MIT.EDU (Ralph R. Swick) (05/15/89)

> Date: 11 May 89 13:23:48 GMT
> From: mcvax!ukc!acorn!steve@uunet.uu.net  (Steve "Daffy" Hunt)
>...
> However, there does not seem to be a public interface
> for setting the tab stops!
>...
> Am I missing something fundamental or is there some
> missing functionality here?

You didn't overlook anything; the public interface was not included in R3.