cristianotestai Posted November 20, 2011 Share Posted November 20, 2011 Hi Farshad, I have a UniLabel with the caption: <a href="mailto:cristiano.testai@gmail.com"> cristiano.testai@gmail.com </ a> to be a link to the email, and is ok. When running UniLabel always get a blue font and underlined. I want to change the font color and remove the underlined, but I tried the events OnAfterrender and OnMouseOver but does not work. I saw that if the UniLabel have a reference in the caption as it is to be a link and the property textConversion = txtHTML happens this issue. Thanks. Link to comment Share on other sites More sharing options...
zilav Posted November 21, 2011 Share Posted November 21, 2011 A green link for you here <a href="#" style="text-decoration: none; color: #00FF00">test test test</a> Link to comment Share on other sites More sharing options...
cristianotestai Posted November 22, 2011 Author Share Posted November 22, 2011 A green link for you here <a href="#" style="text-decoration: none; color: #00FF00">test test test</a> Hi, Thanks zilav.. Now, how to set the caption of UniLabel in JS onMouseOver event? I tried ...MainModule.Unilabel.setText('<a href="#" style="text-decoration: none; color: #00FF00"> test test test </ a>'), but does not work. Thanks. Link to comment Share on other sites More sharing options...
zilav Posted November 22, 2011 Share Posted November 22, 2011 Now, how to set the caption of UniLabel in JS onMouseOver event? You want to change the style or label's text on mouse over? Well, changing the text itself on mouse hovering is... unnatural, so I assume you want to change some style properties: <a onmouseover="this.style.color='#FF0000';" onmouseout="this.style.color='#000000';">test test test</a> Link to comment Share on other sites More sharing options...
Administrators Farshad Mohajeri Posted November 22, 2011 Administrators Share Posted November 22, 2011 Hi, Thanks zilav.. Now, how to set the caption of UniLabel in JS onMouseOver event? I tried ...MainModule.Unilabel.setText(' test test test a>'), but does not work. Thanks. MainModule? Link to comment Share on other sites More sharing options...
cristianotestai Posted November 22, 2011 Author Share Posted November 22, 2011 Hi Farshad, i'm sorry.. I wrote mainmodule, but the truth is mainform.. Hi zilav, I will test.. again, thanks.. Link to comment Share on other sites More sharing options...
cristianotestai Posted November 22, 2011 Author Share Posted November 22, 2011 You want to change the style or label's text on mouse over? Well, changing the text itself on mouse hovering is... unnatural, so I assume you want to change some style properties: <a onmouseover="this.style.color='#FF0000';" onmouseout="this.style.color='#000000';">test test test</a> zilav, yes .. is the style i need to change, in this case is the underline. How can I include the "onmouseover" and "onmouseout" to the code below? <a href="mailto:falecom@modenadesign.com.br" style="text-decoration: none; color: #414141"> falecom@modenadesign.com.br </ a> thanks. Link to comment Share on other sites More sharing options...
zilav Posted November 23, 2011 Share Posted November 23, 2011 zilav, yes .. is the style i need to change, in this case is the underline. How can I include the "onmouseover" and "onmouseout" to the code below? <a href="mailto:falecom@modenadesign.com.br" style="text-decoration: none; color: #414141"> falecom@modenadesign.com.br </ a> thanks. Ok here is the full list of all available "this.style" properties to alter with javascript http://www.comptechdoc.org/independent/web/cgi/javamanual/javastyle.html Link to comment Share on other sites More sharing options...
ttamturk Posted May 14, 2012 Share Posted May 14, 2012 Hi Farshad, I tried this code in uniLabel.Caption (txtHTML mode) <a onmouseover="this.style.textDecoration='underline';this.style.color='#0080FF';" onmouseout="this.style.textDecoration='none';this.style.color='#000000';">Geri bildirimde bulun...</a> Everything is fine. Both color and underline is changing on mouse over.. But because it's written in Caption, not readable on design time really. I can apply changing Form.OnCreate may be, but this time, I have to change all nail characters with #39 which is not efficient. Is there a quick and visible way of this. (Some extra htlmText property may be, supporting multiline input editor would be nice); Thanks Link to comment Share on other sites More sharing options...
Administrators Farshad Mohajeri Posted May 21, 2012 Administrators Share Posted May 21, 2012 Hi Farshad, I tried this code in uniLabel.Caption (txtHTML mode) Geri bildirimde bulun... Everything is fine. Both color and underline is changing on mouse over.. But because it's written in Caption, not readable on design time really. I can apply changing Form.OnCreate may be, but this time, I have to change all nail characters with #39 which is not efficient. Is there a quick and visible way of this. (Some extra htlmText property may be, supporting multiline input editor would be nice); Thanks Logged #1351 Link to comment Share on other sites More sharing options...
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now