Deploying a polymorph app - two questions

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
7 messages Options
kmo
Reply | Threaded
Open this post in threaded view
|

Deploying a polymorph app - two questions

kmo
I have written a small Polymorph application in Pharo 2.0. I have some questions about deploying it.

My app consists of a single morph. I would like to fill the pharo window with the morph and have the morph resize when the user resizes the pharo window.

I'm pretty close to what I want. I have made my morph a subclass of FullscreenMorph and it is filling the window nicely.

I just need two things.

One - I need to change the pharo window title to the title of my application. I have tried DisplayScreen hostWindowTitle and it seems to have no effect.

Two - I need to get rid of the Pharo window status bar - the one at the bottom which shows you the various windows, browsers, and workspaces you have open.

Can anyone give me some guidance?

Thanks.
Reply | Threaded
Open this post in threaded view
|

Re: Deploying a polymorph app - two questions

Benjamin Van Ryseghem (Pharo)
On 23 Nov 2013, at 13:58, kmo <[hidden email]> wrote:

> I have written a small Polymorph application in Pharo 2.0. I have some
> questions about deploying it.
>
> My app consists of a single morph. I would like to fill the pharo window
> with the morph and have the morph resize when the user resizes the pharo
> window.
>
> I'm pretty close to what I want. I have made my morph a subclass of
> FullscreenMorph and it is filling the window nicely.
>
> I just need two things.
>
> One - I need to change the pharo window title to the title of my
> application. I have tried DisplayScreen hostWindowTitle and it seems to have
> no effect.

In Spec, I use

DisplayScreen hostWindowTitle: aString, and it works.


> Two - I need to get rid of the Pharo window status bar - the one at the
> bottom which shows you the various windows, browsers, and workspaces you
> have open.

World changeProportionalLayout.
        World
  submorphs do: [:e | e delete ].
 
  (Smalltalk at: #PolymorphSystemSettings) perform: #desktopColor: with: (Color r: 0.78 g: 0.753 b: 0.71).
  ((Smalltalk at: #UITheme) perform: #currentSettings) perform: #windowColor: with: (Color r: 0.745 g: 0.745 b: 0.745).
        (Smalltalk at: #TaskbarMorph) perform: #showTaskbar: with: false

That’s what I do in Spec :)

For more info, you can have a look at WorldModel

Ben

>
> Can anyone give me some guidance?
>
> Thanks.
>
>
>
> --
> View this message in context: http://forum.world.st/Deploying-a-polymorph-app-two-questions-tp4724525.html
> Sent from the Pharo Smalltalk Users mailing list archive at Nabble.com.
>


kmo
Reply | Threaded
Open this post in threaded view
|

Re: Deploying a polymorph app - two questions

kmo
Benjamin -

Many thanks.

Your suggestion of  World  submorphs do: [:e | e delete ] was just what I needed to get rid of the taskbar.

However,  DisplayScreen hostWindowTitle does not work for me. I'm not using Spec but surely that should make no difference. Is it a platform bug (I'm on ubuntu 13.04) or are you using pharo 3.0? I'm on pharo 2.0 (there is no WorldModel as far as I can see).

So, is DisplayScreen hostWindowTitle broken on pharo 2.0?

ken
Reply | Threaded
Open this post in threaded view
|

Re: Deploying a polymorph app - two questions

Benjamin Van Ryseghem (Pharo)
On 23 Nov 2013, at 16:13, kmo <[hidden email]> wrote:

> Benjamin -
>
> Many thanks.
>
> Your suggestion of  World  submorphs do: [:e | e delete ] was just what I
> needed to get rid of the taskbar.
>
> However,  DisplayScreen hostWindowTitle does not work for me. I'm not using
> Spec but surely that should make no difference. Is it a platform bug (I'm on
> ubuntu 13.04) or are you using pharo 3.0? I'm on pharo 2.0 (there is no
> WorldModel as far as I can see).
>
> So, is DisplayScreen hostWindowTitle broken on pharo 2.0?

Might be, I am on mac + Pharo 3.0 and it works.

And I think that the Pharo Launcher uses this feature too and works on ubuntu.

So probably a problem in 2.0, or you are using an old vm maybe

Ben
>
> ken
>
>
>
> --
> View this message in context: http://forum.world.st/Deploying-a-polymorph-app-two-questions-tp4724525p4724550.html
> Sent from the Pharo Smalltalk Users mailing list archive at Nabble.com.
>


kmo
Reply | Threaded
Open this post in threaded view
|

Re: Deploying a polymorph app - two questions

kmo
Does not work in pharo 3.0 either on my ubuntu system.

My VM is dated 13/03/2013. I don't think I'm using a particularly old one.

Ken



Reply | Threaded
Open this post in threaded view
|

Re: Deploying a polymorph app - two questions

EstebanLM
it should work (it is vm related, nothing to do with the image). 
please report a bug :)

Esteban


On Sat, Nov 23, 2013 at 7:58 PM, kmo <[hidden email]> wrote:
Does not work in pharo 3.0 either on my ubuntu system.

My VM is dated 13/03/2013. I don't think I'm using a particularly old one.

Ken







--
View this message in context: http://forum.world.st/Deploying-a-polymorph-app-two-questions-tp4724525p4724580.html
Sent from the Pharo Smalltalk Users mailing list archive at Nabble.com.


kmo
Reply | Threaded
Open this post in threaded view
|

Re: Deploying a polymorph app - two questions

kmo
Done.