Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
I have the multiple buttons. i want to change the button background color while clicking the button
HI
Try some thing like this
Color:
Button1:
=if(vB1 = 1, red(), Green())
Button2:
=if(vB1 = 2, red(), Green())
Action:
Button1:
Varibles: vB1
Value: 1
Button2:
Varibles: vB1
Value: 2
So, when u click first button, its shows red color and second button is in green color.
when u click second button, its shows red color and first button is in green color.
Hi,
Check button properties->Caption-> Inactive caption and Active caption
Hi
Try like this
For button1:
Properties -> General -> Color:
=if(vButton = 1, red(), Green())
Action:
Set Variables
vButton
Value
= 1
Same thing repeat for button 2
=if(vButton = 2, red(), Green()) and so on.
Dear balasundaram,
yeah it is one way but i don't want to show the caption.i want to change background color only
Dear MayilVahanan
i want to differentiate the clicked button color but it is show the same color
Hi
PFA
thank you for your reply MayilVahanan
i am using trial version i can't open the QVW file can u send the expression
HI
Try some thing like this
Color:
Button1:
=if(vB1 = 1, red(), Green())
Button2:
=if(vB1 = 2, red(), Green())
Action:
Button1:
Varibles: vB1
Value: 1
Button2:
Varibles: vB1
Value: 2
So, when u click first button, its shows red color and second button is in green color.
when u click second button, its shows red color and first button is in green color.
Hi
Button properties->General->Back ground->color->Conditional:
if(vBYORSPP=1,RGB(0,65,101),rgb(255,255,255))
based on the condition/action it will change the color of button