[Cuis-dev] Erudite and DrGeo

Mariano Montone marianomontone at gmail.com
Thu Oct 27 06:10:33 PDT 2022


El 27/10/22 a las 09:58, Mariano Montone escribió:
>>
>>   * 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)
>>
> 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.
>
There's a hack you can try for this:


| panel reader |

panel := LayoutMorph newColumn.
reader := EruditeBookReaderMorph new.
reader     model: EruditeManual new; buildMorphicWindow.

panel addMorph: reader layoutMorph.

panel openInWorld.


Not pretty, but it works.


      Mariano
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.cuis.st/mailman/archives/cuis-dev/attachments/20221027/00ee7e8f/attachment.htm>


More information about the Cuis-dev mailing list