Thank Hilaire , I understand how to wrap my code to a cross platform class.
Definetly will look at (have done already previously) DrGeo as most likely
I will rely heavily on Morphic.

Nicolai ,I tried this code in Windows and works

DisplayScreen hostWindowSize: 500@500.

DisplayScreen hostWindowTitle: 'hello'.

Will check it on MacOS when I get home :)

What I want to create is a custom gui that resizes to a small size and
locates to the left side of the screen as a long left panel that can be use
like a Dock bar for Pharo and Blender, and who knows even for OS stuff.

On Mon, Sep 22, 2014 at 12:36 PM, Nicolai Hess <nicolaih...@web.de> wrote:

> Another solution could be the HostWindowPlugin.
> Look at DisplayScreen class >> hostWindowXXXX
> This could be platform independent but I don't know if it works on all
> platforms:
> 12231 <https://pharo.fogbugz.com/default.asp?12231>
> DisplayScreen hostWindowTitle: not working on Linux (ubuntu)
>
>
>
>
> 2014-09-22 11:26 GMT+02:00 Hilaire <hila...@drgeo.eu>:
>
>> Le 22/09/2014 11:20, Hilaire a écrit :
>> > Le 22/09/2014 10:55, kilon alios a écrit :
>> >> I was talking about something cross platform but NB is good too. Makes
>> me
>> >> wonder the potential of hacking the pharo window, maybe for embedding
>> QT to
>> >> it or what else.
>> >
>> > You can wrap this in a Plateform hierarchy to make it crossplateform
>> > from the Ephaistos perspective.
>> > I think there are such example in Pharo itself, you can also check the
>> > DrGPlateform hierarchy in DrGeo or iStoa
>> >
>> > Hilaire
>> >
>>
>>
>> In Pharo you can check for OSPlatform and add accordingly the operation
>> you want to do in your host window, for each specific OS.
>>
>> Then, in your appls will do something like:
>>
>> Smalltalk os maximiseHostWindow
>> [...]
>>
>> Hilaire
>>
>>
>> --
>> Dr. Geo - http://drgeo.eu
>> iStoa - http://istao.drgeo.eu
>>
>>
>>
>

Reply via email to