Beispiel #1
0
        public LineDisplaySimulator()
        {
            // This is a non-Pnp device so we must set its device path here
            DevicePath = "Microsoft LineDisplay Simulator";
            Properties.DeviceDescription = "Microsoft LineDisplay Simulator";

            // Custom Glyphs are supported
            Properties.CapCustomGlyph = true;

            // Bitmaps are supported
            Properties.CapBitmap = true;

            // Blinking is supported
            Properties.CapBlink     = DisplayBlink.Each;
            Properties.CapBlinkRate = true;

            // Reverse video supported
            Properties.CapReverse = DisplayReverse.Each;

            // Underline or no cursor supported
            Properties.CapCursorType = DisplayCursors.Underline;

            // Sign up for events
            ScreenModeChangedEvent    += new ScreenModeChangedEventHandler(LineDisplaySimulator_ScreenModeChangedEvent);
            CurrentWindowChangedEvent += new CurrentWindowChangedEventHandler(LineDisplaySimulator_CurrentWindowChangedEvent);
            BlinkRateChangedEvent     += new BlinkRateChangedEventHandler(LineDisplaySimulator_BlinkRateChangedEvent);
            CursorTypeChangedEvent    += new CursorTypeChangedEventHandler(LineDisplaySimulator_CursorTypeChangedEvent);
        }
Beispiel #2
0
		public LineDisplaySimulator()
		{
			// This is a non-Pnp device so we must set its device path here
			DevicePath = "Microsoft LineDisplay Simulator";
			Properties.DeviceDescription = "Microsoft LineDisplay Simulator";
			
			// Custom Glyphs are supported
			Properties.CapCustomGlyph = true;

			// Bitmaps are supported
			Properties.CapBitmap = true;

			// Blinking is supported
			Properties.CapBlink = DisplayBlink.Each;
			Properties.CapBlinkRate = true;

			// Reverse video supported
			Properties.CapReverse = DisplayReverse.Each;
            			
			// Underline or no cursor supported
			Properties.CapCursorType = DisplayCursors.Underline;
			
			// Sign up for events
			ScreenModeChangedEvent += new ScreenModeChangedEventHandler(LineDisplaySimulator_ScreenModeChangedEvent);
			CurrentWindowChangedEvent += new CurrentWindowChangedEventHandler(LineDisplaySimulator_CurrentWindowChangedEvent);
			BlinkRateChangedEvent += new BlinkRateChangedEventHandler(LineDisplaySimulator_BlinkRateChangedEvent);
			CursorTypeChangedEvent += new CursorTypeChangedEventHandler(LineDisplaySimulator_CursorTypeChangedEvent);
		}