Android Question RadioButton Event ?

Discussion in 'Android Questions' started by GMan, Mar 10, 2015.

  1. GMan

    GMan Well-Known Member Licensed User

    Hoi FrieNds,

    how can i catch the event when a RadioButton is selected ?

    My (part of) code dont work...

    Code:
    Activity.AddView (AWahlpanel, 50%x-90dip,50%y - 100dip,180dip200dip)
        AWahlpanel.AddView (Awahl1,
    10dip,10dip,170dip,20dip)
        AWahlpanel.AddView (Awahl2,
    10dip,50dip,170dip,20dip)
        AWahlpanel.AddView (Awahl3,
    10dip,90dip,170dip,20dip)
        AWahlpanel.AddView (Awahl4,
    10dip,130dip,170dip,20dip)
        AWahlpanel.AddView (Awahl5,
    10dip,170dip,170dip,20dip)
        txtLog.Initialize(
    "txtLog")
        txtInput.Initialize (
    "txtInput")
        AWahlpanel.AddView (txtInput,
    0,0,10,10)
        AWahlpanel.AddView (txtLog,
    0,0,10,10)
        txtLog.SendToBack
        txtInput.SendToBack
       
        
    ' Activity.LoadLayout("Screen4")
        ' Activity.LoadLayout("Screen3")

       
    If Awahl1.Checked = True Then
    Activity.LoadLayout("Screen5")
    End If

    If Awahl2.Checked = True Then
    Activity.LoadLayout("Screen2")
    End If

    If Awahl3.Checked = True Then
    Activity.LoadLayout("Screen3")
    End If

    If Awahl4.Checked = True Then
    Activity.LoadLayout("Screen4")
    End If
     
  2. KZero

    KZero Active Member Licensed User

    add this event handler for each RadioButton you need to handle
    Code:
    Sub Awahl1_CheckedChange(Checked As Boolean)
     
    End Sub
     
    GMan likes this.
  3. GMan

    GMan Well-Known Member Licensed User

    Thx :)
     
    KZero likes this.
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