//
//	Copyright © 2006 Nemetschek North America 
//	All Rights Reserved.
//
// Created by Vladislav Stanev

#pragma once

#include "ControlsContainer.h"
#include "DialogEventArgs.h"

namespace VectorWorks
{
	namespace VWUI
	{
		class VWTabPaneCtrl : public VWControlsContainer
		{
			friend class VWDialog;
		public:
							VWTabPaneCtrl(TControlID id);
			virtual			~VWTabPaneCtrl();

			virtual bool	CreateControl(VWDialog* pDlg, const TXString& text, bool bHasFrame=true);

		// events
		protected:
			virtual void			OnSetUpEvent();
			virtual void			OnSetDownEvent();
			virtual void			OnUpdateUI();
			virtual bool			CanEnableOK();
			virtual	void			OnDDXInitialize();

		// events dispatcher map
		protected:
			DEFINE_EVENT_DISPATH_MAP;
		};
	}
}