<div dir="ltr"><br><div class="gmail_extra"><br><br><div class="gmail_quote">On Fri, Jan 11, 2013 at 5:34 AM, Torsten Bergmann <span dir="ltr">&lt;<a href="mailto:astares@gmx.de" target="_blank">astares@gmx.de</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">From the history of Squeak and Pharo you can:<br>
<br>
  1. Squeak.exe (VM for Windows) was always able to set this using<br>
     the Setting &quot;WindowTitle&quot; in Pharo.ini - see<br>
     <a href="http://squeakvm.org/win32/settings.html" target="_blank">http://squeakvm.org/win32/settings.html</a><br>
<br>
     This was implemented by Andreas Raab (maintainer of SqueakVM)<br>
<br>
  2. Later there was the idea in Squeak for a project<br>
     called &quot;Areithfa Ffenestri&quot; that should add more<br>
     support code to Squeak to allow access to the<br>
     native window or open new ones:<br>
<br>
       <a href="http://wiki.squeak.org/squeak/3862" target="_blank">http://wiki.squeak.org/squeak/3862</a><br>
<br>
     This is a VM plugin that is not in all VM&#39;s and even after<br>
     years AFAIK not fully implemented on all platforms.<br>
<br>
     If it is available then you can do what Bert Freudenberg<br>
     suggested here:<br>
<br>
     <a href="http://lists.squeakfoundation.org/pipermail/squeak-dev/2013-January/167766.html" target="_blank">http://lists.squeakfoundation.org/pipermail/squeak-dev/2013-January/167766.html</a><br>
<br>
     Dont know if the Pharo VM maintainers added this plugin<br>
     too. You have to ask Igor or Esteban.<br>
<br>
  3. While Squeak tries to stay platform independent and<br>
     encapsulate platform dependent logic mostly into VM plugins<br>
     to unify the access  there is some other idea in Pharo now:<br>
<br>
     With the growing need to easily access platform logic<br>
     of the underlying OS or access external libraries written in<br>
     other languages there is a new FFI plugin which is<br>
     (since Pharo 2.0) will be included in the standard distribution.<br>
<br>
     This new Foreign Function Interface (FFI) is called<br>
     NativeBoost and will move more logic into Smalltalk<br>
     itself. So you dont have to write/compile a plugin.<br>
<br>
     You just need a VM with NativeBoost support (NBCog.exe on Windows)<br>
<br>
     Using native Boost (when in Pharo 2.0) you can (already!)<br>
     write:<br>
<br>
       NBWin32Window getFocus setWindowText: &#39;Hello using Native Boost&#39;<br>
<br>
     to change the window title. Internally I just call the<br>
     Windows Win32-API function &quot;SetWindowTextA&quot; using the<br>
     window handle.<br>
<br>
     If someone from other platforms implements an NBUnixWindow,<br>
     NBMacWindow, NBRiscOSWindow, ... we can also implement a<br>
     common interface class (NBPharoWindow for example).<br></blockquote><div><br></div><div>and an additional piece of history is that a number of plugins, including the HostWindowPlugin, were enhanced at Qwaq/Teleplace (now 3d ICC), in a cross-platform manner since we supported Mac and Windows initially and later had a linux prototype.  The code for some of these enhanced plugins, including the HostWindowPlugin, was released along with Cog, which has an MIT license.  So if you mine the COg branch you&#39;ll find code that can be folded back into trunk you&#39;ll get the enhanced functionality.  For the Qwaq/Teleplace HostWindowPlugin that included setting the window title, repositioning and resizing the main window, querying its size, etc.</div>
<div><br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
Hope this helps a little bit<br></blockquote><div><br></div><div>+1.</div></div>-- <br>best,<div>Eliot</div>
</div></div>