K Kimmowich Member Licensed User Longtime User Jul 24, 2011 #1 Hello all Small problem here. dim Tb as ToggleButton sub this(v as view) if v is label then ... else if v is ToggleButton then ... end if end sub The problem is.. when i call this(Tb) it will show as a Label. Is this meant to be? thanks Kim
Hello all Small problem here. dim Tb as ToggleButton sub this(v as view) if v is label then ... else if v is ToggleButton then ... end if end sub The problem is.. when i call this(Tb) it will show as a Label. Is this meant to be? thanks Kim
Erel B4X founder Staff member Licensed User Longtime User Jul 24, 2011 #2 The native ToggleButton derives from the native Label (TextView), therefore you see this behavior. The solution is to first check for ToggleButton and then for Label. Upvote 0
The native ToggleButton derives from the native Label (TextView), therefore you see this behavior. The solution is to first check for ToggleButton and then for Label.
Robert Valentino Well-Known Member Licensed User Longtime User Jun 12, 2014 #3 What is the order of checking for different types? Spinner, Label, Panel, Button etc Last edited: Jun 12, 2014 Upvote 0
Erel B4X founder Staff member Licensed User Longtime User Jun 13, 2014 #4 <all views except of Button, Label, EditText> -> EditText -> Button -> Label -> View Upvote 0