[Plib-users] (no subject)
Brought to you by:
sjbaker
From: Jailall, R. R. <Rob...@jh...> - 2005-12-27 23:11:27
|
I am a new user of pui. I could not figure out how to do the following from the pui documentation: =20 I start off with a puGroup that has been constructed in a parent class. I want to add a new group of objects to this puGroup in a child class. How can I add this new group as a child node and have the existing child nodes slide over and resize the parent window? =20 To this end, I have tried using the puObject.add() function to add my new child puGroup from the child class. Then, I have tried to manually resize the window, calculate, and set what the new positions of the existing objects *should* be. =20 However, for reasons that are unknown to me, the parent window does not respond to the setSize command. Furthermore, getPosition only returns zero values when I use it on some of the existing child nodes in the parent group (interestingly, getSize brings back correct values). Thus, when I calculate the position of my new object, it ends up being (0,0). =20 Example (this is the order in which I would like things to display on the screen. Coords are (x,y) with the left and bottom of the window being zero): =20 start (from parent class): a (0,1) c (0,0) =20 end (in child class): a (0,2) b < insert (0,1) c (0,0) =20 Thanks for any help you can give. =20 Robert =20 |