Click here to Skip to main content
15,891,763 members
Articles / Programming Languages / C++/CLI

AnimatedRollupControl with C++/CLI

Rate me:
Please Sign up or sign in to vote.
4.89/5 (5 votes)
24 Aug 2008CPOL23 min read 33.3K   1.3K   20  
3dsMax style rollup control animated in C++/CLI
#pragma once

using namespace System;
using namespace System::ComponentModel;
using namespace System::Collections;
using namespace System::Windows::Forms;
using namespace System::Data;
using namespace System::Drawing;



	/// <summary>
	/// Summary for RollupCtrlPageDialog
	/// A simple way to transfer a Panel of controls to a rollup page.
	/// The RollupCtrlPageDialog is a custom form that provides a publicly accessible
	/// data panel on which the developer can design a rollup control page. All 
	/// rollup control pages to be placed into a Rollup Contol need to inherit from this class. 
	/// When a page that inherits from this class is added to the rollup control the DataPanel 
	/// container is simply placed inside a newly created Rollup control Page and the page
	/// is added to the rollup control.
	///
	/// WARNING: If you change the name of this class, you will need to change the
	///          'Resource File Name' property for the managed resource compiler tool
	///          associated with all .resx files this class depends on.  Otherwise,
	///          the designers will not be able to interact properly with localized
	///          resources associated with this form.
	/// </summary>
	public ref class RollupCtrlPageDialog : public System::Windows::Forms::Form
	{
	public:
		RollupCtrlPageDialog(void)
		{
			InitializeComponent();
			//
			//TODO: Add the constructor code here
			//
		}

		property Panel^ DataPanel
		{
			Panel^ get(){return panel;}
		}

	protected:
		/// <summary>
		/// Clean up any resources being used.
		/// </summary>
		~RollupCtrlPageDialog()
		{
			if (components)
			{
				delete components;
			}
		}
	protected:
		/// <summary>
		/// User interface panel to contain the group of controls that make up 
		/// the rollup Control Page. This Panel will be transfered onto a new
		/// Page when it is created.
		/// </summary>
		System::Windows::Forms::Panel^  panel;

	private:
		/// <summary>
		/// Required designer variable.
		/// </summary>
		System::ComponentModel::Container ^components;

#pragma region Windows Form Designer generated code
		/// <summary>
		/// Required method for Designer support - do not modify
		/// the contents of this method with the code editor.
		/// </summary>
		void InitializeComponent(void)
		{
			this->panel = (gcnew System::Windows::Forms::Panel());
			this->SuspendLayout();
			// 
			// panel
			// 
			this->panel->Location = System::Drawing::Point(40, 40);
			this->panel->Name = L"panel";
			this->panel->Size = System::Drawing::Size(200, 100);
			this->panel->TabIndex = 0;
			// 
			// RollupCtrlPageDialog
			// 
			this->AutoScaleDimensions = System::Drawing::SizeF(6, 13);
			this->AutoScaleMode = System::Windows::Forms::AutoScaleMode::Font;
			this->ClientSize = System::Drawing::Size(284, 264);
			this->Controls->Add(this->panel);
			this->Name = L"RollupCtrlPageDialog";
			this->Text = L"RollupCtrlPageDialog";
			this->ResumeLayout(false);

		}
#pragma endregion
	};

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Australia Australia
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.

Comments and Discussions