DevComponents.DotNetBar.Keyboard Holds information about a single virtual keyboard Key. Creates a new Key object. The text displayed on the key. The information that will be sent to the attached control. The text in the upper part of the key, that provides a hint for the user about what the key does. The way the key looks. The index of the layout to switch to. Returns a string that represents the current Key. A string that represents the current Key. Gets the caption on the key. Gets the actual key-information that is sent to the attached control. The format of this information must confirm to the description for the SendKeys.Send function. For more details, see: http://msdn.microsoft.com/en-us/library/system.windows.forms.sendkeys.aspx Gets the bounds of the key. Gets a value representing the way the key looks on the virtual keyboard. A key might look normal, lighter, darker or with a pressed effect. Gets the index of the layout to change to, if this key is pressed. A positive value represents a new layout. KeyboardLayout.NoChange and KeyboardLayout.PreviousLayout constants can also be used with special meaning. If this is a positive integer ( >= 0 ), it represents the index of the layout to switch to when this key is pressed. In this case, the keyboard does not send any key information to the attached control (the Info field is ignored), only changes the layout. If this is KeyboardLayout.NoChange the keyboard will send the info to the attached control. If this is KeyboardLayout.PreviousLayout the keyboard will switch to the previous set layout. The keyboard maintains internally a stack of all used layouts. If no more layouts in the stakc, the keyboard switches to the layout with index 0. Gets the index of the layout to change to, when this key is double clicked. A positive value represents a new layout. KeyboardLayout.NoChange and KeyboardLayout.PreviousLayout constants can also be used with special meaning. If this is a positive integer ( >= 0 ), it represents the index of the layout to switch to when this key is pressed. In this case, the keyboard does not send any key information to the attached control (the Info field is ignored), only changes the layout. If this is KeyboardLayout.NoChange the keyboard will send the info to the attached control. If this is KeyboardLayout.PreviousLayout the keyboard will switch to the previous set layout. The keyboard maintains internally a stack of all used layouts. If no more layouts in the stakc, the keyboard switches to the layout with index 0. Gets the text that will be displayed in the upper part of the keyboard, as a hint for what the key does, usually in combination with a modifier key (e.g. Underline, Undo, etc). Specifies the way a key looks, specifically what color it uses from the ColorTable. Key should be drawn as a normal key colors. Key should be drawn with lighter colors. Key should be drawn with darker colors. Key should be drawn with the pressed color. Key should be drawn with the toggled color. Represents a layout for a virtual keyboard. The Keys have coordinates in the KeyboardLayout specified in logical layout units. By default for this version of the control, a normal key is 10 logical units (LUs) width and 10 LUs height. A space between two keys is 1 LU. When rendering, we assume the whole Layout is stretched over the Keyboard control, so we need to change from LUs (ranging from 0 to layout.LogicalWidth) to pixels (ranging from 0 to control.Width). This allows the layout to be resized to almost any sizes. Indicates that a key should switch the Keyboard to the previous layout. Indicates that a key does not switch to any layout. Tests if a certain point hits a key on the virtual keyboard. The x-coordinate of the hit point (in logical units of this KeyboardLayout) The y-coordinate of the hit point (in logical units of this KeyboardLayout) Returns the key that was hit, or null if the point didn't hit any keys. Gets the collection of the Keys in this KeyboardLayout. Gets the logical width of this KeyboardLayout. Gets the logical height of this KeyboardLayout. Represents a layout for a virtual keyboard in which keys are defined in a linear way. This class allows creation of layouts in which keys can be ordered from left to right and from top to bottom. With the linear layout, the keys are allowed to have any width. The height, however, must be the same. This layout is build by adding to it spaces, keys and new lines. A key represents a virtual key AND a space after it. A space represents a placeholder between two keys and it is used when there is need for a larger space between two certain keys A new line represents the fact that a new line of keys should be defined. The default virtual keyboard of the VirtualKeyboard control is defined in the following way: AddKey("q"); AddKey("w"); AddKey("e"); // ... AddKey("p"); AddKey("Backspace"); AddLine(); // Starts a new row of keys. AddSpace(4); // Creates a larger space at the beginning of the second row. AddKey("a"); AddKey("s"); // ... The logical size of the space between two keys. The logical size of a key. Adds a space to this LinearKeyboardLayout. The size of the space, in logical units. Starts a new row of keys in this LinearKeyboardLayout. Adds a new key to this LinearKeayboardLayout. The text displayed on the key. The information that will be sent to the attached control. The text in the upper part of the key, that provides a hint for the user about what the key does. The width of the key, in logical units. The height of the key, in logical units. The way the key looks. The index of the layout to switch to. The index of the layout to switch to, when key is double clicked. Represents a Virtual Keyboard. Each Keyboard has a collection of KeyboardLayout objects. The Keyboard also maintains the current Layout among all its layouts. Switches the Keyboard to the previous layout. Switches the Keyboard to the first layout and resets the layout stack. Creates the default Keyboard populated with common layouts and functionality. A new Keyboard instance representing a default keyboard. Gets the collection of the keyboard layouts in this Keyboard. Gets or sets the current layout index of this Keyboard. Gets the current layout of this Keyboard. Contains a collection of Key objects. Contains a collection of KeyboardLayout objects. Creates a new floating virtual keyboard. Represents a renderer for a VirtualKeyboard. Draws the top bar of the VirtualKeyboard. Draws the background of the VirtualKeyboard. Provides context information. Draws a key of the VirtualKeyboard. Provides context information. Called when the control starts rendering a new frame. Provides context information. Called after the control finished rendering the frame. Gets or sets the ColorTable used by this renderer to render the virtual keyboard. Represents a VirtualKeyboard renderer with a flat style. Starts rendering a new frame with the black style. This gives the renderer a chance to cash some resources. Ends rendering a new frame with the black style. This gives the renderer a chance to free resources used during the frame. Creates a new renderer for the black style. Draws the background of a VirtualKeyboard. Provides context information. Draws the key of a VirtualKeyboard. Provides context information. Gets or sets whether anti-alias smoothing is used while painting. Default value is true. Provides data for Key rendering. Creates a new instance and initializes it with provided values. The Graphics object to be used for rendering. The Key instance being rendered. Indicates if the key is currently hold down. The rectangle in which to paint. Gets a reference to the Key instance being rendered. Gets a reference to the Graphics object to be used for rendering. Gets a value indicating if this key is currently down. Gets the rectangle in which to paint. Provides data for rendering the background of a VirtualKeyboard. Creates a new instance and initializes it with provided values. The Graphics object to be used for rendering. The area where the background should be drawn. Gets a reference to the Graphics object to be used for rendering. Gets the rectangle in which to paint. Creates a new instance and initializes it with provided values. The size of the background area. The font of the control. The current KeyboardLayout that will be rendered in this frame. Gets a reference to the Graphics object to be used for rendering. Gets the rectangle in which to paint. Gets the size of the background area in which to render the keyboard. Gets the font on the control. Gets the current KeyboardLayout which will be rendered in this frame. Gets a reference to the Graphics object to be used for rendering. Gets the rectangle in which to paint. Gets the font on the control. Gets a reference to the Key instance being rendered. Gets the area where background should be drawn. Gets a value indicating if this key is currently down. Raises SendingKey event. Provides event arguments. Raises KeySent event. Provides event arguments. Attaches the Keyboard to the specified control. The keyboard will automatically appear when the control receives input focus. The control to which the Keyboard will be attached. Detaches the Keyboard from the specified control. The control from which the Keyboard will be detached. Raises KeyboardOpening event. Provides event arguments. Raises KeyboardOpened event. Provides event arguments. Raises KeyboardClosing event. Provides event arguments. Raises KeyboardClosed event. Provides event arguments. Hides the keyboard. Clean up any resources being used. true if managed resources should be disposed; otherwise, false. Retursn the way the keyboard will be shown when controls receive focus. The control for which to retrieve the value. A TouchKeyboardStyle value defining the way the keyboard appears. Sets the way the keyboard will be shown when controls receive focus. If the control is a Form, all controls on the Form will support this way of displaying the touch keyboard. The control for which this value is specified. A TouchKeyboardStyle value defining the way the keyboard appears. Raises the TextChanged event. Occurs before the key pressed on keyboard is sent to target control and allows cancellation of the message Occurs after the key is sent to target control. Gets the reference to internal keyboard control that is used to provide Keyboard visual. Occurs before keyboard is shown and allows canceling of opening. Occurs after keyboard is shown. Gets keyboard target control. Occurs before the keyboard is closed and allows canceling of keyboard closing. Occurs after keyboard is closed. Gets or set the ColorTable used to draw the keyboard. Gets or set the Renderer used to draw the keyboard. Gets or sets the size of the keyboard, when shown inline. Gets or sets the coordinates of the upper-left corner of the keyboard when shown inline, relative to the form. Defines which borders of the keyboard are bound to the container. Gets or sets the coordinates of the upper-left corner of the keyboard when shown floating, relative to the screen. Indicates whether touch support is enabled when provided by hardware. Gets or sets the size of the keyboard, when shown floating. Gets or sets a text associated with this control. Occurs when the Text property has changed. Occurs when the Size property has changed. Occurs when the Location property has changed. Occurs when the Dock property has changed. Occurs when the FloatingSize property has changed. Occurs when the FloatingLocation property has changed. Defines the way the touch keyboard will appear when attached to controls. Touch keyboard will not be visible. Touch keyboard will appear inline in the form. Touch keyboard will appear floating on the screen. Defines delegate for keyboard events. Defines event arguments for keyboard based events. Initializes a new instance of the CancelKeyboardEventArgs class. Gets or sets the keyboard target control. Gets or sets the keyboard style. Raises PanBegin event. Provides event arguments. Raises PanBegin event. Provides event arguments. Raises PanBegin event. Provides event arguments. Raises Begin event. Provides event arguments. Raises End event. Provides event arguments. Raises PressAndTap event. Provides event arguments. Raises RotateBegin event. Provides event arguments. Raises Rotate event. Provides event arguments. Raises RotateEnd event. Provides event arguments. Raises TwoFingerTap event. Provides event arguments. Raises ZoomBegin event. Provides event arguments. Raises Zoom event. Provides event arguments. Raises ZoomEnd event. Provides event arguments. Raises TouchDown event. Provides event arguments. Raises TouchDown event. Provides event arguments. Raises TouchDown event. Provides event arguments. Initializes a new instance of the TouchHandler class. Initializes a new instance of the TouchHandler class. Initializes handler The Windows message handler. Decode the message and create a collection of event arguments The last event in the current gesture event sequence Register for touch event true if succeeded The event arguments that started the current gesture Gets or sets whether palm rejection is enabled. Check if Multi-touch support device is ready Create new gesture event instance and decode the gesture info structure The gesture handler The gesture information Gesture relative rotation angle for Rotate event. Indicates calculated gesture center. Gesture zoom factor for Zoom event. Gesture relative panning translation for Pan event. Gesture velocity vector of the pan gesture for custom inertia implementations. The last touch arguments in this gesture event sequence. The client location of gesture. Is this the first event of a gesture. It this last event of a gesture. Has gesture triggered inertia. The first touch arguments in this gesture event sequence. EventArgs passed to Touch handlers Create new touch event argument instance The target control one of the inner touch input in the message Touch client coordinate in pixels A touch point identifier that distinguishes a particular touch input A set of bit flags that specify various aspects of touch point press, release, and motion. mask which fields in the structure are valid touch event time touch event time from system up the size of the contact area in pixels Is Primary Contact (The first touch sequence) Specifies that movement occurred Specifies that the corresponding touch point was established through a new contact Specifies that a touch point was removed Specifies that a touch point is in range specifies that this input was not coalesced. Specifies that the touch point is associated with a pen contact The touch event came from the user's palm Set to true Get the current Digitizer Status Initializes a new instance of the GESTURECONFIG structure. Specifies available digitizer capabilities Gesture Info Interop Structure A Simple POINTS Interop structure A Simple POINT Interop structure Touch API defined structures [winuser.h] Represents virtual keyboard control. Default width for the keyboard in pixels. Default height for the keyboard in pixels. Creates a new VirtualKeyboard control. Called when TouchEnabled property has changed. Old property value New property value Returns the Key at given location. Location expected is in control coordinates. Location is control coordinates. Key if there is a key at given location or null/nothing if no key exists at given location. Attaches the Keyboard to the specified control. The keyboard will automatically appear when the control receives input focus. The control to which the Keyboard will be attached. Detaches the Keyboard from the specified control. The control from which the Keyboard will be detached. Raises KeyboardClosing event. Provides event arguments. Raises KeyboardClosed event. Provides event arguments. Raises SendingKey event. Provides event arguments. Raises KeySent event. Provides event arguments. Gets or sets the Keyboard object that describes the VirtualKeyboard. Gets or set the ColorTable used to draw the keyboard. Gets or sets the Renderer used to render the keyboard. Gets or sets a value indicating if the top bar of the keyboard is visible. Indicates the height of the keyboard caption which hosts the close button. Indicates whether touch support is enabled when provided by hardware. Occurs before the keyboard is closed and allows canceling of keyboard closing. Occurs after keyboard is closed. Occurs before the key pressed on keyboard is sent to target control and allows cancellation of the message Occurs after the key is sent to target control. Defines delegate for key-related events. Provides data for key related events. Gets the key being pressed. The format of this information must confirm to the description for the SendKeys.Send function. For more details, see: http://msdn.microsoft.com/en-us/library/system.windows.forms.sendkeys.aspx Initializes a new instance of the KeyboardKeyEventArgs class. Defines delegate for key-related events. Provides data for key related events. Gets the key being pressed. The format of this information must confirm to the description for the SendKeys.Send function. For more details, see: http://msdn.microsoft.com/en-us/library/system.windows.forms.sendkeys.aspx Initializes a new instance of the KeyCancelEventArgs class. Defines the VirtualKeyboard colors. This class maintains internally a Brush for each Color. These Brush objects are disposed internally when not needed anymore. A Brush of a certain color is obtained by setting the same Color property to that color. Maintaining the brushes here helps to have less GDI handles created / destroyed on each drawing of the keyboard. Creates a new color table for the VirtualKeyoard. Gets or sets the color used to draw the background of the keyboard. Gets a brush used for drawing the background of the keyboard. Gets or sets the color used for drawing normal keys. Gets a brush used for drawing normal keys. Gets or sets the color used for drawing light keys. Gets a brush used for drawing light keys. Gets or sets the color used for drawing dark keys. Gets a brush used for drawing dark keys. Gets or sets a brush used for drawing pressed keys. Gets a brush used for drawing pressed keys. Gets or sets a brush used for drawing pressed key when the key is down. Gets a brush used for drawing pressed key when the key is down. Gets or sets a color used for drawing the text on the keys. Gets a brush used for drawing the text on the keys. Gets or sets a color used for drawing the text on a key when the key is down. Gets a brush used for drawing the text on a key when the key is down. Gets or sets a color used for drawing the text on the top bar. Gets a brush used for drawing the text on the top bar. Gets or sets a color used for drawing the text on a key when the key is in its toggled state. Gets a brush used for drawing the text on a key when the key is in its toggled state.