I have scrollview and can get the value which is ll I need and then it's made invisible. However, the user doesn't see anything after selection, I would like it to change colour and back as normal lists do but can't get the selected panel to change?
I've tried various things, but keep getting errors.
I want to be able to use the same function for about 5 scrollviews that I will create. Is this possible?
Malky
I've tried various things, but keep getting errors.
I want to be able to use the same function for about 5 scrollviews that I will create. Is this possible?
Malky
B4X:
Sub pnlLanguage_Click
Dim pnl As Panel
Dim lbl As Label
Log("Clicked")
pnl = Sender ' gets the Panel at the selected row
lbl = pnl.GetView(1) ' gets the Label of the selected row
' here you can add the code you want
' lbl.Tag = language abdreviation
Activity.Title = lbl.Tag ' gets the Tag value of the Label
PopulateDiction(lbl.Tag)
language = lbl.Tag
'Log("Dict = " & DictionList)
'ToastMessageShow(DictionList.GetValueAt(2), True)
SQL1.ExecNonQuery("UPDATE system SET value = '" & lbl.tag & "' WHERE var='language'")
PanelTimer.Enabled = True
'PanelTimer_Tick
pnl.Color = Colors.Black
'scvMain.Panel.Visible= False
End Sub
Sub PanelTimer_Tick
Dim pnl As Panel
'pnl = Sender ' gets the Panel at the selected row
'pan = pnl.GetView(1)
pnl.Color = Colors.Blue
End Sub