Re: HList with image and text - alignment problem
- From: "Jack" <goodcall1@xxxxxxxxxxx>
- Date: Wed, 26 Aug 2009 20:58:46 GMT
Sorry for the top post.
The best I can do is anchor the text to the SE of the mage -textanchor=>'se', -anchor=>'w'.
A workaround might be to create a composite image/text using Tk::Compound and then specify only the image in your item.
Jack
"Martin Herrmann" <mrh1@xxxxxxx> wrote in message news:8d9e27fb-571e-4f20-bafe-8060ba338ce9@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
On 21 Aug., 20:13, Martin Herrmann <m...@xxxxxxx> wrote:
Hi,
I have a Hlist with some cells in imagetext style:
my $fileS = $picLB->ItemStyle('imagetext', -textanchor => 's', -
anchor=>'w');
$picLB->itemCreate($dpic, $picLB->{filecol}, -itemtype => "imagetext",
-image => $mapivi_icons{$star_icon}, -text => $text, -style =>
$fileS);
This works and the image is placed above the text and the text is
aligned to the left, but the picture is centered inside the cell. How
can I align the picture to the left like the text?
Any ideas?
Regards
Martin
Hmm, either nobody understands my question or nobody has the
answer ...
I try to rephrase the problem:
I managed successfully to display a graphic above a text inside a cell
(which is a Tk::DItem, a Tix Display Item) of an HList.
Additionally I managed to align the text to the left side.
Now I would like to align the graphic also to the left side (but still
above the text).
Maybe this Mapivi screenshot will help:
https://sourceforge.net/apps/mediawiki/mapivi/index.php?title=Main_Page,
see "picture rating visualized with five stars:".
I would like the (orange and gray) stars to be aligned to the left.
Regards
Martin
.
- Follow-Ups:
- Re: HList with image and text - alignment problem
- From: Martin Herrmann
- Re: HList with image and text - alignment problem
- References:
- HList with image and text - alignment problem
- From: Martin Herrmann
- Re: HList with image and text - alignment problem
- From: Martin Herrmann
- HList with image and text - alignment problem
- Prev by Date: AIX problem?
- Next by Date: Re: Scrolled Frame in Tkx
- Previous by thread: Re: HList with image and text - alignment problem
- Next by thread: Re: HList with image and text - alignment problem
- Index(es):
Relevant Pages
|