The other way to do this is to do something with: void Panel::PaintTraverse(bool repaint, bool allowForce)
Where you can see the order that the Push/Pop occurs, what the parameters are and how the PaintBackground/Paint methods get called by default. You could invert the ordering for one panel if you override this function for your class of panel. Yahn -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of [EMAIL PROTECTED] Sent: Monday, April 11, 2005 9:59 AM To: hlcoders@list.valvesoftware.com Subject: Re: [hlcoders] Miscellaneous VGUI Questions > A call to MakePopup(bool showTaskbarIcon,bool disabled) in the child's > constructor will make its position independent of the parent. This > would probably be a much easier solution, if that's all you need to > do. Heh. Not quite. The following code paints the child before the baseclass, but the painting occurs in the parent's coordinate space: CClass::Paint() { ChildObject->Paint(); BaseClass::Paint(); } Thus the need for the push/pop: CClass::Paint() { PushMakeCurrent(foo); ChildObject->Paint(); PopMakeCurrent(bar); BaseClass::Paint(); } where 'foo' and 'bar' are associated with the child. The question is, what are the args supposed to mean? (I can make a guess, at least, for PushMakeCurrent()) -------------------------------------------------------------------- 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