hibrid0 Active Member Licensed User Longtime User Aug 14, 2016 #1 Hi guys I'm trying to enable or disable some controls on run time and I cant. Any idea? On internal code I call a function and when the function finish sucess activate a button with button1.enable=true, but the button not activate. Can i do with ABMaterial?
Hi guys I'm trying to enable or disable some controls on run time and I cant. Any idea? On internal code I call a function and when the function finish sucess activate a button with button1.enable=true, but the button not activate. Can i do with ABMaterial?
alwaysbusy Expert Licensed User Longtime User Aug 15, 2016 #2 Did you do a button1.refresh? Last edited: Aug 15, 2016 Upvote 0
hibrid0 Active Member Licensed User Longtime User Aug 15, 2016 #3 Problem solved. just add: B4X: sub Function1_ProcessCompleted (Success As Boolean, ExitCode As Int, StdOut As String, StdErr As String) If success Then button1.enabled=true button1.refresh end if end sub Thanks AlwaysBusy Upvote 0
Problem solved. just add: B4X: sub Function1_ProcessCompleted (Success As Boolean, ExitCode As Int, StdOut As String, StdErr As String) If success Then button1.enabled=true button1.refresh end if end sub Thanks AlwaysBusy
alwaysbusy Expert Licensed User Longtime User Aug 16, 2016 #4 @hibrid0 Thank you for confirming the solution! Upvote 0