iOS Question How do I make a number device independent for a picker location

davepamn

Active Member
Licensed User
B4X:
            Dim oLBX As Picker
            oLBX.Initialize("lbx" & i)
            Dim myList As List
            myList.Initialize
            myList.Add("Red")
            myList.Add("Green")
            myList.Add("Brown")
            myList.Add("Black")

            ScrollViewInput.Panel.AddView(oLBX,300dip,(iRowOffset+(oLBX.Height/2)+40),50%x,500dip)

            iRowOffset=iRowOffset+(oLBX.Height)+100
I need the row offset to be device independent
 
Last edited:

davepamn

Active Member
Licensed User
I seems like oLBX.Height converts the number into dip. Is that correct?

The control looks correct on the iPad
 
Top