Hello,
I am using CLV with PCLV lazy loading. It works, but PCLV is creating a seek bar and I am not able to change it's properties nother get events fired.
If I try to initialize the seek bar like PCLV.B4XSeekBar1.Initialize(Me,"B4XSeekBar1") I get following error
This is my sub
Then I thought maybe it is initialized with PCLV like in some cases the disigner does it for objects. Does not look like!
Maybe somebody could help because I didn't find any example!
Thanks in advance
Georg
I am using CLV with PCLV lazy loading. It works, but PCLV is creating a seek bar and I am not able to change it's properties nother get events fired.
If I try to initialize the seek bar like PCLV.B4XSeekBar1.Initialize(Me,"B4XSeekBar1") I get following error
B4X:
java.lang.NullPointerException: Attempt to invoke virtual method 'android.graphics.Rect anywheresoftware.b4a.objects.B4XCanvas$B4XRect.toRect()' on a null object reference
B4X:
Sub fillPCLV()
Try
Dim isAlter As Boolean = True
PCLV.Initialize(Me, "PCLV", lstCustInventurList)
Do While PCLV.IsInitialized = False
Loop
PCLV.NumberOfSteps = 20
For Each InventurPosi As InventurPosStruct In InventurPosList
If SelectedInvPosItem.Id = InventurPosi.Id Then currInventurPosIndex = lstCustInventurList.Size
If isAlter = True Then
If InventurPosi.workedon = True Then
PCLV.AddItem(160dip, Colors.ARGB(255,235,255,255), InventurPosi)
isAlter = False
Else
PCLV.AddItem(160dip, Colors.ARGB(245,255,255,255), InventurPosi)
isAlter = False
End If
Else
If InventurPosi.workedon = True Then
PCLV.AddItem(160dip, Colors.ARGB(255,235,255,255), InventurPosi)
isAlter = True
Else
PCLV.AddItem(160dip, Colors.ARGB(255,255,255,255), InventurPosi)
isAlter = True
End If
End If
Next
PCLV.Commit
PCLV.B4XSeekBar1.Initialize(Me,"B4XSeekBar1")
ProgressDialogHide
Catch
Log(LastException.Message)
ProgressDialogHide
End Try
End Sub
Maybe somebody could help because I didn't find any example!
Thanks in advance
Georg