Icon in New list morph.
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
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) openInHand Make sure your button extent is bigger as the icon.
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 <nicolaihess@web.de> wrote:
2015-04-02 17:11 GMT+02:00 Yuriy Tymchuk <yuriy.tymchuk@me.com <mailto: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) openInHand
Make sure your button extent is bigger as the icon.
participants (2)
-
Nicolai Hess -
Yuriy Tymchuk