Example:
1. Add to Files Manager: dialog_transparent.bal and app_ico.png
Sub Globals
Dim mss As MultiSelect
Dim bmp As Bitmap = LoadBitmap(File.DirAssets, "app_ico.png")
...
End Sub
'An example of calling the MultiSelect dialog
mss.Initialize
mss.InputDialog(True,Me,Activity,"Available Categories in\n'"&fd.ChosenName&"'","Select All",bmp,"mss")
mss.Show
Sub Activity_KeyPress(KeyCode As Int) As Boolean
' Not mandatory, it depends on your app and device
Private Menu As Reflector
Select KeyCode
Case KeyCodes.KEYCODE_BACK
If mss.IsInitialized Then
If mss.IsShowDialog Then
mss.Hide '------------------------- > Close MultiSelect window.
End If
End If
Return True
Case KeyCodes.KEYCODE_MENU
Menu.Target = Menu.GetActivity
' clear the menu items, the original menu itself still exists
Menu.SetField2("menuItems", Null)
' add the required menu items
'
' rebuild the menu
Menu.RunMethod("invalidateOptionsMenu")
End Select
Return False
End Sub
Sub mss_Response(Response As Int)
ToastMessageShow("Dialogresponse: " & Response, False)
End Sub