B4A Library [B4X] [XUI] AS WheelPicker - Spinner - a modern single/multiple choice picker view - based on xCustomListView [Payware]

tsteward

Well-Known Member
Licensed User
Longtime User
Sorry if this is a dumb question but
In your example video you show a next and previous button.
Is there a way to add these automatically or do I have to add X number of buttons and try to position them above and below the wheels?
 

tsteward

Well-Known Member
Licensed User
Longtime User
Sorry if this is a dumb question but
In your example video you show a next and previous button.
Is there a way to add these automatically or do I have to add X number of buttons and try to position them above and below the wheels?
My apologies I found the other thread.

Thank you
 

Alexander Stolte

Expert
Licensed User
Longtime User
Update
  • 3.04
    • Add Event CustomDrawItemChange
CustomDrawItemChange
B4X:
Private Sub ASWheelPicker1_CustomDrawItemChange(NewItem As ASWheelPicker_CustomDraw,OldItem As ASWheelPicker_CustomDraw)
    NewItem.Views.TextLabel.Text = "New Text"
   
    OldItem.Views.TextLabel.Text = OldItem.Item.Text
End Sub

Is there a way to change the colour of the currently selected item on a wheel?
It's a very nice new event, thanks for that!
 

Alexander Stolte

Expert
Licensed User
Longtime User
Is unfortunately the native behavior of the ScrollList, if the panel is invisible when filling the list, then the actions are not performed. Unfortunately there is nothing I can do. The panel where the WheelPicker is must be visible when initializing and filling. You can also hide the panel and then bring it to the foreground when you need it.
 

Alexander Stolte

Expert
Licensed User
Longtime User

angel_

Well-Known Member
Licensed User
Longtime User
I am trying to change the color of the text in the abstract designer.

In B4i, it always appears white
In B4A, I don't see the text

After loading the xWheel I use xWheel.SelectRow to scroll the selector but it stays on the first row

Note: I have updated the library from an old version v2.03
 
Last edited:

Alexander Stolte

Expert
Licensed User
Longtime User
I am trying to change the color of the text in the abstract designer.
But there is no custom property for the text color in the designer.

I use xWheel.SelectRow to scroll the selector but it stays on the first row
Try it with a Sleep(0) or Sleep(1000) before you scroll.
If it still doesn't scroll, then I need more info about the parameters you pass in the SelectRow.
 

Drago Bratko

Active Member
Licensed User
Longtime User
Update
1.03

  • Add get Base - gets the base view (mBase)
  • Add Scroll2Index - scrolls to an item on a wheel
  • Add get Index - gets the selected index
I'm not able to found a way how I can set value of a wheel by using Scroll2Index method ... how one can do it?
 

fbritop

Active Member
Licensed User
Longtime User
Testing....
I use another of your libraries. Currently if I add ASWheelPicker, then GestureRecognizer (which I think is use by another of your libraries, states as an unkown type. If I remove gesture, then no warnings regarding ASWheel but with the other libs thorughs another exceptions.



For example, I get this log:
GestureRecognizer - 149: Unknown type: swipe_attributes<br />Are you missing a library reference?
 
Cookies are required to use this site. You must accept them to continue using the site. Learn more…