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

73Challenger

Active Member
Licensed User
Hi @Alexander Stolte Does this spinner support a long click (on the up down arrows) event? Also changing background colors...or transparent background (I can make transparent work in my project). Thanks much!

 

Alexander Stolte

Expert
Licensed User
Longtime User
Does this spinner support a long click (on the up down arrows) event?
The arrows in the picture are not included in the view. I just placed a label at the top and bottom of the designer.
Also changing background colors...or transparent background (I can make transparent work in my project).
Is this a question or a statement? In case of a question: Just set the "Background Color" to transparent in the designer
 

marcick

Well-Known Member
Licensed User
Longtime User
Hi Alexander,
I'm not able to show a border on this control.
Also, the text size looks smaller than the same text shown in a label for example. Do I have to set font at runtime (not in the designer) ?
 

Alexander Stolte

Expert
Licensed User
Longtime User
Update
  • 3.16
    • Add get and set BorderWidth
    • Add get and set BorderColor
I'm not able to show a border on this control.
B4X:
ASWheelPicker1.BorderWidth = 4dip
ASWheelPicker1.BorderColor = xui.Color_Red
Also, the text size looks smaller than the same text shown in a label for example. Do I have to set font at runtime (not in the designer) ?
This is normal because you have the following thing in the designer script: AutoScaleAll

Since I don't create the labels using the designer, but rather using code, the designer script has no influence on how large text is displayed.

Remove AutoScaleAll from the designer script or increase the font size:
B4X:
Dim ItemTextProperties As ASWheelPicker_ItemTextProperties = ASWheelPicker1.ItemTextProperties
ItemTextProperties.TextFont = xui.CreateDefaultFont(20)
ASWheelPicker1.ItemTextProperties = ItemTextProperties
 

marcick

Well-Known Member
Licensed User
Longtime User
uhmmm ... no difference.... do I have to remove the control in the designer and add it again ?
 

marcick

Well-Known Member
Licensed User
Longtime User
Ok. This is because I want the graphics looks identical both in IOS and Android. But not a big problem, I'll try with a background panel
Thanks
 

Alexander Stolte

Expert
Licensed User
Longtime User
sorry, it doesn't work
sorry, I can't recreate it in B4A.
The following things could be the solution:
-Check in the library tab in your project if the ASWheelPicker has the version 3.17
-ASWheelPicker1.BorderWidth=3dip add a "dip" to the 3

If that doesn't work, please send me an example project that shows the error. Thanks a lot
 

marcick

Well-Known Member
Licensed User
Longtime User
here it is.
(II don't know how the border will look, but also corneradius seems it is missing)
 

Attachments

  • test.zip
    10.1 KB · Views: 170

Alexander Stolte

Expert
Licensed User
Longtime User
Update
  • 3.18
    • B4A Border BugFix
here it is.
(II don't know how the border will look, but also corneradius seems it is missing)
Thanks, the problem was the fade panels. Since I find the fade effect ugly, I always have it transparent, so I haven't seen the problem.
 

marcick

Well-Known Member
Licensed User
Longtime User
Now it's ok, thank you. To be honest I had the fading effect without understand well what it is .... I have disabled it now.
It looks now identical to IOS.
 

Alexander Stolte

Expert
Licensed User
Longtime User
Update
  • 3.20
    • BugFixes
  • 3.21
    • Add Event CustomDrawItem
    • Fade Effect BugFixes
CustomDrawItem
you can now do something like this:

It's just one column and 2 extra labels
 
Last edited:
Cookies are required to use this site. You must accept them to continue using the site. Learn more…