CGDevTools Forum

Welcome to the Official CGDevTools Support Community Forums.

Load Icons in a button

General discussion

by dslaporte » 31 Jul 2013 13:15

Hi,

I'd like to know how to load a simple image in my IWCGJQButton from a website. Example:

mywebsite.com/images/new.png

Which property should I use to load this image? Is it possible?

Thanks,

Daniel
dslaporte
 
Posts: 22
Joined: 25 Feb 2013 14:34

by Alexander Bulei » 31 Jul 2013 13:56

Hi,

Use PrimaryPicture or SecondaryPicture (right side icon):

delphi code
JQButtonOptions.Icons.Primary.Url:= 'http://www.mywebsite.com/images/new.png'


Best Regards.
Group: Developers | Support Team

  • info [at] cgdevtools.com - General information
  • sales [at] cgdevtools.com - Sales department
  • support [at] cgdevtools.com - Product and Technical Support
User avatar
Alexander Bulei
Site Admin
 
Posts: 3637
Joined: 15 May 2012 08:52
Location: Mealhada, Portugal

by dslaporte » 02 Aug 2013 15:03

Hi,

Thanks, it works!! I have another doubt about the icons. I've tried a custom icon with 16x16 px in a button but It hasn't been displayed aligned like the images from jQuery. Is there any property to set this kind of alignment or something to display it better?
dslaporte
 
Posts: 22
Joined: 25 Feb 2013 14:34

by Alexander Bulei » 02 Aug 2013 16:40

Hi,

What do you mean with

It hasn't been displayed aligned like the images from jQuery


Are you sure that the custom icon is 16x16 ?

Can you attach the screenshot?

Best Regards.
Group: Developers | Support Team

  • info [at] cgdevtools.com - General information
  • sales [at] cgdevtools.com - Sales department
  • support [at] cgdevtools.com - Product and Technical Support
User avatar
Alexander Bulei
Site Admin
 
Posts: 3637
Joined: 15 May 2012 08:52
Location: Mealhada, Portugal

by dslaporte » 02 Aug 2013 18:42

Hi,

Please ignore my message, I was wrong. The problem was the background.

Thanks again!

Daniel
dslaporte
 
Posts: 22
Joined: 25 Feb 2013 14:34


Return to General

cron

Who is online

Users browsing this forum: No registered users and 17 guests

Contact Us.