M Makumbi Well-Known Member Licensed User Apr 10, 2020 #1 this code sets badge to all . i wanted to set the badge to one single tabstrip please help B4X: TabStrip1.LoadLayout("Page2", "Accounts " & Chr(0xF19C)) TabStrip1.LoadLayout("Page3", "Academics " & Chr(0xF19D)) TabStrip1.LoadLayout("Page4", "Communication Book " & ": " & Chr(0xF1D7)& ": ") B4X: i wanted to set abadge count to only this [CODE=b4x] TabStrip1.LoadLayout("Page4", "Communication Book " & ": " & Chr(0xF1D7)& ": ") B4X: For Each lbl As Label In GetAllTabLabels(TabStrip1) badger1.SetBadge(lbl, Rnd(1,2) ) Next
this code sets badge to all . i wanted to set the badge to one single tabstrip please help B4X: TabStrip1.LoadLayout("Page2", "Accounts " & Chr(0xF19C)) TabStrip1.LoadLayout("Page3", "Academics " & Chr(0xF19D)) TabStrip1.LoadLayout("Page4", "Communication Book " & ": " & Chr(0xF1D7)& ": ") B4X: i wanted to set abadge count to only this [CODE=b4x] TabStrip1.LoadLayout("Page4", "Communication Book " & ": " & Chr(0xF1D7)& ": ") B4X: For Each lbl As Label In GetAllTabLabels(TabStrip1) badger1.SetBadge(lbl, Rnd(1,2) ) Next
Erel B4X founder Staff member Licensed User Longtime User Apr 12, 2020 #2 Something like: B4X: Dim lbl As Label = GetAllTabLabels(TabStrip1).Get(3) badger1.SetBadge(lbl, ... Upvote 0