DrawButtons() public method

public DrawButtons ( Graphics g, bool redrawbuttons, bool exiting = false ) : void
g Graphics
redrawbuttons bool
exiting bool
return void
Esempio n. 1
0
 public void ClearInk()
 {
     FormCollection.IC.Ink.DeleteStrokes();
     FormDisplay.ClearCanvus();
     FormDisplay.DrawButtons(true);
     FormDisplay.UpdateFormDisplay(true);
 }
Esempio n. 2
0
        public void StartInk()
        {
            if (FormDisplay != null || FormCollection != null)
            {
                return;
            }

            //Docked = false;
            FormDisplay      = new FormDisplay(this);
            FormCollection   = new FormCollection(this);
            FormButtonHitter = new FormButtonHitter(this);
            if (CurrentPen <= 0)
            {
                CurrentPen = 1;
            }
            SelectPen(CurrentPen);
            FormDisplay.Show();
            FormCollection.Show();
            FormDisplay.DrawButtons(true);

            if (UndoStrokes == null)
            {
                UndoStrokes    = new Ink[8];
                UndoStrokes[0] = FormCollection.IC.Ink.Clone();
                UndoDepth      = 0;
                UndoP          = 0;
            }

            //UponUndoStrokes = FormCollection.IC.Ink.Clone();
        }
Esempio n. 3
0
 public void Pick_End()
 {
     InPick = false;
     FormDisplay.ClearCanvus();
     FormDisplay.DrawButtons(false);
     FormDisplay.UpdateFormDisplay(true);
 }
Esempio n. 4
0
        public void StartInk()
        {
            if (FormDisplay != null || FormCollection != null)
            {
                return;
            }

            //Docked = false;
            FormDisplay      = new FormDisplay(this);
            FormCollection   = new FormCollection(this);
            FormButtonHitter = new FormButtonHitter(this);

            FormDisplay.Show();
            FormCollection.Show();
            FormDisplay.DrawButtons(true);
        }
Esempio n. 5
0
        public void StartInk()
        {
            if (FormDisplay != null || FormCollection != null)
            {
                return;
            }

            //Docked = false;
            FormDisplay      = new FormDisplay(this);
            FormCollection   = new FormCollection(this);
            FormButtonHitter = new FormButtonHitter(this);
            if (CurrentPen < 0)
            {
                CurrentPen = 0;
            }
            if (!PenEnabled[CurrentPen])
            {
                CurrentPen = 0;
                while (CurrentPen < MaxPenCount && !PenEnabled[CurrentPen])
                {
                    CurrentPen++;
                }
                if (CurrentPen == MaxPenCount)
                {
                    CurrentPen = -2;
                }
            }
            SelectPen(CurrentPen);
            SetInkVisible(true);
            FormCollection.ButtonsEntering = 1;
            FormDisplay.Show();
            FormCollection.Show();
            FormDisplay.DrawButtons(true);

            if (UndoStrokes == null)
            {
                UndoStrokes    = new Ink[8];
                UndoStrokes[0] = FormCollection.IC.Ink.Clone();
                UndoDepth      = 0;
                UndoP          = 0;
            }

            //UponUndoStrokes = FormCollection.IC.Ink.Clone();
        }
Esempio n. 6
0
File: Root.cs Progetto: geovens/gInk
		public void StartInk()
		{
			if (FormDisplay != null || FormCollection != null)
				return;

			//Docked = false;
			FormDisplay = new FormDisplay(this);
			FormCollection = new FormCollection(this);
			FormButtonHitter = new FormButtonHitter(this);
			if (CurrentPen <= 0)
				CurrentPen = 1;
			SelectPen(CurrentPen);
			FormDisplay.Show();
			FormCollection.Show();
			FormDisplay.DrawButtons(true);

			UndoStrokes = new Ink[8];
			UndoStrokes[0] = FormCollection.IC.Ink.Clone();
			UndoDepth = 0;
			UndoP = 0;

			//UponUndoStrokes = FormCollection.IC.Ink.Clone();
		}