[Oberon] Obtaining the title of a marked viewer.

Andreas Pirklbauer andreas_pirklbauer at yahoo.com
Sat Feb 18 20:10:06 CET 2017


The command Edit.Store shows how this can be done:

V := Oberon.MarkedViewer();
Texts.OpenScanner(S, V.dsc(TextFrames.Frame).text, 0);

...
—————————


[Oberon] Obtaining the title of a marked viewer.

peter at easthope.ca peter at easthope.ca  <mailto:oberon%40lists.inf.ethz.ch?Subject=Re:%20Re%3A%20%5BOberon%5D%20%20Obtaining%20the%20title%20of%20a%20marked%20viewer.&In-Reply-To=%3CE1cf9Ah-0004Td-7f%40dalton.invalid%3E>
Sat Feb 18 18:51:47 CET 2017
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?  Hypothetically a message 
broadcast into the Display can induce the viewer to identify itself.  
Is there an  example in documentation or source?  

Why ask the question?  If "Sort.Sort *" is applied to a Text, the 
result is placed in a viewer named Sorted.Text.  More helpful is to 
take the title of the original Text, append a suffix such as ".Srt", 
and give the name to the result viewer.

Thanks,            ... Lyall E.


-- 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.inf.ethz.ch/pipermail/oberon/attachments/20170218/b3710f29/attachment.html>


More information about the Oberon mailing list