Home   Help Search Login Register  

Author Topic: image on button control  (Read 2373 times)

0 Members and 2 Guests are viewing this topic.

Offline alimag

  • Contributing Member
  • **
  • I'm a llama!
image on button control
« on: 30 Dec 2009, 15:31:17 »
Hi,

Is it possible to display an image/icon on a control button?

If yes, I would greatly appreciate a basic working sample.

Thanks in advance

Cheers

Offline jones

  • Members
  • *
Re: image on button control
« Reply #1 on: 30 Dec 2009, 20:59:31 »
Just define the image seperately and add it on top of the button, or make the button clear and use an image as a background. I do not think it is possible to actually define the image within the button class. I could be wrong i haven't tried it. But I have made dialogs with images as buttons by using the image as a background and placing invisible buttons on top of the image.

I will provide a quick example, not sure if it will meet your needs or not.

Offline alimag

  • Contributing Member
  • **
  • I'm a llama!
Re: image on button control
« Reply #2 on: 30 Dec 2009, 22:38:55 »
Hi,

Thank you very much for the quick answer.

You might be right about defining the image within the button class.

Very nice workaround and it does the job. I'll take it as a start.

Thanks again

Cheers