Hi,
I try to use customDialog, panel & ListView to display choose for the user. The list is in file "Devise.txt". When the user click the label the panel opened but nothing in it ??
Can you tell me why ?
Thanks
Sub Globals
Dim lblDevise As Label
Dim lv As ListView
Dim pnl As Panel
Dim cd As CustomDialog
....
end sub
Sub Activity_Create(FirstTime As Boolean)
....
lv.Initialize("lv")
pnl.Initialize("pnl")
TR.Initialize(File.OpenInput(File.DirDefaultExternal, "Devise.txt"))
Dim line As String
Do While line <> Null
line = TR.ReadLine
lv.AddSingleLine(line)
Loop
TR.Close
End Sub
Sub lblDevise_Click
cd.AddView(pnl,0,0, 77%x, 60%y )
ret = cd.Show("Devises", "OK", "Cancel","" , Null)
End Sub
Sub lv_ItemClick (Position As Int, Value As Object)
ToastMessageShow(Position, True)
ToastMessageShow(Value, True)
End Sub
I try to use customDialog, panel & ListView to display choose for the user. The list is in file "Devise.txt". When the user click the label the panel opened but nothing in it ??
Can you tell me why ?
Thanks
Sub Globals
Dim lblDevise As Label
Dim lv As ListView
Dim pnl As Panel
Dim cd As CustomDialog
....
end sub
Sub Activity_Create(FirstTime As Boolean)
....
lv.Initialize("lv")
pnl.Initialize("pnl")
TR.Initialize(File.OpenInput(File.DirDefaultExternal, "Devise.txt"))
Dim line As String
Do While line <> Null
line = TR.ReadLine
lv.AddSingleLine(line)
Loop
TR.Close
End Sub
Sub lblDevise_Click
cd.AddView(pnl,0,0, 77%x, 60%y )
ret = cd.Show("Devises", "OK", "Cancel","" , Null)
End Sub
Sub lv_ItemClick (Position As Int, Value As Object)
ToastMessageShow(Position, True)
ToastMessageShow(Value, True)
End Sub