home *** CD-ROM | disk | FTP | other *** search
/ Monster Media 1994 #1 / monster.zip / monster / PROG_C / ALCKEY.ZIP / ABSTRACT next >
Text File  |  1993-03-17  |  2KB  |  42 lines

  1. ALCKEY: Uses ALC Values to Filter Input
  2.  
  3. ALCKEY is a Microsoft(R) Windows(TM) for Pen Computing
  4.  program that shows how to use ALC values to specify how an
  5. hedit (or bedit) control will filter its input.
  6.  
  7. ALC values define the types of values that a pen hedit or
  8. bedit control will recognize. For example, ALC_NUMERIC
  9. allows only numeric values to be recognized in a
  10. particular control. Using ALC values allows you greater
  11. freedom in customizing your application's response to ink.
  12. Defining a small subset of ALC values for an edit control
  13. increases the recognition of those values.
  14.  
  15. ALCKEY displays two edit controls: an hedit and a bedit.
  16. You can select flags from the ALC dialog box for the hedit
  17. control. The bedit control remains unchanged so you can
  18. see the difference between the settings of the two
  19. controls.
  20.  
  21. ALCKEY also demonstrates the use of the ShowKeyboard
  22. function and shows the recommended way of interfacing to
  23. the virtual keyboard through an owner-drawn "keyboard"
  24. button. Notice that the virtual keyboard always stays on
  25. top but never has the focus. The keyboard output is
  26. directed to the last control that had the focus. ALCKEY
  27. also demonstrates a way to ensure that only valid controls
  28. get the focus. The virtual keyboard in Windows for Pen
  29. Computing version 1.0 is not affected by the filtering
  30. effects of ALC values. Only recognized ink is affected;
  31. the keyboard does not involve inking so it bypasses this
  32. step.
  33.  
  34.  ALCKEY was built and tested under Microsoft Windows
  35. version 3.1. The program requires PENWIN.DLL, which can be
  36. found in both Microsoft Windows for Pen Computing and the
  37. Microsoft Windows version 3.1 Software Development Kit
  38. (SDK).
  39.  
  40. KEYWORDS: PR-CD2; LoadString; LoadBitmap;
  41. GetSystemMetrics; CreateCompatibleDC; StretchBlt; _fmemcpy
  42.