Open Enzo-Demeulenaere opened 11 months ago
something like that ?
example_toButtonWithTextAndIconVertical
| but space |
but := ToButton new padding: (BlInsets all: 4); beVertical.
but label: (ToLabel text: 'Button').
but iconImage: (BlElement new
size: 60 @ 20;
background: (Color blue alpha: 0.2);
yourself).
but layout cellSpacing: 5.
but whenClickedDo: [ :ann | but icon background: Color random ].
space := BlSpace new.
space root addChild: but.
space show
if you want to fully manage the look, set the skin to nil.
but := ToButton new padding: (BlInsets all: 4); beVertical; withSkin: nil.```
Oh that's exactly what I needed and I didn't even see this example :/
Thanks a lot
Hello, I'd like to have a button with an image and a text below and I tried something like this:
to have something similar to this:
but with the ability to click on the purple. I know I could make my purple element as a button but I'd have 2 buttons available to click and I wanted to know If there's a possibility to make one and only button.
Thanks a lot