23021959Pepe Member Licensed User Longtime User Jun 15, 2014 #1 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
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
M Mahares Expert Licensed User Longtime User Jun 15, 2014 #2 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
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
23021959Pepe Member Licensed User Longtime User Jun 16, 2014 #3 Mahares thank you very much, I've solved with your suggestion. A greeting from Spain Pepe Upvote 0