iOS Question Disabled button propertis

mare1980k1

Member
Licensed User
Longtime User
Hello,
How can i change button1.Enabled = False color? It stays the same as if it's true when i set custom color on it, any help how to change button color when it's disabled?
 

mare1980k1

Member
Licensed User
Longtime User
Yes, i do it too, but i want to change it's design when it's false.... Or u mean do it manually in the code? If enabled = false then color = black for example?
 
Upvote 0

Yvon Steinthal

Active Member
Licensed User
Yes as you pointed it out something like...

B4X:
Dim btnenabled as boolean = False 'whatever you want it to be at first

Sub btn_Click

if(btnenabled)Then
btn.color = colors.green
btnenabled = false
else
btn.color = colors.red
btnenabled = true
end if

end sub
 
Upvote 0
Top