in reply to Re^2: Placement of image with Tk::Compound and Tk::Menu
in thread Placement of image with Tk::Compound and Tk::Menu
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.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: Placement of image with Tk::Compound and Tk::Menu
by ldln (Pilgrim) on Jul 05, 2006 at 11:57 UTC |