asales Expert Licensed User Longtime User Jun 3, 2019 #1 I tried the new XUIViews component, but I if I click in the "Item1" the others items are hide. I don't know why and how to show it agian, like the image of the example.
I tried the new XUIViews component, but I if I click in the "Item1" the others items are hide. I don't know why and how to show it agian, like the image of the example.
I inakigarm Well-Known Member Licensed User Longtime User Jun 3, 2019 #2 If I understand correctly... Add the items to the BreadCrum control in Designer: ---> Item1|Item2|Item3|Item4 In Globals: Code: lastcrumbstate as Int In BreadCrumb Event_Click Code: If Crumbs.Size=1 Then If lastcrumbstate=Crumbs.Size-1 Then For i = 2 To 4 Crumbs.Add("Item " & i) Next Else lastcrumbstate=Crumbs.Size-1 End If Else lastcrumbstate=-1 End If B4XBreadCrumb1.Items = Crumbs Sure there's another way to do it .. Upvote 0
If I understand correctly... Add the items to the BreadCrum control in Designer: ---> Item1|Item2|Item3|Item4 In Globals: Code: lastcrumbstate as Int In BreadCrumb Event_Click Code: If Crumbs.Size=1 Then If lastcrumbstate=Crumbs.Size-1 Then For i = 2 To 4 Crumbs.Add("Item " & i) Next Else lastcrumbstate=Crumbs.Size-1 End If Else lastcrumbstate=-1 End If B4XBreadCrumb1.Items = Crumbs Sure there's another way to do it ..
Erel B4X founder Staff member Licensed User Longtime User Jun 4, 2019 #3 1. Nothing happens automatically. 2. What do you want to do when the user clicks on an item? If you want the "standard behavior" of bread crumb controls which means that the items on the right are removed: Code: Sub B4XBreadCrumb1_CrumbClick (Crumbs As List) B4XBreadCrumb1.Items = Crumbs End Sub Last edited: Jun 4, 2019 Upvote 0
1. Nothing happens automatically. 2. What do you want to do when the user clicks on an item? If you want the "standard behavior" of bread crumb controls which means that the items on the right are removed: Code: Sub B4XBreadCrumb1_CrumbClick (Crumbs As List) B4XBreadCrumb1.Items = Crumbs End Sub
asales Expert Licensed User Longtime User Jun 4, 2019 #4 Erel said: 1. Nothing happens automatically. Click to expand... OK Erel said: 2. What do you want to do when the user clicks on an item? Click to expand... The same behavior of the gif image, but the code from the post above works. Upvote 0
Erel said: 1. Nothing happens automatically. Click to expand... OK Erel said: 2. What do you want to do when the user clicks on an item? Click to expand... The same behavior of the gif image, but the code from the post above works.