home *** CD-ROM | disk | FTP | other *** search
/ Monster Media 1994 #1 / monster.zip / monster / PROG_C / ALCKEY.ZIP / ALCKEY.TXT < prev    next >
Text File  |  1992-11-12  |  2KB  |  40 lines

  1. .TITLE: Advanced ALC_ sample and ShowKeyboard sample
  2.  
  3. Summary:
  4.  
  5. In the Microsoft Software Library, there is a sample called
  6. AlcKey.  This is a Windows for Pens sample that demonstrates
  7. how to use the ALC values (defined in Windows for Pens) to
  8. set how an hedit (or bedit control) will filter it's input.
  9.  
  10. More Information:
  11.  
  12. ALC values can be set to define what values will be recognized
  13. in a pen edit control (either hedit or bedit.)  For example, by
  14. setting ALC_NUMERIC, only Numeric values will be recognized in
  15. that particular control.  Using ALC values allows the developer
  16. greater freedom to customize how his application will respond to
  17. ink.  By defining a small subset of only the types of values 
  18. wanted in an edit control, recognition of those values will 
  19. increase.
  20.  
  21. The AlcKey sample has two edit controls, an hedit and a bedit.  By
  22. selecting the ALC flags desired in the ALC dialog, the hedit control
  23. is set to those values.  The bedit control is not altered in anyway
  24. allowing the developer to see the difference between the settings
  25. of the two controls.
  26.  
  27. Also the AlcKey sample also demonstrates the use of the ShowKeyboard
  28. API, including the recommended way of interfacing to the Virtual 
  29. keyboard via a "keyboard" button; which is OwnerDraw.  The developer
  30. will notice that the Virtual Keyboard always stays on top, but never
  31. has the focus.  The output of the keyboard is directed to the last
  32. control that had the focus.  This sample also demonstrates one way of
  33. insuring that only valid controls get the focus. You will also 
  34. notice that the Virtual Keyboard in Windows for Pens version 1.0
  35. is not affected by the filtering effects of the ALC values.  Only
  36. recognized ink is affected, the keyboard does not involve inking,
  37. so it bypasses this step.
  38.  
  39.  
  40.