jinyistudio Well-Known Member Licensed User Longtime User Feb 2, 2015 #1 Hi Use RunMethod2. Could i change the text of button ? How to typing the code ? Code: Sub SetPressed(cmd As Button, Pressed As Boolean) Dim ref As Reflector ref.Target = cmd ref.RunMethod2("setPressed", Pressed, "java.lang.boolean") End Sub
Hi Use RunMethod2. Could i change the text of button ? How to typing the code ? Code: Sub SetPressed(cmd As Button, Pressed As Boolean) Dim ref As Reflector ref.Target = cmd ref.RunMethod2("setPressed", Pressed, "java.lang.boolean") End Sub
Erel B4X founder Staff member Licensed User Longtime User Feb 2, 2015 #2 You can change cmd.Text = "new text" Upvote 0
jinyistudio Well-Known Member Licensed User Longtime User Feb 2, 2015 #3 Erel said: You can change cmd.Text = "new text" Click to expand... Hi I know it(cmd.Text = "new text") but I counld't see it display on the button face sometime when I continuous updating multiple buttons as following Code: btn1.text = s1 btn2.text = s2 btn2.text = s3 Upvote 0
Erel said: You can change cmd.Text = "new text" Click to expand... Hi I know it(cmd.Text = "new text") but I counld't see it display on the button face sometime when I continuous updating multiple buttons as following Code: btn1.text = s1 btn2.text = s2 btn2.text = s3
Erel B4X founder Staff member Licensed User Longtime User Feb 2, 2015 #4 You can update multiple buttons. There shouldn't be any problem. Upvote 0