2022-05-13 23:42:41 -04:00
|
|
|
#include "UnitTest.h"
|
|
|
|
|
#include "Gwen/Controls/StatusBar.h"
|
|
|
|
|
#include "Gwen/Controls/Label.h"
|
|
|
|
|
|
|
|
|
|
using namespace Gwen;
|
|
|
|
|
|
|
|
|
|
class StatusBar : public GUnit
|
|
|
|
|
{
|
2026-06-03 15:08:51 +01:00
|
|
|
public:
|
|
|
|
|
GWEN_CONTROL_INLINE(StatusBar, GUnit)
|
2022-05-13 23:42:41 -04:00
|
|
|
{
|
2026-06-03 15:08:51 +01:00
|
|
|
Gwen::Controls::StatusBar* pStatus = new Gwen::Controls::StatusBar(this);
|
|
|
|
|
pStatus->Dock(Pos::Bottom);
|
2022-05-13 23:42:41 -04:00
|
|
|
|
2026-06-03 15:08:51 +01:00
|
|
|
Gwen::Controls::Label* pLeft = new Gwen::Controls::Label(pStatus);
|
2022-05-13 23:42:41 -04:00
|
|
|
pLeft->SetText(L"Label Added to left");
|
2026-06-03 15:08:51 +01:00
|
|
|
pStatus->AddControl(pLeft, false);
|
2022-05-13 23:42:41 -04:00
|
|
|
|
2026-06-03 15:08:51 +01:00
|
|
|
Gwen::Controls::Label* pRight = new Gwen::Controls::Label(pStatus);
|
2022-05-13 23:42:41 -04:00
|
|
|
pRight->SetText(L"Label Added to Right");
|
2026-06-03 15:08:51 +01:00
|
|
|
pStatus->AddControl(pRight, true);
|
2022-05-13 23:42:41 -04:00
|
|
|
}
|
|
|
|
|
};
|
|
|
|
|
|
2026-06-03 15:08:51 +01:00
|
|
|
DEFINE_UNIT_TEST(StatusBar, L"StatusBar");
|