Make entire box hyperlink
Auteur : Steve B.
Visité 1768,
Followers 1,
Partagé 0
Hi
I have created a text box and i want the user to be able to click anywhere in the box to hyperlink, can this be done? At the moment it is just the text that can be clicked on. Also the I cannot get the text to remain white when it is hyperlinking?
Thanks in advance
Posté le
Steve, you set the text colour of an active, mouse over or visited link in step 2 Template, Text, Field and Button Style.
It is not possible to set the whole cell as the hyperlink, so with a similar need in the past, I laid out the cell as I required then did a preview and print screen, I then used a simple editor like Irfanview to view the print screen and crop out the cell in question.
Back in WX5 I placed this cropped image in the cell and made it the hyperlink with the advantage that if was not affected by link colours and filled the cell.
Would that work for you?
Hi Steve,
You can of course select the complete text and put a link on it in the ususal way, but then the complete text is styled as a hyperlink and I presume that's not what you want.
But onlly if you really, really want to, there's another way, but its fiddly and ugly
In stead of using a text object, use a HTML object for your text and wrap a link around it...
Looks like
<a href="https://www.distinationdomain.com/destinationpage.htmll" style="text-decoration:none">
<div style="text-align:left; color: black">
Put your text here. You can use <br /> and <p /> to put a linebreak or a new paragraph in your text and you can use all the html markup you like...
</div>
</a>
Did I tell you it is ugly?
Robert