On Wednesday 13 April 2016 16:33:42 Krzysztof wrote:
> Great. So what is a properly getcell() usage for correcting position?
> I chanded demo to use 12x12 icon and with getcell() result is even
> worse than with getglyph() (see screen mse_fa1.png and mse_fa2.png,
> they looks like positioned at top-left). But when changing TImageList
> to fixed size 12x12 (not assigning from bitmap size) and adding
> padding:
>     f.left := 1;
>     f.top := 1;
>     f.right := 12;
>     f.bottom := 12;
>
The directory glyphs are placed on the baseline of the font so probably the 
simplest is to cut the baseline:
"
    f.left := 1;
    f.top := 0;
    f.right := 0;
    f.bottom := -2;
"
or
"
glyphs.getcell(b.bitmap,ACode,makeframe(1,0,0,-2),AColor);
or
"
glyphs.getcell(b.bitmap,ACode,mf(1,0,0,-2),AColor);
"

Martin

------------------------------------------------------------------------------
Find and fix application performance issues faster with Applications Manager
Applications Manager provides deep performance insights into multiple tiers of
your business applications. It resolves application problems quickly and
reduces your MTTR. Get your free trial!
https://ad.doubleclick.net/ddm/clk/302982198;130105516;z
_______________________________________________
mseide-msegui-talk mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk

Reply via email to