andersa@ellenshoej.dk Posted June 21, 2011 Posted June 21, 2011 Using UniToolbar with attached TImagelist, 16x16 pixels, 32bit PNG images. (VCL) When ShowCaptions := True, buttons autosize horizontally in VCL mode and ButtonWidth has no effect. (VCL+WEB) When ShowCaptions := True, ButtonHeight has no effect. Happens in both VCL and Web mode. (WEB) When ShowCaptions := True, there is a large space between picture and caption in web mode. (See attached picture.) (WEB) There seems to be some issue with transparency. There is a purple edge around transparent PNGs. (See attached picture.) (Wish) is it possible for caption to be positioned to the right of the image instead of below it, when ShowCaptions is True?
andersa@ellenshoej.dk Posted June 22, 2011 Author Posted June 22, 2011 For now I am using an ordinary panel with buttons and html in the caption to achieve the desired effect, but it only works in web mode. Example: UniButton1.Caption := '<img src="files/im-kick-user.png" alt="Slet" style="vertical-align: middle;" /> Slet bruger';
Administrators Farshad Mohajeri Posted June 22, 2011 Administrators Posted June 22, 2011 Using UniToolbar with attached TImagelist, 16x16 pixels, 32bit PNG images. (VCL) When ShowCaptions := True, buttons autosize horizontally in VCL mode and ButtonWidth has no effect. Yes, it is by design and same in Delphi TToolBar. (VCL+WEB) When ShowCaptions := True, ButtonHeight has no effect. Happens in both VCL and Web mode. Again, by design. (WEB) When ShowCaptions := True, there is a large space between picture and caption in web mode. (See attached picture.) If you use large buttons the you must try using larger images. Ext JS has 3 standard scales. 16x16 , 24 x 24 and 32 x 32. When button is large then I need to use 32x32 scale to allow big images to display. I will try to see if there is a solution for this. Logged #1060 (WEB) There seems to be some issue with transparency. There is a purple edge around transparent PNGs. (See attached picture.) Can you send your sample PNG files? (Wish) is it possible for caption to be positioned to the right of the image instead of below it, when ShowCaptions is True? Logged #1061
andersa@ellenshoej.dk Posted June 23, 2011 Author Posted June 23, 2011 Pictures attached. Thanks for your help. transparency.zip
Recommended Posts