<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
<div class="moz-cite-prefix">El 27/10/22 a las 09:58, Mariano
Montone escribió:<br>
</div>
<blockquote type="cite"
cite="mid:22d2cdaa-14dc-f4d5-2bea-2aef82f4b66e@gmail.com">
<blockquote type="cite"
cite="mid:63fc7d28-7f93-fc31-dc4b-22dd8f6b7eab@free.fr">
<ul>
<li>How to better integrate Erudite in a dedicated pane
attached to another window, to have integrated help without
overlapping windows (you know kids tend to lost the track of
the windows they open)<br>
</li>
</ul>
</blockquote>
<p>It is unfortunate that windows in Cuis are not wrappers. If
that had been the case, then you could have just embeded the
Erudite reader using addMorph: . But you can't atm, because it
is a subclass of SystemWindow. I think the easier way would be
for me to provide you with a book reader morph that is not a
subclass of SystemWindow, then you can use addMorph: to
integrate as a panel.</p>
</blockquote>
<p>There's a hack you can try for this:</p>
<p><br>
</p>
<p>| panel reader |<br>
<br>
panel := LayoutMorph newColumn.<br>
reader := EruditeBookReaderMorph new.<br>
reader model: EruditeManual new; buildMorphicWindow.<br>
<br>
panel addMorph: reader layoutMorph.<br>
<br>
panel openInWorld.</p>
<p><br>
</p>
<p>Not pretty, but it works.</p>
<p><br>
</p>
<p> Mariano<br>
</p>
</body>
</html>