2009/8/18 John M McIntosh <johnmci@smalltalkconsulting.com>:
Before you run too far down the let's change Morphic path you should check with Igor I'm sure he was off a year back trying to hack Ffenestri into Morphic.
yes, yes i have an initial implementation of new hostwindows plugin which moves/separates the windowing stuff from core VM functionality. It then would be possible to build a VM which having no windowing support at all, and works as a console application. The problem with it, that i never did any windowing & event handling on X windows or MacOS, so its not so easy. I'm only hoping that my design fits well with other platforms, not only win32. I can publish the bits i'm done. Just say. I am swamped by another projects , so i don't know when i could find a time to finish it. :(
Tim and I gave that thought up when we considered there was 400 or so references to EventSenor  & Display many of which had no concept of window ownership in mind.
Yes, this is a bit of pain. My thought about it, is to keep sensor global, but replace all refs to Display to 'self display' message send. There are only a few methods which assigning new value to Display , which should be addressed separately.
On 17-Aug-09, at 6:27 PM, Eagle Offshore wrote:
Thanks so much for sharing on this.
There seems to be a few caches of stuff stashed in various places. None of it is exactly complete. Â I've taken the bulk of it from the http://source.impara.de/HostWindows and a bit from your experimental directory and looked at the plugins code in the VM tree and then just started trying to fix problems with event delivery. Â I'd like to pull it all together and make it coherent on Windows, OS X and Unix.
Its really great that Pharo has integrated the HostMenus stuff - I think it would be cool to do HostWindows too. Â Once you eliminate having to emulate the look of the windows - most widget sets look pretty similar and I think morphic widgets inside of real windows would keep things from looking too weird while preserving the benefits of having our widgets in Smalltalk.
Given Pharo's "take no prisoners" attitude, I think getting host windows working would allow a lot of really ugly code in PasteUpMorph and HandMorph to just go away. Â Event delivery in Morphic is just totally incomprehensible and I'm finding it is broken when a second window is introduced as the mouse coordinates seem to be delivered window relative. Â Its also really hard to work on because I keep junking images by making changes that wreck the UI.
-Todd Blanchard
-- = = = ======================================================================== John M. McIntosh <johnmci@smalltalkconsulting.com> Â Twitter: squeaker68882 Corporate Smalltalk Consulting Ltd. Â http://www.smalltalkconsulting.com = = = ========================================================================
_______________________________________________ Pharo-project mailing list Pharo-project@lists.gforge.inria.fr http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
-- Best regards, Igor Stasenko AKA sig.