Morning,
how can I get the sending B4XPlusMinus (get his value) from a Pane (Panel) in a CustomListView?
this does work for textfields etc but not for this
THX
how can I get the sending B4XPlusMinus (get his value) from a Pane (Panel) in a CustomListView?
B4X:
clv1.Add(addItemtoListview(PossibleFailure, clv1.AsView.Width, 40dip), "test")
Sub addItemtoListview(flist As List, Width As Int, Height As Int) As Pane
Dim p As B4XView = xui.CreatePanel("")
p.SetLayoutAnimated(0, 0, 0, Width, Height)
p.LoadLayout("CellItem")
pmOne.SetNumericRange(0, 100, 1)
pmTwo.SetNumericRange(0, 100, 1)
pmThr.SetNumericRange(0, 100, 1)
cbBox.Items.AddAll(flist)
Return p
End Sub
B4X:
Sub pmOne_ValueChanged (Value As Object)
Dim index As Int = clv1.GetItemFromView(Sender)
Dim p As B4XView = clv1.GetPanel(index)
Dim pmOne As B4XView = p.GetView(0)'0 as example'
Dim pmTwo As B4XView = p.GetView(1)'1 as example'
Dim pmThr As B4XView = p.GetView(2)'2 as example'
End Sub
this does work for textfields etc but not for this
B4X:
java.lang.ClassCastException: class b4j.example.b4xplusminus cannot be cast to class javafx.scene.Node (b4j.example.b4xplusminus is in unnamed module of loader 'app'; javafx.scene.Node is in module javafx.graphics of loader 'app')
THX
Last edited: