Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
hi guys,
Is there any solution for changing color of text on button.
After i click on button i want the color of text should get changed so that it can be easily identified which button is clicked...
thanks..
why you use dollar sign simply write the variable name
see the attached image
Under Font Propery there is a button Color where you can make color of your text be calculated. Example:
if(vSomeVar = 0, Red(), White())
You can set button color to be calculated too. See Color button in General Tab.
Hi,
I am using following logic but no result..
if($(vSomeVar) = 0, Red(), White())
Hi mohit,
I am using personal edition so plz give me details here only...
Change Color On Button Click |
/*************************************************************************/
Firstly Create A Variable Vchange =0
then create a button
Right Click On button-->Action-->Add Action--->External---->Set Variable
then On Above side Name Of Variable-->Vchange-->
in Value write--> =If(Vchange=0,1,0)
then on Font Tab Click On Colour -->Tick on Calculated -->add Expression
if(Vchange=0,rgb(255,0,0))
hope it helps you
Hi mohit,
It is not working..
I am using...
in actions -> set variable -> variable : vSomeVar
value : =if($(vSomeVar)=0,1,0)
in font -> calculated -> if($(vSomeVar) =0,rgb(255,0,0))
i want color of text should change to red when button is active
white when button is inactive
Hi
Try like this
in actions -> set variable
varibale : vSomeVar
value: =if(vSomeVar = 0, 1, 0)
in font -> calculated
= if(vSomeVar = 0, white(), red())
Hope that helps
why you use dollar sign simply write the variable name
see the attached image
Hi guys,
I am getting following error...
PFA
You need to CREATE the variable first. SomeVar is simply used to denote that you should create 'Some Variable' for use in this situation. Go to Variable overview (Ctrl+alt+v) and create a variable there with the name of your choice.
Use this name that you selected in place of 'SomeVar'.
Hope this helps.
Cheers,
CG