2016-04-11 8:37 GMT+02:00 Martin Schreiber <mse00...@gmail.com>:
> They are in lib/common/dialogs/msefiledialogres.pas.
> On runtime:
> "
>  filedialogres.images.setimage(ord(fdi_dir),newbitmap,
>                                [al_xcentered,al_ycentered]);

Why result has weird artifacts (see attached screen)? Normaly this
icon is drawed correctly and common used on many widgets (transparent,
antialysed, everything ok). Source TImageList is 12x12 with options
+[bmo_graymask]. Override code:

  // Override MSE icons
  b := tbitmapcomp.create(nil);
  try
    imlstDyn12.getimage(iICO12_FOLDER, b.bitmap);
    filedialogres.images.setimage(ord(fdi_dir), b.bitmap,
[al_xcentered,al_ycentered]);
  finally
    b.Free;
  end;

There is different artifact if I don't call b.Free. Is it becomes owner?
------------------------------------------------------------------------------
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
mseide-msegui-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk

Reply via email to