Esempio n. 1
0
        void CreateContext(ref string name)
        {
            if (Tablet.GetCtxHandleByName(ref name) == IntPtr.Zero)
            {
                Tablet.AddContext(name, ref digitizing);
                Tablet.SelectContext(ref name);
                Tablet.Context.Options.IsPenCtx           = Tablet.Context.Options.IsSystemCtx = true;
                Tablet.Context.Options.NotifyCursorChange = true;

                Tablet.Connected = true;

                Tablet.Context.OutputExtentX = Tablet.Context.InputExtentX;
                Tablet.Context.OutputExtentY = Tablet.Context.InputExtentY;
                Tablet.Context.Update();
            }
        }