F fatman Active Member Licensed User Longtime User Jan 6, 2014 #1 Hi Folks, trying to understand the treeview example by Derez (http://www.b4x.com/android/forum/threads/treeview.8824/) i have a question. This is a part of Derez´s code: Sub lbl_click Dim lb As Label Dim tnode As node lb = Sender Msgbox("in this sub do what you want with this selected item" & CRLF & lb.Text & CRLF & " For example - color the panel","") tnode = lb.Tag tnode.pnl.Color = Colors.blue ' Added by myself Activity.title = lb.tag ' End Sub I added Activity.title = lb.tag showing me all the informations i need. But this is shown only ONCE. Why is that the case and what do i have to do showing the information stored the tags everytime i hit the label? Any hints are welcome... Thx! Fatman
Hi Folks, trying to understand the treeview example by Derez (http://www.b4x.com/android/forum/threads/treeview.8824/) i have a question. This is a part of Derez´s code: Sub lbl_click Dim lb As Label Dim tnode As node lb = Sender Msgbox("in this sub do what you want with this selected item" & CRLF & lb.Text & CRLF & " For example - color the panel","") tnode = lb.Tag tnode.pnl.Color = Colors.blue ' Added by myself Activity.title = lb.tag ' End Sub I added Activity.title = lb.tag showing me all the informations i need. But this is shown only ONCE. Why is that the case and what do i have to do showing the information stored the tags everytime i hit the label? Any hints are welcome... Thx! Fatman
LucaMs Expert Licensed User Longtime User Jan 6, 2014 #2 i'm not sure: perhaps you mean that the title was changed only once? should try activity.invalidate, in this case Upvote 0
i'm not sure: perhaps you mean that the title was changed only once? should try activity.invalidate, in this case
derez Expert Licensed User Longtime User Jan 6, 2014 #3 Please use the new treeview class for your testing. http://www.b4x.com/android/forum/threads/class-treeview-class-tree-and-node.19082/ Upvote 0
Please use the new treeview class for your testing. http://www.b4x.com/android/forum/threads/class-treeview-class-tree-and-node.19082/
F fatman Active Member Licensed User Longtime User Jan 8, 2014 #4 Thank you both! I will have a look at your new treeview class Erel. Fatman Upvote 0