Re (2): [Oberon] Finding an object by name
Josef Sedlacek
sedlacek at swissonline.ch
Mon Aug 23 10:13:04 CEST 2004
edgar at edgarschwarz.de wrote:
>Hi Felix,
>thanks for your code. I will give it a try.
>
>Felix Friedrich <friedrich at gsf.de> wrote:
>
>
>>As far as I remember, there is no way to
>>(portably) traverse all viewers/frames in the display space (without
>>using Display.Broadcast which in your case does not make sense).
>>
>>
>But this gives me another idea. Perhaps Display.Broadcast MAKES sense in my case.
>Because I know the name of the document I expect my object to be contained !
>So perhaps taking the document (or the panel it contains) as context for FindObj()
>could save my day.
>So I have another question:
>Can I find a document with a given name if it's opened ?
>
>Cheers, Edgar
>
>
Hi Edgar
Have a look to ParentHandler and CloseThisDoc in Desktops.Mod. Using
.dlink you can climb in the hierarchy upwards. Then you can use also
.dsc and .next.
Best regards
Josef
--
Company: Radiar, Dr. J. Sedlacek, CH-7554 Sent
Tel: +41 (81) 860 06 60
Fax: +41 (81) 860 06 62
More information about the Oberon
mailing list