H howard bassen Member Licensed User Longtime User Dec 24, 2014 #1 Is there a way to input an integer to a program using the Seekbar or a similar continuously variable view object ?
Is there a way to input an integer to a program using the Seekbar or a similar continuously variable view object ?
mangojack Expert Licensed User Longtime User Dec 24, 2014 #2 Sure .. Code: Sub SeekBar1_ValueChanged (Value As Int, UserChanged As Boolean) If UserChanged Then If Value > 0 Then MyValue = Value End If End Sub If you do use this method ,this might be of interest ... Great Looking Seekbars by Derez ... Upvote 0
Sure .. Code: Sub SeekBar1_ValueChanged (Value As Int, UserChanged As Boolean) If UserChanged Then If Value > 0 Then MyValue = Value End If End Sub If you do use this method ,this might be of interest ... Great Looking Seekbars by Derez ...
stevel05 Expert Licensed User Longtime User Dec 24, 2014 #3 Yes, check the Sub SeekBar_ValueChanged (Value As Int, UserChanged As Boolean) callback. Docs: http://www.b4x.com/android/help/views.html#seekbar Upvote 0
Yes, check the Sub SeekBar_ValueChanged (Value As Int, UserChanged As Boolean) callback. Docs: http://www.b4x.com/android/help/views.html#seekbar
mangojack Expert Licensed User Longtime User Dec 24, 2014 #4 As a followup I suggest to you and others , to create a new app title 'Testing 123' . This app can then be used to test all sorts of ideas / code snippets / view methods etc. which when perfected, can be pasted to your main app. This way your main app remains in pristine order and you are more likely to be testing code with fewer interactions. The test app can be 'Erased / blanked' occasionally as needed. This might not suit everyone , but I am sure it would have negated the need to ask the above question in forum. Upvote 0
As a followup I suggest to you and others , to create a new app title 'Testing 123' . This app can then be used to test all sorts of ideas / code snippets / view methods etc. which when perfected, can be pasted to your main app. This way your main app remains in pristine order and you are more likely to be testing code with fewer interactions. The test app can be 'Erased / blanked' occasionally as needed. This might not suit everyone , but I am sure it would have negated the need to ask the above question in forum.
H howard bassen Member Licensed User Longtime User Dec 24, 2014 #5 These look like god suggestions, but as a beginner I can't figure out how to get 'Value' and display it in a label or message box. Upvote 0
These look like god suggestions, but as a beginner I can't figure out how to get 'Value' and display it in a label or message box.
stevel05 Expert Licensed User Longtime User Dec 24, 2014 #6 how to get 'Value' and display it in a label Click to expand... Using MangoJacks example: Code: Sub SeekBar1_ValueChanged (Value As Int, UserChanged As Boolean) If UserChanged Then Label1.Text = Value End If End Sub Upvote 0
how to get 'Value' and display it in a label Click to expand... Using MangoJacks example: Code: Sub SeekBar1_ValueChanged (Value As Int, UserChanged As Boolean) If UserChanged Then Label1.Text = Value End If End Sub