Thanks, I forgot about this already because at some point it started to work by 
itself. I guess the problem was in extent.

Uko



> On 10 Apr 2015, at 23:28, Nicolai Hess <[email protected]> wrote:
> 
> 
> 
> 2015-04-02 17:11 GMT+02:00 Yuriy Tymchuk <[email protected] 
> <mailto:[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