Thread: parent delay?
View Single Post
  #5  
Old 02-01-2007, 06:37 AM
xXziroXx xXziroXx is offline
Malorian
xXziroXx's Avatar
Join Date: May 2004
Posts: 5,289
xXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant future
Quote:
Originally Posted by zokemon View Post
I was going to say that...

Using new does not define the parent until after the new is finished. It is better to do the addcontrol() inside the new before you call the parent or to just use onResize() functions for defining child positions (You could make a chain reaction from the GUIControl all the way down to the position of a radio button or something and then call the function at the end of your GUI Creation script so everything get positioned)
Seeing as though Ive never done that, care to give an example?
__________________
Follow my work on social media post-Graal:Updated august 2025.
Reply With Quote