Share My Creation B4A Checkbox List Pop-up UI Class

Discussion in 'Share Your Creations' started by MarkusR, Mar 21, 2018.

  1. MarkusR

    MarkusR Well-Known Member Licensed User

    hello,
    today i made a class to pop up a list selection with checkboxes (in a scrollview) from a key value map inside a activity.
    after ok click the map is updated.

    note: i think a better solution is using a extra activity and jump into with CallSubDelay2 and then jump back where it comes from also with CallSubDelay2 + Activity.Finish

    trigger in activity via button click
    Code:
    Sub SelectListe_Click
     
        
    Log("SelectListe_Click Start")
     
        
    Dim Tool As MyTools
        Tool.Initialize
     
        
    Dim m As Map = CreateMap("Car"False"Truck"False,"Train":False,"Airplane":True)
     
        
    Wait For(Tool.Dialog(Activity,m,"Select ..")) Complete (Result As Boolean)
     
        
    For Each Key As String In m.Keys
            
    If m.Get(Key)=True Then
                
    Log("+ " & Key)
            
    Else
                
    Log("- " & Key)
            
    End If
        
    Next

        
    Log("SelectListe_Click End")
     
    End Sub
    screenshot from phone
    Screenshot_2018-03-21-22-14-59.png
     

    Attached Files:

    Last edited: Mar 26, 2018
Loading...
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice