home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / pentlk11.zip / LOADKBD.IPF < prev    next >
Text File  |  1994-01-13  |  4KB  |  97 lines

  1. .*****************************************************************************/
  2. .*                                                                           */
  3. .*  File Name:    LOADKBD.IPF                                                */
  4. .*                                                                           */
  5. .*  Description:  Load Popup Keyboard Sample Program Information File        */
  6. .*                                                                           */
  7. .*                                                                           */
  8. .*  Copyright (C) 1993 IBM Corporation                                       */
  9. .*                                                                           */
  10. .*      DISCLAIMER OF WARRANTIES.  The following [enclosed] code is          */
  11. .*      sample code created by IBM Corporation. This sample code is not      */
  12. .*      part of any standard or IBM product and is provided to you solely    */
  13. .*      for  the purpose of assisting you in the development of your         */
  14. .*      applications.  The code is provided "AS IS", without                 */
  15. .*      warranty of any kind.  IBM shall not be liable for any damages       */
  16. .*      arising out of your use of the sample code, even if they have been   */
  17. .*      advised of the possibility of such damages.                          */
  18. .*                                                                           */
  19. .*****************************************************************************/
  20. :userdoc
  21. .****************************************************************/
  22. .*  Help from LOAD Keyboard Window                              */
  23. .*  PANEL_LOADKBD                                               */
  24. .****************************************************************/
  25. :h1 res=910.LOAD Pop-Up Keyboard Window
  26. Select "Demo", then "Start Demo" to start the Demonstration Program.
  27.  
  28. The dialog displays two windows.  One has two entry fields for a name
  29. and a phone number.  These entry fields should be filled in by using
  30. the Pop-Up Keyboard.  A different keyboard is displayed for each field.
  31. :lines.
  32. Button Actions:
  33. :link
  34. reftype=hd res=911.OK:elink. - Copies the Name and Phone Number fields to the display window.
  35. :link
  36. reftype=hd res=912.NAME:elink. - Enter a name in this field.
  37. :link
  38. reftype=hd res=913.PHONE_NO:elink. - Enter a phone number in this field.
  39. :elines.
  40. .****************************************************************/
  41. .*  Help for Ok Pushbutton                                      */
  42. .*  PANEL_BTN_OK                                                */
  43. .****************************************************************/
  44. :h1 res=911.OK
  45. :lines.
  46. Copies the Name and Phone Number fields to the display window.
  47. :elines.
  48. .****************************************************************/
  49. .*  Help for NAME Entry Field                                   */
  50. .*  PANEL_EN_NAME                                               */
  51. .****************************************************************/
  52. :h1 res=912.NAME
  53. :lines.
  54. Enter a name in this field.
  55.  
  56. When this field gains focus the default keyboard is loaded.
  57. :elines.
  58. :p.
  59. :hp4.Example:
  60. :xmp.
  61. :font facename=Helv size=10x10.
  62. APIRET    rc;
  63. :p.
  64. rc = (APIRET) VkpLoadKeyboard( NULL, hwnd );
  65.  
  66.    NULL - Specifies the default keyboard.
  67.    hwnd - The window handle of the frame.
  68.           that owns the Pop-Up Keyboard.
  69. :ehp4.
  70. :font facename=default.
  71. :exmp.
  72. .****************************************************************/
  73. .*  Help for PHONE_NO Entry Field                               */
  74. .*  PANEL_EN_PHNO                                               */
  75. .****************************************************************/
  76. :h1 res=913.Phone Number
  77. :lines.
  78. Enter a phone number in this field.
  79.  
  80. When this field gains focus the Numerical keyboard is loaded.
  81. :elines.
  82. :p.
  83. :hp4.Example:
  84. :xmp.
  85. :font facename=Helv size=10x10.
  86. APIRET    rc;
  87. :p.
  88. rc = (APIRET) VkpLoadKeyboard( "NUMKEY", hwnd );
  89.  
  90.    NUMKEY - Specifies the Numerical keyboard.
  91.    hwnd - The window handle of the frame.
  92.           that owns the Pop-Up Keyboard.
  93. :ehp4.
  94. :font facename=default.
  95. :exmp.
  96. :euserdoc.
  97.