Summary description for PalView.
Inheritance: System.Windows.Forms.Form
Ejemplo n.º 1
0
        public Editor(PckImage curr)
        {
            edit    = new EditorPanel(curr);
            buttons = new ButtonPanel();
            size    = new TrackBar();

            size.Minimum = 1;
            size.Maximum = 10;

            InitializeComponent();

            Controls.Add(edit);
            Controls.Add(buttons);
            Controls.Add(size);

            buttons.Location = new Point(0, 0);
            buttons.Width    = buttons.PreferredWidth;

            size.Left = buttons.Right;
            size.Top  = buttons.Top;
            edit.Top  = size.Bottom;
            edit.Left = buttons.Right;

            ClientSize = new Size(
                buttons.PreferredWidth + edit.Editor.PreferredWidth,
                edit.Editor.PreferredHeight + size.Height);

            palView          = new PalView();
            palView.Closing += new CancelEventHandler(palClose);

            palView.PaletteIndexChanged += new PaletteClickDelegate(edit.Editor.SelectColor);
            size.Scroll += new EventHandler(sizeScroll);
        }
Ejemplo n.º 2
0
		public Editor(PckImage curr)
		{
			edit = new EditorPanel(curr);
			buttons = new ButtonPanel();
			size = new TrackBar();

			size.Minimum=1;
			size.Maximum=10;

			InitializeComponent();

			Controls.Add(edit);
			Controls.Add(buttons);
			Controls.Add(size);
            
			buttons.Location = new Point(0,0);
			buttons.Width = buttons.PreferredWidth;

			size.Left=buttons.Right;
			size.Top=buttons.Top;
			edit.Top=size.Bottom;
			edit.Left=buttons.Right;

			ClientSize=new Size(buttons.PreferredWidth+edit.Editor.PreferredWidth,
								edit.Editor.PreferredHeight+size.Height);

			palView = new PalView();
			palView.Closing+=new CancelEventHandler(palClose);

			palView.PaletteIndexChanged+=new PaletteClickDelegate(edit.Editor.SelectColor);
			size.Scroll+=new EventHandler(sizeScroll);
		}