Re: [MSEide-MSEgui-talk] FontAwesome icons - size regression
On Monday 11 April 2016 19:06:53 Martin Schreiber wrote: > On Monday 11 April 2016 14:09:18 Krzysztof wrote: > > So what can I do for now? > > I'll extend TFTGlyphs for returning a bitmap with the character cell size > where all glyphs have the same size. Git master fbca2a8df42c88de193c4a2e267d98ec9f6aabd3 has: " function getglyph(const abitmap: tmaskedbitmap; const achar: card32; const acolor: colorty = cl_text): boolean; //empty bitmap in case of error, retruns true if ok function getglyph(const abitmap: tmaskedbitmap; const achar: card32; const aframe: framety; //padding const acolor: colorty = cl_text): boolean; //empty bitmap in case of error, retruns true if ok function getcell(const abitmap: tmaskedbitmap; const achar: card32; const acolor: colorty = cl_text): boolean; //empty bitmap in case of error, retruns true if ok function getcell(const abitmap: tmaskedbitmap; const achar: card32; const aframe: framety; //padding const acolor: colorty = cl_text): boolean; //empty bitmap in case of error, retruns true if ok " getcell() returns a bitmap with the height of the font where the glyph is placed by fontmetrics. > The problem is that centring an odd distance in an even distance can not be > done precise. Maybe the rounding is not done equal everywhere, I'll check > that. > I assume that the difference is because there are two centre roundings, one by placing the glyph in the imagelist and one by drawing the imagelist item in the button rect. I did not find different behaviour between painting and imagelist centring. 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 mseide-msegui-talk@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk
Re: [MSEide-MSEgui-talk] TDirDropdownEdit - how to make button flat and transparent?
2016-04-13 13:21 GMT+02:00 Martin Schreiber: > If the destination bitmap has no mask the source mask is used to draw the > image on the destination bitmap, the masked pixels are untouched -> random. > > " > var > b: tmaskedbitmap; > begin > b:= tmaskedbitmap.create(bmk_rgb); > try > b.masked:= true; > imli1.getimage(0,b); > filedialogres.images.setimage(ord(fdi_dir),b,[al_xcentered,al_ycentered]); > finally > b.destroy(); > end; > end; > " Thanks! -- 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
Re: [MSEide-MSEgui-talk] FontAwesome icons - size regression
Could you also add "rotate" option? I think that then we can create set of images and create sprite animation for spinners. Look at "spinner" section https://fortawesome.github.io/Font-Awesome/icons/ BTW: Is there any component or example for sprite animation? In mseuniverse found only blendanimation example. I guess that I can just drop TTimer and increment imagenr of any TImageList widget -- 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
Re: [MSEide-MSEgui-talk] FontAwesome icons - size regression
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 mseide-msegui-talk@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk
Re: [MSEide-MSEgui-talk] FontAwesome icons - size regression
2016-04-13 18:08 GMT+02:00 Martin Schreiber: > f.left := 1; > f.top := 0; > f.right := 0; > f.bottom := -2; Indeed that is better. Result same (or even better) and bitmap smaller. Thanks -- 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
[MSEide-MSEgui-talk] SQLDB - can't find bufdataset_parser
Hi Martin, Why can't use sqldb unit? Get error: "bufdataset.pas(24,26) Fatal: Cannot find bufdataset_parser used by BufDataset. Make sure all ppu files of a package are in its output directory. ppu in wrong directory=/usr/lib/fpc/2.6.4/units/x86_64-linux/fcl-db/bufdataset_parser.ppu.." sqldb is FPC package, not Lazarus. Checked with empty console project and everything is fine. Does MSE force to use own db units? I already have a lot of units with TSqlQuery and TSQLite3Connection and such migration is quite time consuming. Regards -- 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