VGUI PanelListPanel: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
(New page: A PanelListPanel is a vgui2 element defined in the vgui_controls library, in the file PanelListPanel.cpp. PanelListPanels are available in all source games. PanelListPanels are used for di...)
 
No edit summary
Line 1: Line 1:
A PanelListPanel is a vgui2 element defined in the vgui_controls library, in the file PanelListPanel.cpp. PanelListPanels are available in all source games. PanelListPanels are used for displaying a list of controls, such as imagePanels.
A PanelListPanel is a vgui2 element defined in the vgui_controls library, in the file PanelListPanel.cpp. PanelListPanels are available in all source games. PanelListPanels display a list of user specified label, control pairs.


[[Image:PanelListPanel.jpg|thumb|This is a screenshot of a skeleton PanelListPanel.]]
[[Image:PanelListPanel.jpg|thumb|This is a screenshot of a skeleton PanelListPanel.]]

Revision as of 21:55, 6 June 2009

A PanelListPanel is a vgui2 element defined in the vgui_controls library, in the file PanelListPanel.cpp. PanelListPanels are available in all source games. PanelListPanels display a list of user specified label, control pairs.

This is a screenshot of a skeleton PanelListPanel.

Example Usage

Before creating anything, we first need to include the PanelListPanel header file.

#include <vgui_controls/PanelListPanel.h>

PanelListPanels can be created via the c++ keyword new with a simple call to PanelListPanel.

vgui::PanelListPanel* myPanel = new PanelListPanel(this, "myPanel");