Warning: include(/var/www/html/forum/Sources/../../../includes/depot_files/OFPEC_get_header_image.inc.php): failed to open stream: No such file or directory in /var/www/html/forum/Sources/Load.php(2272) : eval()'d code on line 146

Warning: include(): Failed opening '/var/www/html/forum/Sources/../../../includes/depot_files/OFPEC_get_header_image.inc.php' for inclusion (include_path='.:/usr/local/lib/php') in /var/www/html/forum/Sources/Load.php(2272) : eval()'d code on line 146

Notice: Undefined index: OFPEC in /var/www/html/forum/Sources/Load.php(2272) : eval()'d code on line 152

Notice: Trying to access array offset on value of type null in /var/www/html/forum/Sources/Load.php(2272) : eval()'d code on line 152

Notice: Trying to access array offset on value of type null in /var/www/html/forum/Sources/Load.php(2272) : eval()'d code on line 152
    Home   Help Login Register  

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

0 Members and 1 Guest 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