[Oberon] Obtaining the title of a marked viewer.

Robert Ransom rransom.8774 at gmail.com
Sat Feb 18 20:09:15 CET 2017

On 2/18/17, peter at easthope.ca <peter at easthope.ca> wrote:
> Suppose a Text viewer is * marked.  Oberon.MarkedText() gives the
> Text, a pointer to a TextDesc.
> How can the title of the viewer be obtained?

Call Oberon.MarkedViewer to obtain the viewer, cast the viewer to
MenuViewers.Viewer, cast viewer.dsc to TextFrames.Frame, and read the
first word from the frame's text field.

More information about the Oberon mailing list