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 > > > but I still do not find how to put the window on top of all the others... Julien |
In reply to this post by Stephan Eggermont-3
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 > > > on top of all other windows opened?" I mean programatically of course :p. Julien |
In reply to this post by Julien Delplanque
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 |
In reply to this post by Julien Delplanque
<window-model> window activate ?
> On 03 Feb 2016, at 13:03, Julien Delplanque <[hidden email]> 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 > |
In reply to this post by Stephan Eggermont-3
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 > > 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 |
In reply to this post by Sven Van Caekenberghe-2
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 <[hidden email]> 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 <[hidden email]> 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 <[hidden email]> 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 >>>> >>> >> >> >> > > |
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 |
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 <[hidden email]> 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 <[hidden email]> 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 <[hidden email]> 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 > > |
In reply to this post by Stephan Eggermont-3
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 > > > |
In reply to this post by Sven Van Caekenberghe-2
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-WindowModel On 04/02/16 15:26, Sven Van Caekenberghe wrote: >> On 04 Feb 2016, at 15:21, Johan Fabry <[hidden email]> 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 <[hidden email]> 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 >> >> > |
In reply to this post by Sven Van Caekenberghe-2
> On Feb 4, 2016, at 11:26, Sven Van Caekenberghe <[hidden email]> wrote: > >> >> On 04 Feb 2016, at 15:21, Johan Fabry <[hidden email]> 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 <[hidden email]> wrote:
> >> On Feb 4, 2016, at 11:26, Sven Van Caekenberghe <[hidden email]> wrote: >> >>> >>> On 04 Feb 2016, at 15:21, Johan Fabry <[hidden email]> 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"? |
In reply to this post by stepharo
2016-02-04 8:17 GMT+01:00 stepharo <[hidden email]>: 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?
|
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 <[hidden email]>: > >> 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 <[hidden email]> 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 >>>>> >>>>> >>> >>> >> |
Free forum by Nabble | Edit this page |