I seem to have found a way to make everything align correctly.
Let's see if a bug won't come to bite me in the ass later.
My solution probably fits in the "ugly hack is ugly" category though:
I made a very skinny (1px wide) and transparent SVG icon that is now
included in all other buttons and labels.
Why would I do that? Well, let's see the documentation:
Command-Line Name: -width
Specifies a desired width for the label. If an image or bitmap is
being displayed in the label then the value is in screen units (i.e.
any of the forms acceptable to Tk_GetPixels); for text it is in
characters. If this option is not specified, the label's desired width
is computed from the size of the image or bitmap or text being
displayed in it.
Tk_GetPixels:
<none>
The number specifies a distance in pixels.
c
The number specifies a distance in centimeters on the screen.
i
The number specifies a distance in inches on the screen.
m
The number specifies a distance in millimeters on the screen.
p
The number specifies a distance in printer's points (1/72 inch)
on the screen.
So if my understanding is correct, there is no way to tell Tk that I
want to use pixels as the measuring reference. And if I don't specify
anything, Tk won't really interpret <none> as none and interpret the
distance in pixels. Tk will rather assume whatever it wants to, which
will not be pixels if no image is present.
So if my understanding is correct, the only way to force measuring in
pixels is to insert an image, even if it's not really wanted there.
Or am I wrong? I would love to be wrong.
--
Luc
--- SoupGate-Win32 v1.05
* Origin: fsxNet Usenet Gateway (21:1/5)