gInk.Root.StartInk C# (CSharp) Method

StartInk() public method

public StartInk ( ) : void
return void
		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();
		}
		public void StopInk()

Usage Example

Esempio n. 1
0
        public bool PreFilterMessage(ref Message m)
        {
            if (m.Msg == 0x0312)
            {
                //Keys key = (Keys)(((int)m.LParam >> 16) & 0xFFFF);                  // The key of the hotkey that was pressed.
                //int modifier = (int)m.LParam & 0xFFFF;       // The modifier of the hotkey that was pressed.
                //int id = m.WParam.ToInt32();                                        // The id of the hotkey that was pressed.

                if (Root.FormCollection == null && Root.FormDisplay == null)
                {
                    Root.StartInk();
                }
                else if (Root.PointerMode)
                {
                    //Root.UnPointer();
                    Root.SelectPen(Root.LastPen);
                }
                else
                {
                    //Root.Pointer();
                    Root.SelectPen(-2);
                }
            }
            return(false);
        }
All Usage Examples Of gInk.Root::StartInk