Unlike the Horizontal wheel (see WheelView class) , this wheel is analog - it can set or get any value in the range of the wheel, not just the labels.
It can be designed in the designer as custom view, or added by code.
In the case of code you have to call CodeCreationView after the initialization.
The "natural" range is 0-100 but you can set any range by setting the start and end points.
These point are parameters in CodeCreationView, in the designer put them in "Text" separated by comma.
The Methods are simple and there is a _Roll event which pass the wheel value to the calling module.
In the demo, WC1 is the upper wheel designed by code, the second wheel is by the designer. On WC2 I put a panel which does not belong to the class, just to demonstrate a possibility for the look of the wheel.
Edit: VAnalogWheel added, the same thing but vertically. The name of the Horizontal Analog Wheel is changed to HAnalogWheel
Edit: an updated version 2 uses api 23+ with resumable subs. There is a memory problem, depends on the resolution of the device. In 1080x1920 the max width is about 59%x.
For the vertical analog wheel the max height is 40%y.
It can be designed in the designer as custom view, or added by code.
In the case of code you have to call CodeCreationView after the initialization.
The "natural" range is 0-100 but you can set any range by setting the start and end points.
These point are parameters in CodeCreationView, in the designer put them in "Text" separated by comma.
The Methods are simple and there is a _Roll event which pass the wheel value to the calling module.
In the demo, WC1 is the upper wheel designed by code, the second wheel is by the designer. On WC2 I put a panel which does not belong to the class, just to demonstrate a possibility for the look of the wheel.
Edit: VAnalogWheel added, the same thing but vertically. The name of the Horizontal Analog Wheel is changed to HAnalogWheel
Edit: an updated version 2 uses api 23+ with resumable subs. There is a memory problem, depends on the resolution of the device. In 1080x1920 the max width is about 59%x.
For the vertical analog wheel the max height is 40%y.
Attachments
Last edited: