What it does:
Shows an InputList modal dialog and allows the user to select an item from the list and hides on selection of the item.
Why we may need it:
This will eventually become redundant as Erel adds it to the Core library.
I needed to show some popup menus, and experimented with various ideas (panels, inputlist etc) but none were perfect. This should take care of screen size, modality etc in the same way other dialogs do.
How it works:
Nothing great. I just copied the function InputList from the Core library and replaced:
with
So in effect it just removes the RadioButtons from the InputList.
Sample code:
Shows an InputList modal dialog and allows the user to select an item from the list and hides on selection of the item.
Why we may need it:
This will eventually become redundant as Erel adds it to the Core library.
I needed to show some popup menus, and experimented with various ideas (panels, inputlist etc) but none were perfect. This should take care of screen size, modality etc in the same way other dialogs do.
How it works:
Nothing great. I just copied the function InputList from the Core library and replaced:
B4X:
b.setSingleChoiceItems(items, CheckedItem, dr);
B4X:
b.setItems(items, dr);
Sample code:
B4X:
Dim r As List
r.Initialize
r.AddAll(Array As String("Download","Upload","Share"))
Dim x As id
m = x.InputList1(r,"Hello")
Msgbox(m,"Result")