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

  1. .*****************************************************************************/
  2. .*                                                                           */
  3. .*  File Name   : HIDEKBD.IPF                                                */
  4. .*                                                                           */
  5. .*  Description : Hide 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 Hide Keyboard Window                              */
  23. .*  PANEL_HIDEKBD                                               */
  24. .****************************************************************/
  25. :h1 res=910.Hide Pop-Up Keyboard Window
  26. Select "Demo", then "Start Demo" to start the Demonstration Program.
  27.  
  28. The dialog displays a row of pushbuttons which controls the display
  29. of a Pop-Up Keyboard.
  30. :lines.
  31. Button Actions:
  32. :link
  33. reftype=hd res=911.LOAD:elink. - Loads the default Pop-Up Keyboard.
  34. :link
  35. reftype=hd res=912.HIDE:elink. - Hides the currently visible Pop-Up Keyboard.
  36. :link
  37. reftype=hd res=913.RESTORE:elink. - Displays a hidden Pop-Up Keyboard.
  38. :link
  39. reftype=hd res=914.CLOSE:elink. - Closes the Pop-Up Keyboard.
  40. :elines.
  41. .****************************************************************/
  42. .*  Help for LOAD Pushbutton                                    */
  43. .*  PANEL_BTNLOAD                                               */
  44. .****************************************************************/
  45. :h1 res=911.LOAD
  46. :lines.
  47. LOAD - Loads the default Pop-Up Keyboard.
  48. :elines.
  49. :p.
  50. :hp4.Example:
  51. :xmp.
  52. :font facename=Helv size=10x10.
  53. APIRET    rc;
  54. :p.
  55. rc = (APIRET) VkpLoadKeyboard( NULL,
  56.                                hwnd )
  57.  
  58.    hwnd - The window handle of the frame
  59.           that owns the Pop-Up Keyboard.
  60. :ehp4.
  61. :font facename=default.
  62. :exmp.
  63. .****************************************************************/
  64. .*  Help for HIDE Pushbutton                                    */
  65. .*  PANEL_BTNHIDE                                               */
  66. .****************************************************************/
  67. :h1 res=912.HIDE
  68. :lines.
  69. HIDE - Hides the currently visible Pop-Up Keyboard.
  70. :elines.
  71. :p.
  72. :hp4.Example:
  73. :xmp.
  74. :font facename=Helv size=10x10.
  75. APIRET    rc;
  76. :p.
  77. rc = (APIRET) VkpHideKeyboard( hwnd )
  78.  
  79.    hwnd - The window handle of the frame
  80.           that owns the Pop-Up Keyboard.
  81. :ehp4.
  82. :font facename=default.
  83. :exmp.
  84. .****************************************************************/
  85. .*  Help for RESTORE Pushbutton                                 */
  86. .*  PANEL_BTNREST                                               */
  87. .****************************************************************/
  88. :h1 res=913.RESTORE
  89. :lines.
  90. RESTORE - Displays a hidden Pop-Up Keyboard.
  91. :elines.
  92. :p.
  93. :hp4.Example:
  94. :xmp.
  95. :font facename=Helv size=10x10.
  96. APIRET    rc;
  97. :p.
  98. rc = VkpSetKbPos( 0L, 0L, 0L, 0L,
  99.                   SWP_SHOW,
  100.                   hwnd )
  101.  
  102.    hwnd - The window handle of the frame
  103.           that owns the Pop-Up Keyboard.
  104. :ehp4.
  105. :font facename=default.
  106. :exmp.
  107. .****************************************************************/
  108. .*  Help for CLOSE Pushbutton                                   */
  109. .*  PANEL_BTNCLOSE                                              */
  110. .****************************************************************/
  111. :h1 res=914.CLOSE
  112. :lines.
  113. CLOSE - Closes the Pop-Up Keyboard.
  114. :elines.
  115. :p.
  116. :hp4.Example:
  117. :xmp.
  118. :font facename=Helv size=10x10.
  119. BOOL      rc;
  120. :p.
  121. rc = (APIRET) VkpCloseKb( hwnd )
  122.  
  123.    hwnd - The window handle of the frame
  124.           that owns the Pop-Up Keyboard.
  125. :ehp4.
  126. :font facename=default.
  127. :exmp.
  128. :euserdoc.
  129.