On 10 Apr 2015, at 23:28, Nicolai Hess <nicolaihess@web.de> wrote:2015-04-02 17:11 GMT+02:00 Yuriy Tymchuk <yuriy.tymchuk@me.com>: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) openInHandMake sure your button extent is bigger as the icon.