Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi All,
I have a text object of which I would like that the font colour will be changed if being clicked on - but struggling with this.
In the text object properties I have the following added:
@Actions
- added "Set Variable"
- Variable: "vToggle"
- Value: = not vToggle
@Font
- Calculated Base Color: =if($(vToggle), blue(), yellow())
In the Variable Overview Settings:
Variable Name: vToggle
Value: -1
All other settings are untouched. Anyone knows why my text object is not changing color once I click on it.
Unfortunately not able to upload qvw.
Try removing the $ sign, like: if( vToggle, blue(), yellow())
I really don't know why are you doing long process
Create variable like var
Then, text object color section use this
If (var=1, reqtextcolor, default)
Sorry Anil,
Not following you on this..
could you explain it to a rookie?
Try removing the $ sign, like: if( vToggle, blue(), yellow())
thanks both. It worked
What if I want the text object to not switch to blue if the text object is yellow.
What must I add to the formula?
formula is still: if( vToggle, blue(), yellow())
Change in action, like:
@Actions
- added "Set Variable"
- Variable: "vToggle"
- Value: = if( vToggle, -1, 0)