-
I want to build some buttons that look like the NSPanel project. This requires both an icon (text not an image) and the label to be specifically locale on the button (not centered). I order to do this I needed three different objects the button, a text label, and a dummy object behind all of it the colors the button.
Is there a better way to do this? I can move the icon (text) but not the text on a button so I need to use a label. But if the label is in front of the button I can't press the button. So I need to make the button transparent and put the label behind it. Then I need the dummy object to color it all. |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 1 reply
-
Can you try setting the |
Beta Was this translation helpful? Give feedback.
-
Nice! That worked. I'm just getting started with the openHASP project and so far it is working really well! |
Beta Was this translation helpful? Give feedback.
-
This is what I ended up doing.
|
Beta Was this translation helpful? Give feedback.
-
is it possible to use this design but with an internal gpio, ("groupid":3) where whe normally use btn? |
Beta Was this translation helpful? Give feedback.
Can you try setting the
click
property of the label to0
so that it won't catch any events. Then the underlying button should still react to the presses.