Ok, understood. If I change items to:
my $menuitem = [ [command => 'Open', -image => $compound], [comman +d => 'close'] ];
Then the left edge of the ? lines up with the left edge of close - that is, there is only as much space to the left of either entry as I would expect. Indeed, if I add an edit menu with two plain entries:
$menuitem = [ [command => 'Open'], [command => 'close'] ]; $menubar->cascade(-label => 'Edit', -tearoff => 0, -menuitems => $ +menuitem);
I see the same amount of space to the left of the entries there.
However, I can see your issue - the space to the left is excessive and other programs are capable of putting an icon there. Problem understood. :) No answer yet, but I'll look into it later tonight if you haven't an answer before then.
In reply to Re^3: Placement of image with Tk::Compound and Tk::Menu
by GrandFather
in thread Placement of image with Tk::Compound and Tk::Menu
by ldln
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |