Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi all,
I often made a change of text box color on clik. But i'am looking for change font style on clik. I want bold font when i clik on text box. How to achieve this?
Regards
Hi,
try With a macro, use Actio-> run macro->Bold from action on TX01 object
Sub Bold
set obj = ActiveDocument.GetSheetObject("TX01")
font = obj.GetFrameDef.Font
font.Bold = true
obj.SetFont font
end sub
Thanks, but i'am looking for a simpler way, as for color with calculated color.
I would create a variable and add an action to a box. Then create two identical text boxes, one with bold text and one without. Then add a conditional show condition to hide when the variable contains a specific value.
For example:
This way when a user clicks on one box it will set variable to 1 and hide that box and reveal the box with bold text. When user clicks on box with bold text, it will set the variable to 0, hide the box with bold text and reveal the box with normal text.
Mikhail B.
Thanks Mikhaïl, it's a good workaround but obliged to duplicate text box objects.