Fixed tool bar in pharo, similar to the one in Squeak

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

Fixed tool bar in pharo, similar to the one in Squeak

Offray
Hi,

I would like to add a fixed tool bar in the upper side of the  word in
Pharo, similar to the one that is in Squeak. I think that having this
kind of fixed places with tools help newbies to find help and launch
stuff. There is any place where I can install or look for a
functionality like this one?

Thanks,

Offray

Reply | Threaded
Open this post in threaded view
|

Re: Fixed tool bar in pharo, similar to the one in Squeak

Nicolai Hess
2015-03-05 3:49 GMT+01:00 Offray Vladimir Luna Cárdenas <[hidden email]>:
Hi,

I would like to add a fixed tool bar in the upper side of the  word in Pharo, similar to the one that is in Squeak. I think that having this kind of fixed places with tools help newbies to find help and launch stuff. There is any place where I can install or look for a functionality like this one?

Thanks,

Offray


There is DockingBarMorph, for example:

|d|
"World deleteDockingBars."
d:=
    DockingBarMorph new.
    World worldMenu items copy select:[:i| i hasSubMenu] thenDo:[:i|
        d
        add: i contents
        icon: i icon
        help: i contents
        subMenu: i subMenu].
    d    adhereToTop;
    openInWorld.


Although this does not work at the moment due to issue
Spec MenuModel submenu not working

Reply | Threaded
Open this post in threaded view
|

Re: Fixed tool bar in pharo, similar to the one in Squeak

Offray
Thanks Nicolai. That is exactly what I was looking for.

Cheers,

Offray

El 05/03/15 a las 03:23, Nicolai Hess escribió:

> 2015-03-05 3:49 GMT+01:00 Offray Vladimir Luna Cárdenas <[hidden email]
> <mailto:[hidden email]>>:
>
>      Hi,
>
>      I would like to add a fixed tool bar in the upper side of the  word in
>      Pharo, similar to the one that is in Squeak. I think that having this kind
>      of fixed places with tools help newbies to find help and launch stuff. There
>      is any place where I can install or look for a functionality like this one?
>
>      Thanks,
>
>      Offray
>
>
> There is DockingBarMorph, for example:
>
> |d|
> "World deleteDockingBars."
> d:=
>       DockingBarMorph new.
>       World worldMenu items copy select:[:i| i hasSubMenu] thenDo:[:i|
>           d
>           add: i contents
>           icon: i icon
>           help: i contents
>           subMenu: i subMenu].
>       d    adhereToTop;
>       openInWorld.
>
>
> Although this does not work at the moment due to issue
> 14829 <https://pharo.fogbugz.com/default.asp?14829>
> Spec MenuModel submenu not working
>


Reply | Threaded
Open this post in threaded view
|

Re: Fixed tool bar in pharo, similar to the one in Squeak

stepharo
In reply to this post by Nicolai Hess
Thanks for the reminder.
I will put it on my list. Now finishing a contents browser. So that we can remove all the codeHolder hierarchy finally.
There is DockingBarMorph, for example:

|d|
"World deleteDockingBars."
d:=
    DockingBarMorph new.
    World worldMenu items copy select:[:i| i hasSubMenu] thenDo:[:i|
        d
        add: i contents
        icon: i icon
        help: i contents
        subMenu: i subMenu].
    d    adhereToTop;
    openInWorld.


Although this does not work at the moment due to issue
Spec MenuModel submenu not working


Reply | Threaded
Open this post in threaded view
|

Re: Fixed tool bar in pharo, similar to the one in Squeak

Offray
In reply to this post by Nicolai Hess
Hi,

I'm making some progress with DockingBarMorph, but I can't find how to
delete a particular bar and "World deleteDockingBars." deletes also the
windows taskbar. So there is a way to selective delete a docking bar or
if not to relaunch the only the windows taskbar at the bottom?

Thanks,

Offray

El 05/03/15 a las 03:23, Nicolai Hess escribió:

> 2015-03-05 3:49 GMT+01:00 Offray Vladimir Luna Cárdenas <[hidden email]
> <mailto:[hidden email]>>:
>
>      Hi,
>
>      I would like to add a fixed tool bar in the upper side of the  word in
>      Pharo, similar to the one that is in Squeak. I think that having this kind
>      of fixed places with tools help newbies to find help and launch stuff. There
>      is any place where I can install or look for a functionality like this one?
>
>      Thanks,
>
>      Offray
>
>
> There is DockingBarMorph, for example:
>
> |d|
> "World deleteDockingBars."
> d:=
>       DockingBarMorph new.
>       World worldMenu items copy select:[:i| i hasSubMenu] thenDo:[:i|
>           d
>           add: i contents
>           icon: i icon
>           help: i contents
>           subMenu: i subMenu].
>       d    adhereToTop;
>       openInWorld.
>
>
> Although this does not work at the moment due to issue
> 14829 <https://pharo.fogbugz.com/default.asp?14829>
> Spec MenuModel submenu not working
>


Reply | Threaded
Open this post in threaded view
|

Re: Fixed tool bar in pharo, similar to the one in Squeak

Peter Uhnak
I'm making some progress with DockingBarMorph, but I can't find how to delete a particular bar and "World deleteDockingBars." deletes also the windows taskbar. So there is a way to selective delete a docking bar or if not to relaunch the only the windows taskbar at the bottom?

If you still have the reference to it (i.e. d := DockingBarMorph new.), then you can simply delete it (d delete.)

If you do not have the reference, you can iterate over World dockingBars and find yours, and then delete it (e.g. World dockingBars first delete).

Also if you just want to delete it by hand, you can shift+middle mouse click on the docking bar to open halos and close it there.

Peter
Reply | Threaded
Open this post in threaded view
|

Re: Fixed tool bar in pharo, similar to the one in Squeak

Offray
Peter,

Thanks, that was what I was looking for.

Cheers,

Offray

El 07/03/15 a las 14:07, Peter Uhnák escribió:

>      I'm making some progress with DockingBarMorph, but I can't find how to
>      delete a particular bar and "World deleteDockingBars." deletes also the
>      windows taskbar. So there is a way to selective delete a docking bar or if
>      not to relaunch the only the windows taskbar at the bottom?
>
>
> If you still have the reference to it (i.e. d := DockingBarMorph new.), then you
> can simply delete it (d delete.)
>
> If you do not have the reference, you can iterate over World dockingBars and
> find yours, and then delete it (e.g. World dockingBars first delete).
>
> Also if you just want to delete it by hand, you can shift+middle mouse click on
> the docking bar to open halos and close it there.
>
> Peter
>