For Programmers: Free Programming Magazines  


Home > Archive > Tcl > May 2007 > Compound image in Buttons alignment









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Compound image in Buttons alignment
Stephan Kuhagen

2007-05-26, 8:07 am

Hello

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?

TIA, regards
Stephan

Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com