Thanks to @wonder for his nice "Analog Clock with Sound", this safes me a lot of time.
I spend a lot of time in creating views, like this and to create a high quality view cost a lot of time. If you want to support me and further views, then you can do it here by Paypal or with a coffee.
www.b4x.com
ASClock
Author: Alexander Stolte
Version: 1.01
I spend a lot of time in creating views, like this and to create a high quality view cost a lot of time. If you want to support me and further views, then you can do it here by Paypal or with a coffee.
[B4X] AS RangeSlider + AS Clock = Sleep Schedule Picker
This is a short Example of what is possible with this 2 views. I spend a lot of time in creating views, like this and to create a high quality view cost a lot of time. If you want to support me and further views, then you can do it here by Paypal or with a coffee. :)...
Author: Alexander Stolte
Version: 1.01
- ASClock
- Fields:
- mBase As B4XView
- Tag As Object
- Functions:
- Class_Globals As String
- CreateASClock_MiddleTextProperties (TextColor As Int, xFont As B4XFont) As ASClock_MiddleTextProperties
- DesignerCreateView (Base As Object, Lbl As Label, Props As Map) As String
Base type must be Object - Draw As String
- getCornerColor As Int
- getCornerWidth As Float
- getInnerColor As Int
- getMiddleText As String
- getMiddleTextProperties As ASClock_MiddleTextProperties
- getShowDialText As Boolean
- getShowHourMark As Boolean
- getShowMinutesMark As Boolean
- Initialize (Callback As Object, EventName As String) As String
- IsInitialized As Boolean
Tests whether the object has been initialized. - setCornerColor (Color As Int) As String
- setCornerWidth (CornerWidth As Float) As String
- setInnerColor (Color As Int) As String
- setMiddleText (Text As String) As String
- setShowDialText (Show As Boolean) As String
- setShowHourMark (Show As Boolean) As String
- setShowMinutesMark (Show As Boolean) As String
- SetTime (Hour As Int, Mins As Int, Secs As Int) As String
- Properties:
- CornerColor As Int
- CornerWidth As Float
- InnerColor As Int
- MiddleText As String
- MiddleTextProperties As ASClock_MiddleTextProperties [read only]
- ShowDialText As Boolean
- ShowHourMark As Boolean
- ShowMinutesMark As Boolean
- Fields:
- ASClock_MiddleTextProperties
- Fields:
- IsInitialized As Boolean
Tests whether the object has been initialized. - TextColor As Int
- xFont As B4XFont
- IsInitialized As Boolean
- Functions:
- Initialize
Initializes the fields to their default value.
- Initialize
- Fields:
- 1.00
- Release
- 1.01
- Add get and set ScaleColor
- Add get and set SweepHands
- 1.02
- Add Designer Property ClockMode - 12 and 24
- Default: 12
- If 24 then the clock displays 1-24
- If 12 then the clock displays 1-12
- Add Designer Property ClockMode - 12 and 24
- 1.03 (read more)
- Add SleepDuration to ClockMode
Attachments
Last edited: