khwarizmi Active Member Licensed User Longtime User Jan 31, 2024 #1 Hi all How to set text in B4XSeekBar? I tried: B4X: B4XSeekBar1.mBase.Text="My Text" but I get error: (java.lang.RuntimeException: Type does not match (class anywheresoftware.b4a.BALayout)
Hi all How to set text in B4XSeekBar? I tried: B4X: B4XSeekBar1.mBase.Text="My Text" but I get error: (java.lang.RuntimeException: Type does not match (class anywheresoftware.b4a.BALayout)
M Mahares Expert Licensed User Longtime User Jan 31, 2024 #2 khwarizmi said: How to set text in B4XSeekBar? Click to expand... Add a label above or under the seekbar and use the ValueChanged Event B4X: Sub B4XSeekBar1_ValueChanged (Value As Object) Label1.Text = Value Label1.textcolor = xui.Color_Red End Sub Upvote 0
khwarizmi said: How to set text in B4XSeekBar? Click to expand... Add a label above or under the seekbar and use the ValueChanged Event B4X: Sub B4XSeekBar1_ValueChanged (Value As Object) Label1.Text = Value Label1.textcolor = xui.Color_Red End Sub
khwarizmi Active Member Licensed User Longtime User Feb 1, 2024 #3 Thanks @Mahares , this is the solution I will follow. But I wanted to know how this feature works. It will avoid adding a new view to the activity. B4X: B4XSeekBar1.mBase.Text Upvote 0
Thanks @Mahares , this is the solution I will follow. But I wanted to know how this feature works. It will avoid adding a new view to the activity. B4X: B4XSeekBar1.mBase.Text