CGDevTools Forum

Welcome to the Official CGDevTools Support Community Forums.

Images on buttons

by etwoss » 23 Sep 2015 09:28

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
etwoss
 
Posts: 1205
Joined: 06 Feb 2014 08:58

by assapan » 23 Sep 2015 10:28

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
Want to visit Ardeche http://leclosdelarc.fr/index.php
The Pont d’Arc Cavern http://en.cavernedupontdarc.fr
Image
User avatar
assapan
 
Posts: 600
Joined: 16 Dec 2013 12:04
Location: France

by etwoss » 23 Sep 2015 10:35

Hi
Yes that works, thanks

Eric
etwoss
 
Posts: 1205
Joined: 06 Feb 2014 08:58


Return to JQButton & JQButtonSet

Who is online

Users browsing this forum: No registered users and 2 guests

Contact Us.