luke2012 Well-Known Member Licensed User Longtime User Oct 23, 2012 #1 Hi to all, do someone known how to set the "pressed" button property by code? Thanks!
thedesolatesoul Expert Licensed User Longtime User Oct 23, 2012 #2 Here: Code: Copy Sub SetPressed(cmd As Button, Pressed As Boolean) Dim ref As Reflector ref.Target = cmd ref.RunMethod2("setPressed", Pressed, "java.lang.boolean") End Sub Upvote 0
Here: Code: Copy Sub SetPressed(cmd As Button, Pressed As Boolean) Dim ref As Reflector ref.Target = cmd ref.RunMethod2("setPressed", Pressed, "java.lang.boolean") End Sub
luke2012 Well-Known Member Licensed User Longtime User Oct 24, 2012 #3 Thank you very much!!! I'll try it. Last question Ragarding the device resurces required, it's better to use several panels or several buttons to implement a custom UI ? Upvote 0
Thank you very much!!! I'll try it. Last question Ragarding the device resurces required, it's better to use several panels or several buttons to implement a custom UI ?
thedesolatesoul Expert Licensed User Longtime User Oct 24, 2012 #4 luke2012 said: Ragarding the device resurces required, it's better to use several panels or several buttons to implement a custom UI ? Click to expand... I dont think it makes a lot of difference, but I would prefer buttons if they dont need to hold any child views. Upvote 0
luke2012 said: Ragarding the device resurces required, it's better to use several panels or several buttons to implement a custom UI ? Click to expand... I dont think it makes a lot of difference, but I would prefer buttons if they dont need to hold any child views.
Dave O Well-Known Member Licensed User Longtime User Mar 22, 2013 #5 Thanks for this, very handy. Is there a reason why the Pressed property is visible/editable in the Designer but not in code? Upvote 0
Thanks for this, very handy. Is there a reason why the Pressed property is visible/editable in the Designer but not in code?
Erel B4X founder Staff member Licensed User Longtime User Mar 22, 2013 #6 The Pressed property in the visual designer doesn't have any effect at runtime. Its purpose is to allow you to see how the button will look like when it is pressed. Upvote 0
The Pressed property in the visual designer doesn't have any effect at runtime. Its purpose is to allow you to see how the button will look like when it is pressed.