Made a small experiment the other week of, sharing in case someone's interested.It renders an arbitrary SystemWindow in a ffenestri-window (on mac at least) in the simplest way I could think of at least. (not efficient (3MB or so per window), nor exactly pretty), but it makes for a nice demo imo, even though the window is unresponsible to input.Render update on resizing works, with a faux render loop instead of real window resize event response :)In theory you can do openInWorld on the same window, and manipulate that, but I wouldn't recommend it, as the faux loop in the workspace is in no way synchronized with World Drawing and you will get DNU's after awhile.Install the changesets from ftp.smalltalkconsulting.com/experimental/Ffenestri/ first, then the changeset in the attached zip.Doit'ing the workspace in the .rtf should then open a Hierarchy Browser on HierarchyBrowser, read comments there for more details :)Should work on any SystemWindow instance, though actually getting to an instance before it's opened can be surprisingly hard...Cheers,Henry<FFenestriSystemWindowsExample.zip>_______________________________________________On Aug 18, 2009, at 8:33 39PM, Eagle Offshore wrote:What is the "canonical" window class in Pharo? I see SystemWindow has
been subclassed and there's a separate builder for the other window
that is otherwise a copy of the default builder. Where was that going?
On Aug 18, 2009, at 10:01 AM, Gary Chambers wrote:I'll keep checking ,but, let me know when the basics are in and I'llprovidesupport in Polymorph.Regards, Gary----- Original Message -----From: "Igor Stasenko" <siguctua@gmail.com>To: <Pharo-project@lists.gforge.inria.fr>Sent: Tuesday, August 18, 2009 4:11 PMSubject: Re: [Pharo-project] Native Windows2009/8/18 Eagle Offshore <eagleoffshore@mac.com>:I'm curious why you did a new plugin. Does the existing one not workon windows?it works , but it duplicating a functionality which also present incore platform files:- creating a window- processing eventsso, the idea is to merge & unify all these bits into a single pluginand also, make an extended API formanaging host windows.I got the following from Bert on the state of the unix plugin:"The plugin functions are still stubbed out, so you cannot actuallyopen a second window, yet. But at least the hairy part of the workisdone - I implemented the dispatching between the HostWindow plugintothe various display modules. This is more complex than on the otherplatforms, because the unix VM so far supports X11, Quartz,FrameBuffer, and Null display devices. But I did that part, nowsomeone can simply implement e.g. the X11 functions to have itworkingin Linux. The only function I actually implemented was changing thetitle of the main Squeak window (window index 1)."-Todd BlanchardOn Aug 18, 2009, at 6:03 AM, Igor Stasenko wrote:2009/8/18 John M McIntosh <johnmci@smalltalkconsulting.com>:Before you run too far down the let's change Morphic path youshouldcheck with Igor I'm sure he was off a year back trying to hackFfenestri into Morphic.yes, yes i have an initial implementation of new hostwindows pluginwhich moves/separates the windowing stuff from core VMfunctionality.It then would be possible to build a VM which having no windowingsupport at all, and works as a console application.The problem with it, that i never did any windowing & eventhandlingon X windows or MacOS,so its not so easy. I'm only hoping that my design fits well withother 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 couldfind atime to finish it. :(Tim and I gave that thought up when we considered there was 400or soreferences to EventSenor & Display many of which had no concept ofwindow ownership in mind.Yes, this is a bit of pain.My thought about it, is to keep sensor global, butreplace 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 variousplaces.None of it is exactly complete. I've taken the bulk of it fromthe http://source.impara.de/HostWindowsand a bit from your experimental directory and looked at thepluginscode in the VM tree and then just started trying to fix problemswith event delivery. I'd like to pull it all together and make itcoherent on Windows, OS X and Unix.Its really great that Pharo has integrated the HostMenus stuff- Ithink it would be cool to do HostWindows too. Once you eliminatehaving to emulate the look of the windows - most widget sets lookpretty similar and I think morphic widgets inside of real windowswould keep things from looking too weird while preserving thebenefits of having our widgets in Smalltalk.Given Pharo's "take no prisoners" attitude, I think getting hostwindows working would allow a lot of really ugly code inPasteUpMorph and HandMorph to just go away. Event delivery inMorphic is just totally incomprehensible and I'm finding it isbroken when a second window is introduced as the mousecoordinatesseem to be delivered window relative. Its also really hard toworkon because I keep junking images by making changes that wreck theUI.-Todd Blanchard--===========================================================================John M. McIntosh <johnmci@smalltalkconsulting.com> Twitter:squeaker68882Corporate Smalltalk Consulting Ltd. http://www.smalltalkconsulting.com===========================================================================_______________________________________________Pharo-project mailing listPharo-project@lists.gforge.inria.frhttp://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project--Best regards,Igor Stasenko AKA sig._______________________________________________Pharo-project mailing listPharo-project@lists.gforge.inria.frhttp://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project_______________________________________________Pharo-project mailing listPharo-project@lists.gforge.inria.frhttp://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project--Best regards,Igor Stasenko AKA sig._______________________________________________Pharo-project mailing listPharo-project@lists.gforge.inria.frhttp://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project_______________________________________________Pharo-project mailing listPharo-project@lists.gforge.inria.frhttp://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
_______________________________________________
Pharo-project mailing list
Pharo-project@lists.gforge.inria.fr
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
Pharo-project mailing list
Pharo-project@lists.gforge.inria.fr
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project