2016-08-08 9:55 GMT+02:00 Martin Schreiber <[email protected]>:
> If you like you can add bmo_graymask or bmo_colormask to
> lib/common/dialogs/msefiledialogres.pas images.options for a test.
Ahh, already had bmo_graymask in that file. Removing bmo_graymask
brought back icons in dialogs. I probably tested something because I'm
overriding dir icon for icon from font awesome package in my project
and adding bmo_graymask at runtime:
// Override stock icons
b := tmaskedbitmap.create(bmk_rgb);
try
stockobjects.glyphs.options := stockobjects.glyphs.options -
[bmo_monochrome] +
[bmo_graymask];
filedialogres.images.options := filedialogres.images.options+[bmo_graymask];
b.masked := True;
b.graymask := True;
imlstDyn12.getimage(iICO12_FOLDER, b);
filedialogres.images.setimage(ord(fdi_dir), b, [al_xcentered,al_ycentered]);
imlstDyn12.getimage(iICO12_FOLDER_OPEN, b);
filedialogres.images.setimage(ord(fdi_diropen), b,
[al_xcentered,al_ycentered]);
finally
b.Free;
end;
Commented line:
// filedialogres.images.options := filedialogres.images.options+[bmo_graymask];
and icons are back in dialogs in my app. Removed also bmo_graymask
from all image lists in my project and all font awesome icons are back
too but they looks awfully without that option (no antialias, no
transparency)
------------------------------------------------------------------------------
_______________________________________________
mseide-msegui-talk mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk