Page 1 of 1

Images on buttons

PostPosted: 23 Sep 2015 09:28
by etwoss
Hi

Cant seem to find if its possible to show an image on a button.
I have a ImageList property (Images) but the only place i can select an ImageIndex is in primatyPicture, but if i set it its not shown.

Eric

Re: Images on buttons

PostPosted: 23 Sep 2015 10:28
by assapan
Have you tried the url ?
JQButtonOptions.Icons.PrimaryPicture.Url := '32x32/view.png';

I use it to set some tag and with a class helper i can select different image depending of select theme
ex: JQButtonOptions.Icons.PrimaryPicture.Url = '32x32/$loupe'
then the helper will convert the url to JQButtonOptions.Icons.PrimaryPicture.Url = '32x32/q/view.png' where q is the current set of images to use

Re: Images on buttons

PostPosted: 23 Sep 2015 10:35
by etwoss
Hi
Yes that works, thanks

Eric