Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Image in a box's tooltip (Read 2479 times)
Fyx
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 3
Joined: May 28th, 2008
Image in a box's tooltip
Jun 9th, 2008 at 9:54pm
Print Post  
Hello

Finaly I try to insert au picture in a box's tooltip.

But my picture isn't load by the tooltip, I've juste the icon of a broken picture (like http://www.sbeul.com/themes/blackjuice/images/broken_link.gif )


Code
Select All
String picture= "<html><img src=\"" + pd.getMainWindow().getImageDir().getAbsolutePath() + File.separator + type + ".jpg\"></html>";
            b_create.setToolTip(picture); 



Sum up it's <html><img src="C://dir/dir/mypicture.jpg"></html>

How can I do to show my picture in the tooltip ?

Regards
Fyx
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Image in a box's tooltip
Reply #1 - Jun 10th, 2008 at 5:49am
Print Post  
Hi,

Add a "file:" prefix in front of the src value, for example:

node.setToolTip("<html><img src=\"file:C:/Images/1.jpg\"></html>");

I hope that helps,
Stoyan
  
Back to top
 
IP Logged
 
Fyx
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 3
Joined: May 28th, 2008
Re: Image in a box's tooltip
Reply #2 - Jun 10th, 2008 at 7:55am
Print Post  
Hi,

Thanks a lot that is perfect !!!

Fyx
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint