On Thursday 28 April 2016 10:07:17 Martin Schreiber wrote:
> On Thursday 28 April 2016 00:02:37 Krzysztof wrote:
> > Hi Martin,
> >
> > I have created spinner from this site:
> > http://preloaders.net/en/search/spinner . I need to change color
> > dynamically at runtime by changing TIcon.Colorglyph but it doesn't
> > work. I see that it work with your embedded stock glyphs (e.g. grids
> > sort indicator). But in my case it is always black. I'm not sure where
> > is the trick, is it in bitmap format or imagelist option? Here is what
> > I do:
>
> Ticon.Colorglyph is for monochrome bitmaps only - the stock glyphs are
> monochrome. Combining a monochrome bitmap with a gray mask is not supported
> currently.

git master abaa4c0fc88766c60e636a80faff33647467f2c5 supports it. Please use 
cl_1 (means select foreground colour) in get*glyph() color parameter.

[...]

> > . This issue is
> > cosmetic and it is realy fine if spinner will be always black but I'm
> > curious guy :). Tried spinner generated from font awesome with rotate
> > option which you added but it doesn't look good - rotate animation is
> > fine but pixels have offset for each angle (frame) so animation is
> > "shaking"
>
> Probably because of not exact centring caused by anti-aliased pixels.
> Please play with padding. I'll check if it is possible to ad a fontmetrics
> based version of the function.
>
git master abaa4c0fc88766c60e636a80faff33647467f2c5 has 
tftglyphs.getcellglyph() with rotation parameter. The rotation centre is the 
centre of the glyph cell (X-advance / 2, fontheight / 2).

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