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] TDirDropdownEdit - how to make button flat and transparent?
On Tuesday 12 April 2016 23:52:06 Krzysztof wrote: > 2016-04-11 8:37 GMT+02:00 Martin Schreiber: > > 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? No. TImageList has a single bitmap for all items. I'll try to reproduce. 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-11 8:37 GMT+02:00 Martin Schreiber: > 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
Re: [MSEide-MSEgui-talk] TDirDropdownEdit - how to make button flat and transparent?
> Or better set tdirdropdownedit.frame.button.color to cl_foreground. Ok thanks. BTW: How can I change dir icon in dropdown tree? Is it also in stockdata.glyph or somewhere? Can I somehow replace them? -- 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! http://pubads.g.doubleclick.net/ gampad/clk?id=1444514301=/ca-pub-7940484522588532 ___ 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?
On Sunday 10 April 2016 09:30:04 Martin Schreiber wrote: > On Saturday 09 April 2016 23:39:17 Krzysztof wrote: > > Hi Martin, > > > > I want to make dropdown button flat, transparent and with custom icon. > > I changed icon, made button flat but can't make it transparent (see > > attached screen). Changing tdirdropdownedit.frame.button.color := > > cl_transparent has no effect, it is still gray. > > That is the widget colour. Please set TWidget.Color to cl_foreground. Or better set tdirdropdownedit.frame.button.color to cl_foreground. 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! http://pubads.g.doubleclick.net/ gampad/clk?id=1444514301=/ca-pub-7940484522588532 ___ 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?
> On Saturday 09 April 2016 23:39:17 Krzysztof wrote: >> Hi Martin, >> >> I want to make dropdown button flat, transparent and with custom icon. >> I changed icon, made button flat but can't make it transparent (see >> attached screen). Changing tdirdropdownedit.frame.button.color := >> cl_transparent has no effect, it is still gray. >> > That is the widget colour. Please set TWidget.Color to cl_foreground. The > colour of the client area can be set by TWidget.Frame.ColorClient. Ahh indeed. 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! http://pubads.g.doubleclick.net/ gampad/clk?id=1444514301=/ca-pub-7940484522588532 ___ 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?
On Saturday 09 April 2016 23:39:17 Krzysztof wrote: > Hi Martin, > > I want to make dropdown button flat, transparent and with custom icon. > I changed icon, made button flat but can't make it transparent (see > attached screen). Changing tdirdropdownedit.frame.button.color := > cl_transparent has no effect, it is still gray. > That is the widget colour. Please set TWidget.Color to cl_foreground. The colour of the client area can be set by TWidget.Frame.ColorClient. 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! http://pubads.g.doubleclick.net/ gampad/clk?id=1444514301=/ca-pub-7940484522588532 ___ mseide-msegui-talk mailing list mseide-msegui-talk@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk