You should use a Frame, that is the base container for rendering and keyboard/mouse focus. Trying to do it manually will just involve a lot of fighting the built in VGUI2 system.
- Alfred ----Original Message---- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Skyler York Sent: Tuesday, August 02, 2005 7:44 PM To: [email protected] Subject: [hlcoders] Panel input / VGUI context > I'm playing around with the idea of an interactive HUD, and I want > the element panels on screen to be able to respond to user input. > That's not the heart of the problem though, the problem is actually > getting the engine to switch into the VGUI context, where a cursor > appears and all mouse and keyboard input is fed to the VGUI system > (such as frame has focus). As of right now, the only way I've seen > that happen is using a Frame, or more specifically through a popup > registered with ISurface::CreatePopup. I'd like to get this behavior > without dealing with the popup system but am unsure as to how to work > with the surface interface to accomplish what I want. I see some > functions such as LockCursor() and UnlockCursor(), but don't know if > those are the functions I'm looking for or the proper way to use > them. > > I suspect that one of the Valve folks would know best, but anyone who > might know something go ahead and chime in :) > > _______________________________________________ > 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

