I would do the other thing I mentioned (having another "parent" panel z
sorted behind your other one, then the positions are the same if it's
the same size as it's sibling.

All Push does is store off a relative x, y offset and turn on clipping
and start batching text rendering calls.  Pop does the inverse as well
as sending the text off to the renderer

Yahn

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of
[EMAIL PROTECTED]
Sent: Monday, April 11, 2005 6:04 AM
To: hlcoders@list.valvesoftware.com
Subject: Re: [hlcoders] Miscellaneous VGUI Questions

> The Push/Pop is used by the Paint/PaintTraverse methods to deal with
> the panels GetPos(x,y) offsets relative to the parent and do clipping
> of children inside the parent rectangle.  I wouldn't mess with these
calls.

Bingo.  That's the reason why I want to mess with these calls :)

Since evidently I can't make VGUI2 draw children before parents, to do
it manually I could just call the child's Paint() method before I do the
drawing for the parent itself.  Unfortunately, though, as of right now
the child seems to want to use the GetPos() offsets relative to the
parent, and not itself, in its own Paint() code.  Thus, the Push()/Pop()
will be useful.

So, mind enlightening me on its usage?

--------------------------------------------------------------------
mail2web - Check your email from the web at http://mail2web.com/ .



_______________________________________________
To unsubscribe, edit your list preferences, or view the list archives,
please visit:
http://list.valvesoftware.com/mailman/listinfo/hlcoders


_______________________________________________
To unsubscribe, edit your list preferences, or view the list archives, please 
visit:
http://list.valvesoftware.com/mailman/listinfo/hlcoders

Reply via email to