Switch with 2 or 3 states. Horizontal or vertical. You can choose the style. All selectable from Design
Note: Even if it is a B4XLib library, it is not allowed to decompress it, read and / or modify the sources. It is also not allowed to rename the library. Unless you are explicitly authorized...
This Code is a convert from this Stackoverflow thread.
Private Sub isColorDark(color As Int) As Boolean
Dim darkness As Int = 1 - (0.299 * GetARGB(color)(1) + 0.587 * GetARGB(color)(2) + 0.114 * GetARGB(color)(3))/255
If darkness <= 0.5 Then
Return False 'It's a...
Is there a way to check if the app runs in debugmode?
If IsDebug = true then
'Fill logincredentials so you don't waste time during debugging
txtUser.text = "Marc"
txtPassword.text = "527Gf42d#1"
Is there an easy way to check if only emojis in a string?
I would like to check this to highlight it by changing the text size, like Instagram where you can see the emojis in large size when sending only one emoji or two.