2015-04-02 17:11 GMT+02:00 Yuriy Tymchuk <[email protected]>:

> Hi,
>
> can someone help me to figure out how the icon in a NewList is working?
> Because when when you add an IconicButton, you have a border showing up on
> hover and background becoming darker on click. Now when I create a
> standalone IconicButton I don’t get this actions… Does anyone have any idea?
>
> Uko
>


This works for me and it shows the border on hover:
( IconicButton new
                        target: Workspace new;
                        actionSelector: #open;
                        labelGraphic: (Smalltalk ui icons iconNamed:
#workspaceIcon );
                        color: Color transparent;
                        extent: 20 @ 20;
                        helpText: 'Open Workspace';
                        borderWidth: 0) openInHand

Make sure your button extent is bigger as the icon.

Reply via email to