Changing the button text color when clicked

gkumar

Active Member
Licensed User
Longtime User
I have one button with different bitmaps as background, one in normal state and one for button click. But I want to change the text color when the button is clicked. Is there any way to achieve this?
 

pluton

Active Member
Licensed User
Longtime User
I have one button with different bitmaps as background, one in normal state and one for button click. But I want to change the text color when the button is clicked. Is there any way to achieve this?

B4X:
' Button text color in blue
button1.TextColor = colors.Blue

Or did you mean in Button Properties in designer

button.png
 
Upvote 0

gkumar

Active Member
Licensed User
Longtime User
I wanted to change the text color through the designer. But no option in the designer. But I tried to change the text color by code in the button click event, but it didn't change.
 
Upvote 0

gkumar

Active Member
Licensed User
Longtime User
That worked, But there is slight mismatch in display time, as I am changing text color in _Down and bitmap through designer.
 
Upvote 0
Top