B4A Library StartPointSeekBar

RaymondHung

Member
Licensed User
Longtime User
Hi Johan,

Do you know why forwarding your StartPointSeekBar.zip file with Gmail will be blocked due to security reasons?
 

RaymondHung

Member
Licensed User
Longtime User
Thanks DonManfred

But in my application using StartPointSeekBar, APK file using Gmail will be blocked for security reasons,
no problem if not used. I want to know what is the reason?
 

Johan Schoeman

Expert
Licensed User
Longtime User
It is to replace the old file with two new ones. It can be sent back to the original position, right?
You need to make sure that you keep the names of your png files the same as what they are at present.
 

Mr Blue Sky

Active Member
Licensed User
Longtime User
Hi Johan Schoeman
is it possible to have the decimal point with this library very interesting because the SeekBar displays units only

B4X:
Sub Globals
    Dim myval As Int
    Private StartPointSeekBar1 As StartPointSeekBar
    Private hpll As Label
    Private hplh As Label
    Private hpl As Label
End Sub

Sub Activity_Create(FirstTime As Boolean)
    Activity.LoadLayout("main")

    ' High Pressure alarm limit unit
    StartPointSeekBar1.TheBackgroundColor = Colors.DarkGray
    StartPointSeekBar1.TheRangeColor = 0xFF33B5E5
    StartPointSeekBar1.MinValue = 0                   
    StartPointSeekBar1.maxValue = 6.9
    StartPointSeekBar1.ThumbValue = 2.5
    '============================
    hpll.Text = 0
    hpll.TextColor = Colors.Red
    hpll.TextSize = 20
    hplh.Text = 6.9
    hplh.TextColor = Colors.Red
    hplh.TextSize = 20
    '============================
    hpl.Color = Colors.Transparent
    hpl.TextColor = Colors.White
    hpl.TextSize = 30
    hpl.Text = StartPointSeekBar1.CurrentThumbValue
End Sub

Sub StartPointSeekBar1_value_changed
    myval = StartPointSeekBar1.CurrentThumbValue
    hpl.Text = Round2(myval,2)
End Sub

 

klaus

Expert
Licensed User
Longtime User
Set the returned value type to Double instead of Int.
And use Numberformat to display the value.

B4X:
Dim myval As Double


Sub StartPointSeekBar1_value_changed
    myval = StartPointSeekBar1.CurrentThumbValue
    hpl.Text = Numberformat(myval, 1, 2)
End Sub
 
Last edited:

Mr Blue Sky

Active Member
Licensed User
Longtime User
Decidedly what will I do without you and jordi must I stop working until hours not possible I have more eyes in front of the holes. many thank Klaus
 
Last edited:

HammerZeta

Member
Licensed User
Hi Johan Schoeman

I want to thank you for StartPointSeekBar. I am using it in a program that I am doing.
I've also been looking at your big list of contributions to the forum, thank you very much for your collaboration.

a cordial greeting
 
Cookies are required to use this site. You must accept them to continue using the site. Learn more…