Is there a way to move the pharo window around, resize it and generally control it ?
And on Linux/X11: https://ci.inria.fr/pharo-contribution/job/PharoForTheEnterprise/lastSuccess... Laurent Le lun. 22 sept. 2014 à 10:37, Nicolai Hess <nicolaihess@web.de> a écrit :
NB? on Windows: NBWin32Window getActiveWindow moveWindowX:10 y:10 width:500 height:150
2014-09-22 9:59 GMT+02:00 kilon alios <kilon.alios@gmail.com>:
Is there a way to move the pharo window around, resize it and generally control it ?
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. On Mon, Sep 22, 2014 at 11:45 AM, Laurent <laurent.laffont@gmail.com> wrote:
And on Linux/X11: https://ci.inria.fr/pharo-contribution/job/PharoForTheEnterprise/lastSuccess...
Laurent
Le lun. 22 sept. 2014 à 10:37, Nicolai Hess <nicolaihess@web.de> a écrit :
NB? on Windows: NBWin32Window getActiveWindow moveWindowX:10 y:10 width:500 height:150
2014-09-22 9:59 GMT+02:00 kilon alios <kilon.alios@gmail.com>:
Is there a way to move the pharo window around, resize it and generally control it ?
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 -- Dr. Geo - http://drgeo.eu iStoa - http://istao.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
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 <hilaire@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
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 <nicolaihess@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 <hilaire@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
nice , the above works on macos too, pity it does not have a locate method but for now it will do. On Mon, Sep 22, 2014 at 12:48 PM, kilon alios <kilon.alios@gmail.com> wrote:
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 <nicolaihess@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 <hilaire@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
Check the OSWindow bug entry on fogbugz because soon we will integrate it. OSWindow is an API to call/control windows from the OSes developed by Ronie and Igor. Then we will bind to SDL so that we can get the same underlying system on all platform. But there is still some work to do and too many things to do. Stef On 22/9/14 09:59, kilon alios wrote:
Is there a way to move the pharo window around, resize it and generally control it ?
thanks I will keep it mind and watch it. I hope one day all drawing happens at the image side and not at the VM so its more easy to hack it. On Mon, Sep 22, 2014 at 11:40 PM, stepharo <stepharo@free.fr> wrote:
Check the OSWindow bug entry on fogbugz because soon we will integrate it. OSWindow is an API to call/control windows from the OSes developed by Ronie and Igor.
Then we will bind to SDL so that we can get the same underlying system on all platform. But there is still some work to do and too many things to do.
Stef
On 22/9/14 09:59, kilon alios wrote:
Is there a way to move the pharo window around, resize it and generally control it ?
participants (5)
-
Hilaire -
kilon alios -
Laurent -
Nicolai Hess -
stepharo