For a project I have to create a custom widget that pops up a special menu.
The Button for the menu should contain a dynamic text on the left side and
an image on the right. I thought, I could use a simple button, but although
I set "-compound right" the image stays only on the right side of the text,
but not at the right side of the button. If the text gets shorter, the
image moves inside of the button.
What I want instead is the image always on the right side, and the text
dynamic centered on the rest of the button. If the text gets larger that
the button size, I use a tooltip to show everything.
Is it possible to have the image tied to one side of a button, or do I have
to create my own button?