Need a wheel control

ThePuiu

Active Member
Licensed User
Longtime User
Hi,
I need a wheel type control for displaying numeric variables. How can I use in my application the attached control's image?

Thank you!
 

Attachments

  • wheel.jpg
    5.6 KB · Views: 175

nfordbscndrd

Well-Known Member
Licensed User
Longtime User
B4X:
Sub Globals
   Dim imgWheel As ImageView
   Dim labelPlus, labelMinus, labelResult As Label
   Dim intResult As Int
End Sub

Sub Activity_Create(FirstTime As Boolean)
   Activity.LoadLayout("WheelControl.bal")
End Sub

Sub labelPlus_Click
   intResult = intResult + 1
   labelResult.Text = intResult
End Sub

Sub labelMinus_Click
   intResult = intResult - 1
   labelResult.Text = intResult
End Sub

Attached is the app in zip format.
 

Attachments

  • wheelcontrol.zip
    10.7 KB · Views: 179
Upvote 0

ThePuiu

Active Member
Licensed User
Longtime User
I tried to emulate this using two buttons and a label but does not look so good. I learned something new! Thank you!!
 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…