nmm@cl.cam.ac.uk (Nick Maclaren) (08/03/90)
I am writing an application that has a window that has a scrolled text widget (not editable), followed by a single line editable text widget. This could be regarded as a simple form of xterm. When I add text to the scrolled text widget, I want to persuade it (from the program) to scroll so that the latest line is displayed. There is no documented way of doing this, and none of the likely features (e.g. XmNtopPosition) do this as a side-effect. This leaves three options: 1) To write my own scrolled text widget. 2) To invent suitable events to persuade the scrolled window that the user is hammering on the scroll bar. 3) To hack at the control blocks or simulate calls to callbacks. For obvious reasons, none of these prospects excites me, though any of them is possible. Surely this requirement cannot be so uncommon that Motif does not support it? I would be grateful for any constructive suggestions! Nick Maclaren University of Cambridge Computer Laboratory nmm@cl.cam.ac.uk