Modified source engine (2017) developed by valve and leaked in 2020. Not for commercial purporses
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

53 lines
1.2 KiB

//========= 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");
}