Toolbar buttons

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

Toolbar buttons

Ian Bartholomew-12
A couple of minor niggles with Toolbar buttons

1) When manually adding buttons to a toolbar the first works but the second
causes a walkback

self addItem: ToolbarSystemButton print
self addItem: ToolbarSystemButton find

You have to use the following

self addItem: ToolbarButton find

For the WishList - It would be nice if the Toolbar's #items aspect menu
could list all the available System buttons to avoid the need for above
evaluations.

2) The bitmap offsets for ToolbarButton class >>find and findNext are
transposed

--
Ian
Due to spamming the reply-to address may only be valid for the next few
days.  Use it to mail me _now_ if you want a longer term contact address.


Reply | Threaded
Open this post in threaded view
|

Re: Toolbar buttons

Blair McGlashan
"Ian Bartholomew" <[hidden email]> wrote in message
news:rhcH8.1056$xU5.130337@wards...
> A couple of minor niggles with Toolbar buttons
>
> 1) When manually adding buttons to a toolbar the first works but the
second
> causes a walkback
>
> self addItem: ToolbarSystemButton print
> self addItem: ToolbarSystemButton find
>
> You have to use the following
>
> self addItem: ToolbarButton find

ToolbarButton employs the Factory pattern, that is you should really have
written:

    self addItem: ToolbarButton print.
    self assItem: ToolbarButton find.

> For the WishList - It would be nice if the Toolbar's #items aspect menu
> could list all the available System buttons to avoid the need for above
> evaluations.

Good idea, #952.

>
> 2) The bitmap offsets for ToolbarButton class >>find and findNext are
> transposed

Thanks, #953.

Regards

Blair