Android Question Enable / Disable a SpeakButton

23021959Pepe

Member
Licensed User
Longtime User
Hi all, could someone tell me how to enable or disable a SpeakButton from your code. Because when you are in the design if you are given the option to Enabled to put True or False.
Sorry for my English
regards
 

Mahares

Expert
Licensed User
Longtime User
I think you can do this:
In the SpeakButton class module make btn public instead of private like this:
B4X:
Public btn As Button

Then in your main module do this:
B4X:
Dim spket As SpeakButton      'in Globals

spket.btn.Enabled=False        'in your code
 
Upvote 0
Top