Hello, I can't find the answer by browsing classes comments nor methods so I ask the question here :). Is it possible to put a WindowModel on top of all other windows opened? If it is, how? Thanks in advance, Julien
On 03-02-16 12:14, Julien Delplanque wrote:
Hello,
I can't find the answer by browsing classes comments nor methods so I ask the question here :).
Is it possible to put a WindowModel on top of all other windows opened? If it is, how?
I'm not sure where you are looking for, but did you look at the WorldModel? Stephan
On 03/02/16 12:33, Stephan Eggermont wrote:
On 03-02-16 12:14, Julien Delplanque wrote:
Hello,
I can't find the answer by browsing classes comments nor methods so I ask the question here :).
Is it possible to put a WindowModel on top of all other windows opened? If it is, how?
I'm not sure where you are looking for, but did you look at the WorldModel?
Stephan
I looked at WindowModel and, because of your mail, also at WorldModel but I still do not find how to put the window on top of all the others... Julien
On 03-02-16 12:59, Julien Delplanque wrote:
I looked at WindowModel and, because of your mail, also at WorldModel but I still do not find how to put the window on top of all the others...
There is openWorldWithSpec as used in PharoLauncher. Are you looking for a (modal) dialog or building a custom application with no pharo IDE? Spec does not have fine-grained control over layers, for that you need the Morphic level, where you can say e.g. setProperty: #morphicLayerNumber toValue: 18. to be on top of normal windows. Stephan
On 03/02/16 13:14, Stephan Eggermont wrote:
On 03-02-16 12:59, Julien Delplanque wrote:
I looked at WindowModel and, because of your mail, also at WorldModel but I still do not find how to put the window on top of all the others...
There is
openWorldWithSpec
as used in PharoLauncher.
Are you looking for a (modal) dialog or building a custom application with no pharo IDE? Spec does not have fine-grained control over layers, for that you need the Morphic level, where you can say e.g.
setProperty: #morphicLayerNumber toValue: 18.
to be on top of normal windows.
Stephan
I am building a custom application. Ok, so I need to work at Morph level. To retrieve the morph associated with the WindowModel, do I need to use World submorphs and detect it or is there another way? If I retrieve the SpecWindow, I can simply send #activate to put the window to the top... Julien
On 03/02/16 12:33, Stephan Eggermont wrote:
On 03-02-16 12:14, Julien Delplanque wrote:
Hello,
I can't find the answer by browsing classes comments nor methods so I ask the question here :).
Is it possible to put a WindowModel on top of all other windows opened? If it is, how?
I'm not sure where you are looking for, but did you look at the WorldModel?
Stephan
How, a little precision, when I say "Is it possible to put a WindowModel on top of all other windows opened?" I mean programatically of course :p. Julien
<window-model> window activate ?
On 03 Feb 2016, at 13:03, Julien Delplanque <julien@tamere.eu> wrote:
On 03/02/16 12:33, Stephan Eggermont wrote:
On 03-02-16 12:14, Julien Delplanque wrote:
Hello,
I can't find the answer by browsing classes comments nor methods so I ask the question here :).
Is it possible to put a WindowModel on top of all other windows opened? If it is, how?
I'm not sure where you are looking for, but did you look at the WorldModel?
Stephan
How, a little precision, when I say "Is it possible to put a WindowModel on top of all other windows opened?" I mean programatically of course :p.
Julien
Ok I found how to do it: myWidget window window activate. Some observations: "myWidget window" gives a WindowModel which inherits from AbstractWidgetModel and does not have #activate message. "myWidget window window" gives a SpecWindow which inherits from StandardWindow, a morph. Thanks a lot for the help! Julien On 03/02/16 13:16, Sven Van Caekenberghe wrote:
<window-model> window activate ?
On 03 Feb 2016, at 13:03, Julien Delplanque <julien@tamere.eu> wrote:
On 03/02/16 12:33, Stephan Eggermont wrote:
On 03-02-16 12:14, Julien Delplanque wrote:
Hello,
I can't find the answer by browsing classes comments nor methods so I ask the question here :).
Is it possible to put a WindowModel on top of all other windows opened? If it is, how? I'm not sure where you are looking for, but did you look at the WorldModel?
Stephan
How, a little precision, when I say "Is it possible to put a WindowModel on top of all other windows opened?" I mean programatically of course :p.
Julien
I do not like the API :) Le 3/2/16 13:35, Julien Delplanque a écrit :
Ok I found how to do it:
myWidget window window activate.
Some observations: "myWidget window" gives a WindowModel which inherits from AbstractWidgetModel and does not have #activate message. "myWidget window window" gives a SpecWindow which inherits from StandardWindow, a morph.
Thanks a lot for the help!
Julien
On 03/02/16 13:16, Sven Van Caekenberghe wrote:
<window-model> window activate ?
On 03 Feb 2016, at 13:03, Julien Delplanque <julien@tamere.eu> wrote:
On 03/02/16 12:33, Stephan Eggermont wrote:
On 03-02-16 12:14, Julien Delplanque wrote:
Hello,
I can't find the answer by browsing classes comments nor methods so I ask the question here :).
Is it possible to put a WindowModel on top of all other windows opened? If it is, how? I'm not sure where you are looking for, but did you look at the WorldModel?
Stephan
How, a little precision, when I say "Is it possible to put a WindowModel on top of all other windows opened?" I mean programatically of course :p.
Julien
To match my needs, I simply added an extension to WindowModel with the message #activate. So I do not need to do "myWidget window window activate". Julien On 04/02/16 08:17, stepharo wrote:
I do not like the API :)
Le 3/2/16 13:35, Julien Delplanque a écrit :
Ok I found how to do it:
myWidget window window activate.
Some observations: "myWidget window" gives a WindowModel which inherits from AbstractWidgetModel and does not have #activate message. "myWidget window window" gives a SpecWindow which inherits from StandardWindow, a morph.
Thanks a lot for the help!
Julien
On 03/02/16 13:16, Sven Van Caekenberghe wrote:
<window-model> window activate ?
On 03 Feb 2016, at 13:03, Julien Delplanque <julien@tamere.eu> wrote:
On 03/02/16 12:33, Stephan Eggermont wrote:
On 03-02-16 12:14, Julien Delplanque wrote:
Hello,
I can't find the answer by browsing classes comments nor methods so I ask the question here :).
Is it possible to put a WindowModel on top of all other windows opened? If it is, how? I'm not sure where you are looking for, but did you look at the WorldModel?
Stephan
How, a little precision, when I say "Is it possible to put a WindowModel on top of all other windows opened?" I mean programatically of course :p.
Julien
Yes, please do that! I would do it myself but Iâm on holiday this month and not allowed to touch the computer much ;-)
On Feb 4, 2016, at 09:10, Stephan Eggermont <stephan@stack.nl> wrote:
On 04-02-16 08:28, Julien Delplanque wrote:
To match my needs, I simply added an extension to WindowModel with the message #activate.
Just create an issue and fix it in place and put a slice in the inbox. You will not be the only one needing it.
Stephan
---> Save our in-boxes! http://emailcharter.org <--- Johan Fabry - http://pleiad.cl/~jfabry PLEIAD and RyCh labs - Computer Science Department (DCC) - University of Chile
On 04 Feb 2016, at 15:21, Johan Fabry <jfabry@dcc.uchile.cl> wrote:
Yes, please do that! I would do it myself but Iâm on holiday this month and not allowed to touch the computer much ;-)
And still you somehow managed to type this message ;-)
On Feb 4, 2016, at 09:10, Stephan Eggermont <stephan@stack.nl> wrote:
On 04-02-16 08:28, Julien Delplanque wrote:
To match my needs, I simply added an extension to WindowModel with the message #activate.
Just create an issue and fix it in place and put a slice in the inbox. You will not be the only one needing it.
Stephan
---> Save our in-boxes! http://emailcharter.org <---
Johan Fabry - http://pleiad.cl/~jfabry PLEIAD and RyCh labs - Computer Science Department (DCC) - University of Chile
Ok, its done here [1], I hope I followed the procedure correctly. :) Julien [1]: https://pharo.fogbugz.com/f/cases/17528/Missing-activate-message-in-WindowMo... On 04/02/16 15:26, Sven Van Caekenberghe wrote:
On 04 Feb 2016, at 15:21, Johan Fabry <jfabry@dcc.uchile.cl> wrote:
Yes, please do that! I would do it myself but Iâm on holiday this month and not allowed to touch the computer much ;-) And still you somehow managed to type this message ;-)
On Feb 4, 2016, at 09:10, Stephan Eggermont <stephan@stack.nl> wrote:
On 04-02-16 08:28, Julien Delplanque wrote:
To match my needs, I simply added an extension to WindowModel with the message #activate. Just create an issue and fix it in place and put a slice in the inbox. You will not be the only one needing it.
Stephan
---> Save our in-boxes! http://emailcharter.org <---
Johan Fabry - http://pleiad.cl/~jfabry PLEIAD and RyCh labs - Computer Science Department (DCC) - University of Chile
On Feb 4, 2016, at 11:26, Sven Van Caekenberghe <sven@stfx.eu> wrote:
On 04 Feb 2016, at 15:21, Johan Fabry <jfabry@dcc.uchile.cl> wrote:
Yes, please do that! I would do it myself but Iâm on holiday this month and not allowed to touch the computer much ;-)
And still you somehow managed to type this message ;-)
It just shows how important Pharo is to me :-P ---> Save our in-boxes! http://emailcharter.org <--- Johan Fabry - http://pleiad.cl/~jfabry PLEIAD and RyCh labs - Computer Science Department (DCC) - University of Chile
On Fri, Feb 5, 2016 at 12:02 AM, Johan Fabry <jfabry@dcc.uchile.cl> wrote:
On Feb 4, 2016, at 11:26, Sven Van Caekenberghe <sven@stfx.eu> wrote:
On 04 Feb 2016, at 15:21, Johan Fabry <jfabry@dcc.uchile.cl> wrote:
Yes, please do that! I would do it myself but Iâm on holiday this month and not allowed to touch the computer much ;-)
And still you somehow managed to type this message ;-)
It just shows how important Pharo is to me :-P
Is it strange that both drugs and computers are the main domains that refer to having "users"?
Ok, it will be a good occasion to learn the contribution process *shame on me*. Julien On 04/02/16 13:10, Stephan Eggermont wrote:
On 04-02-16 08:28, Julien Delplanque wrote:
To match my needs, I simply added an extension to WindowModel with the message #activate.
Just create an issue and fix it in place and put a slice in the inbox. You will not be the only one needing it.
Stephan
2016-02-04 8:17 GMT+01:00 stepharo <stepharo@free.fr>:
I do not like the API :)
Hi Steph, Julien, Iooked at the fix for this issue. Implementing #activate on WindowModel and delegate to self window of course works. But I am unsure if we want to do it that way, because messages like #maximize #minimize are implemented differently. I don't know what is the preferred way for models to communicate with widgets through the adapter. But if we follow the way of maximize and minimize, an implementation for WindowModel>>#activate could be self changed: #activate with: #() and this needs another change in MorphicWindowAdapter>>#activate self widgetDo: [ :w | w activate ] what do you think?
Le 3/2/16 13:35, Julien Delplanque a écrit :
Ok I found how to do it:
myWidget window window activate.
Some observations: "myWidget window" gives a WindowModel which inherits from AbstractWidgetModel and does not have #activate message. "myWidget window window" gives a SpecWindow which inherits from StandardWindow, a morph.
Thanks a lot for the help!
Julien
On 03/02/16 13:16, Sven Van Caekenberghe wrote:
<window-model> window activate ?
On 03 Feb 2016, at 13:03, Julien Delplanque <julien@tamere.eu> wrote:
On 03/02/16 12:33, Stephan Eggermont wrote:
On 03-02-16 12:14, Julien Delplanque wrote:
Hello,
I can't find the answer by browsing classes comments nor methods so I ask the question here :).
Is it possible to put a WindowModel on top of all other windows opened? If it is, how?
I'm not sure where you are looking for, but did you look at the WorldModel?
Stephan
How, a little precision, when I say "Is it possible to put a WindowModel on top of all other windows opened?" I mean programatically of course :p.
Julien
Indeed, it should be implemented the same way as #minimize and #maximize. Julien On 09/02/16 09:04, Nicolai Hess wrote:
2016-02-04 8:17 GMT+01:00 stepharo <stepharo@free.fr>:
I do not like the API :)
Hi Steph, Julien,
Iooked at the fix for this issue. Implementing #activate on WindowModel and delegate to self window of course works. But I am unsure if we want to do it that way, because messages like #maximize #minimize are implemented differently.
I don't know what is the preferred way for models to communicate with widgets through the adapter. But if we follow the way of maximize and minimize, an implementation for WindowModel>>#activate could be
self changed: #activate with: #()
and this needs another change in MorphicWindowAdapter>>#activate
self widgetDo: [ :w | w activate ]
what do you think?
Le 3/2/16 13:35, Julien Delplanque a écrit :
Ok I found how to do it:
myWidget window window activate.
Some observations: "myWidget window" gives a WindowModel which inherits from AbstractWidgetModel and does not have #activate message. "myWidget window window" gives a SpecWindow which inherits from StandardWindow, a morph.
Thanks a lot for the help!
Julien
On 03/02/16 13:16, Sven Van Caekenberghe wrote:
<window-model> window activate ?
On 03 Feb 2016, at 13:03, Julien Delplanque <julien@tamere.eu> wrote:
On 03/02/16 12:33, Stephan Eggermont wrote:
On 03-02-16 12:14, Julien Delplanque wrote:
Hello,
I can't find the answer by browsing classes comments nor methods so I ask the question here :).
Is it possible to put a WindowModel on top of all other windows opened? If it is, how?
I'm not sure where you are looking for, but did you look at the WorldModel?
Stephan
How, a little precision, when I say "Is it possible to put a WindowModel on top of all other windows opened?" I mean programatically of course :p.
Julien
participants (7)
-
Ben Coman -
Johan Fabry -
Julien Delplanque -
Nicolai Hess -
Stephan Eggermont -
stepharo -
Sven Van Caekenberghe