summaryrefslogtreecommitdiff
path: root/utils/vgui_panel_zoo/TooltipDemo.cpp
blob: 4724eb8227f5a2997f5ef8014df47638a2d35d3d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
//========= Copyright Valve Corporation, All rights reserved. ============//
//
// Purpose: 
//
// $NoKeywords: $
//=============================================================================//
#include "DemoPage.h"

#include <VGUI/IVGui.h>
#include <KeyValues.h>
#include <vgui_controls/ToggleButton.h>
#include <vgui_controls/Tooltip.h>

using namespace vgui;


class TooltipsDemo: public DemoPage
{
	public:
		TooltipsDemo(Panel *parent, const char *name);
		~TooltipsDemo();
	
	private:

};

//-----------------------------------------------------------------------------
// Purpose: Constructor
//-----------------------------------------------------------------------------
TooltipsDemo::TooltipsDemo(Panel *parent, const char *name) : DemoPage(parent, name)
{
	ToggleButton *pButton = new ToggleButton (this, "RadioDesc5", "");
	pButton->GetTooltip()->SetTooltipFormatToSingleLine();

	LoadControlSettings("Demo/SampleToolTips.res");
}

//-----------------------------------------------------------------------------
// Purpose: Destructor
//-----------------------------------------------------------------------------
TooltipsDemo::~TooltipsDemo()
{
}




Panel* TooltipsDemo_Create(Panel *parent)
{
	return new TooltipsDemo(parent, "TooltipsDemo");
}