ivanomonti Expert Licensed User Longtime User Apr 28, 2020 #1 Good morning everyone, how can I remove an object inside a bread (B4XView) ?
ivanomonti Expert Licensed User Longtime User Apr 28, 2020 #3 [QUOTE = "Erel, post: 731285, membro: 1"] What is a bread? [/CITAZIONE] yes Upvote 0
Erel B4X founder Staff member Licensed User Longtime User Apr 28, 2020 #4 Sorry but I don't understand... Upvote 0
D Deleted member 103 Guest Apr 28, 2020 #5 ivanomonti said: Good morning everyone, how can I remove an object inside a bread (B4XView) ? Click to expand... B4X: bread.RemoveViewAt(index) bread = panel Upvote 0
ivanomonti said: Good morning everyone, how can I remove an object inside a bread (B4XView) ? Click to expand... B4X: bread.RemoveViewAt(index) bread = panel
LucaMs Expert Licensed User Longtime User Apr 28, 2020 #7 B4X: Dim b As B4XView Dim p As Pane = b p.RemoveNodeAt (...) Upvote 0
ivanomonti Expert Licensed User Longtime User Apr 28, 2020 #8 @LucaMs, that is, I have to convert the object back into bread and from there remove the object concerned Upvote 0
@LucaMs, that is, I have to convert the object back into bread and from there remove the object concerned
LucaMs Expert Licensed User Longtime User Apr 28, 2020 #9 ivanomonti said: @LucaMs, that is, I have to convert the object back into bread and from there remove the object concerned Click to expand... Another way is to use GetAllViewsRecursive and check the B4XView tag (if you set it with an identifier). B4X: ... If MyB4XView.Tag = "..." Then MyB4XView.RemoveViewFromParent Exit End If ... Upvote 0
ivanomonti said: @LucaMs, that is, I have to convert the object back into bread and from there remove the object concerned Click to expand... Another way is to use GetAllViewsRecursive and check the B4XView tag (if you set it with an identifier). B4X: ... If MyB4XView.Tag = "..." Then MyB4XView.RemoveViewFromParent Exit End If ...
ivanomonti Expert Licensed User Longtime User Apr 28, 2020 #10 Tank @LucaMs B4X: For Each n As Node In base.GetAllViewsRecursive If n Is Button Then Dim btTemp As Button = n If btTemp.Id = "CalendarButton" Then btTemp.RemoveNodeFromParent End If End If Next Upvote 0
Tank @LucaMs B4X: For Each n As Node In base.GetAllViewsRecursive If n Is Button Then Dim btTemp As Button = n If btTemp.Id = "CalendarButton" Then btTemp.RemoveNodeFromParent End If End If Next
Erel B4X founder Staff member Licensed User Longtime User Apr 28, 2020 #11 B4X: Dim pnl As B4XView 'this is your panel pnl.Get(7).RemoveFromParent 'remove child #8 Upvote 0
ivanomonti Expert Licensed User Longtime User Apr 28, 2020 #12 Erel said: B4X: Dim pnl As B4XView 'this is your panel pnl.Get(7).RemoveFromParent 'remove child #8 Click to expand... Thank 10000 Upvote 0
Erel said: B4X: Dim pnl As B4XView 'this is your panel pnl.Get(7).RemoveFromParent 'remove child #8 Click to expand... Thank 10000