PEN2CTL.VBX Custom Controls for Windows 95 Pen Services

Last reviewed: January 21, 1997
Article ID: Q130654
The information in this article applies to:
  • Microsoft Win32 Software Development Kit (SDK) Version 4.0

SUMMARY

The PEN2CTL.VBX provides three pen edit custom controls to allow for quick development of pen-aware applications using Microsoft Windows 95 Pen Services. The application designer may substitute these custom controls for the standard input controls available in Visual Basic.

MORE INFORMATION

The PEN2CTL.VBX ships with version 4.0 of the Win32 SDK and is available in the Microsoft Software. It is installed along with the Pen 2.0 Samples Library.

To get PEN2CTL.VBX along with the PENVBX.HLP Help file and the sample application files discussed in this article, download PEN2CTL.EXE, a self- extracting file, from the Microsoft Software Library (MSL) on the following services:

- Microsoft's World Wide Web Site on the Internet

      On the www.microsoft.com home page, click the Support icon.
      Click Knowledge Base, and select the product.
      Enter kbfile PEN2CTL.EXE (size: 125403 bytes) 
                              , and click GO!
      Open the article, and click the button to download the file.

  • Internet (anonymous FTP)

          ftp ftp.microsoft.com
          Change to the Softlib/Mslfiles folder.
          Get PEN2CTL.EXE (size: 125403 bytes) 
    
  • Microsoft Download Service (MSDL)

          Dial (206) 936-6735 to connect to MSDL
          Download PEN2CTL.EXE (size: 125403 bytes) 
    

    For additional information about downloading, please see the following article in the Microsoft Knowledge Base:

       ARTICLE-ID: Q119591
       TITLE     : How to Obtain Microsoft Support Files from Online
                   Services
    
    
    The PEN2CTL.EXE self-extracting file contains:

    1. PENVBX.HLP, a help file that fully explains all the technical issues and describes how to interact with these pen-aware custom controls.

    2. Several files that comprise a sample Pen application demonstrating how to use all the major features of the PEN2CTL.VBX.

    3. PEN2CTL.VBX, which is freely re-distributable, and implements the three pen-aware custom edit controls: HEdit, BEdit, and lEdit:

          - HEdit is the handwriting edit control. It accepts free-form input.
            This control is similar to the standard Visual Basic text box except
            data can be entered using a pen in addition to the normal keyboard
            input method.
      

          - BEdit is the boxed edit control. It expands the properties of the
            handwriting edit control. It allows for additional manipulation of
            the writing area and provides the application with comb or box guides
            that accept pen input. Each segment or box accepts only a single
            character of input. This increases the accuracy of the recognition
            and in most cases is preferable to the handwriting edit control. The
            BEdit control also has the ability to provide a list of alternate
            words from which you may choose.
      

          - lEdit is the pen ink edit control. It is similar to a picture box
            control in that it allows you to draw, erase, move, resize,
            manipulate, and format pen strokes (called ink) on the control. It
            also allows you to set background pictures and grid lines as well as
            create bitmaps of the background and/or ink.
      

    While there are many similarities between the controls provided by the Pen 1.0 VBX (PENCNTRL.VBX) and those provided by PEN2CTL.VBX, there are also many differences. Those familiar with the Pen 1.0 VBX should re-familiarize themselves with PEN2CTL.VBX and its changes.

    NOTE: Neither VBX is compatible with the other but both implement some of the same custom controls, so developers should make sure the correct VBX is installed in their development environment and is distributed with their application.


  • KBCategory: kbprg kbfile
    KBSubcategory: WpenMisc WpenVB
    Additional reference words: 4.00 2.00



    THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY.

    Last reviewed: January 21, 1997
    © 1998 Microsoft Corporation. All rights reserved. Terms of Use.