StatusBar.cpp 675 B

12345678910111213141516171819202122232425262728
  1. #include "UnitTest.h"
  2. #include "Gwen/Controls/StatusBar.h"
  3. #include "Gwen/Controls/Label.h"
  4. using namespace Gwen;
  5. class StatusBar : public GUnit
  6. {
  7. public:
  8. GWEN_CONTROL_INLINE( StatusBar, GUnit )
  9. {
  10. Gwen::Controls::StatusBar* pStatus = new Gwen::Controls::StatusBar( this );
  11. pStatus->Dock( Pos::Bottom );
  12. Gwen::Controls::Label* pLeft = new Gwen::Controls::Label( pStatus );
  13. pLeft->SetText(L"Label Added to left");
  14. pStatus->AddControl( pLeft, false );
  15. Gwen::Controls::Label* pRight = new Gwen::Controls::Label( pStatus );
  16. pRight->SetText(L"Label Added to Right");
  17. pStatus->AddControl( pRight, true );
  18. }
  19. };
  20. DEFINE_UNIT_TEST( StatusBar, L"StatusBar" );