W willisgt Active Member Licensed User Feb 15, 2008 #1 I'm back into my wacky ways of creating controls on the fly; I'm placing buttons, lablels, and such on panels which are created at runtime. Is there a method for determining the name of the panel that a given control is on? I was hoping for Control( name ).Parent, but no such luck... Gary
I'm back into my wacky ways of creating controls on the fly; I'm placing buttons, lablels, and such on panels which are created at runtime. Is there a method for determining the name of the panel that a given control is on? I was hoping for Control( name ).Parent, but no such luck... Gary
agraham Expert Licensed User Longtime User Feb 15, 2008 #2 willisgt said: I was hoping for Control( name ).Parent, but no such luck Click to expand... Why not keep track of them as you add, and maybe change parent, using a Hashtable or SortedList from my collections library http://www.b4x.com/forum/showthread.php?t=1682
willisgt said: I was hoping for Control( name ).Parent, but no such luck Click to expand... Why not keep track of them as you add, and maybe change parent, using a Hashtable or SortedList from my collections library http://www.b4x.com/forum/showthread.php?t=1682
W willisgt Active Member Licensed User Feb 15, 2008 #3 I was actually thinking of just adding a table to the form, and storing the control name along with its parent. Just looking for a simpler solution. Gary
I was actually thinking of just adding a table to the form, and storing the control name along with its parent. Just looking for a simpler solution. Gary
Erel B4X founder Staff member Licensed User Longtime User Feb 15, 2008 #4 Maybe you can use GetControls which returns the sons of a specific control.