home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / pentlk11.zip / MOVEKBD.HLP (.txt) < prev    next >
OS/2 Help File  |  1994-01-13  |  3KB  |  98 lines

  1.  
  2. ΓòÉΓòÉΓòÉ 1. Move Pop-Up Keyboard Window ΓòÉΓòÉΓòÉ
  3.  
  4. Select "Demo", then "Start Demo" to start the Demonstration Program.  The 
  5. dialog displays a row of pushbuttons which controls the position and size of a 
  6. Pop-Up Keyboard. 
  7.  
  8. Button Actions:
  9. LOAD - Loads the default Pop-Up Keyboard.
  10. MOVE - Moves the Pop-Up Keyboard.
  11. ENLARGE - Enlarges the Pop-Up Keyboard.
  12. SHRINK - Shrinks the Pop-Up Keyboard.
  13. CLOSE - Closes the Pop-Up Keyboard.
  14.  
  15.  
  16. ΓòÉΓòÉΓòÉ 2. LOAD ΓòÉΓòÉΓòÉ
  17.  
  18. LOAD - Loads the default Pop-Up Keyboard.
  19.  
  20. Example: 
  21.  
  22. APIRET    rc;
  23.  
  24. rc = (APIRET) VkpLoadKeyboard( NULL,
  25.                                hwnd )
  26.  
  27.    hwnd - The window handle of the frame
  28.           that owns the Pop-Up Keyboard.
  29.  
  30.  
  31. ΓòÉΓòÉΓòÉ 3. MOVE ΓòÉΓòÉΓòÉ
  32.  
  33. MOVE - Repositions the Pop-Up Keyboard.  The keyboard will be positioned at
  34. the lower border of the Demo window.  If the window is too low for the
  35. Pop_Up Keyboard to be completely displayed underneath, then the
  36. keyboard will be positioned at the upper border.  Move the Demo window around,
  37. press the Move button and see what happens.
  38.  
  39. Example: 
  40.  
  41. APIRET    rc;
  42. LONG      lX, lY;
  43.  
  44. rc = (APIRET) VkpSetKbPos( lX,       /* new keyboard position, x-coordinate */
  45.                            lY,       /* new keyboard position, y-coordinate */
  46.                            0L, 0L,   /* no change in Pop-Up Keyboard size   */
  47.                            SWP_MOVE, /* flag to move the Pop-Up Keyboard    */
  48.                            hwnd )    /* owner of the Pop-Up keyboard        */
  49.  
  50.  
  51. ΓòÉΓòÉΓòÉ 4. ENLARGE ΓòÉΓòÉΓòÉ
  52.  
  53. ENLARGE - Enlarges a Pop-Up Keyboard.  The keyboard size is increased in
  54. fixed increments.  If the new size will put part of the Pop-Up Keyboard
  55. beyond the screen border, then it will not be resized.
  56.  
  57. Example: 
  58.  
  59. APIRET    rc;
  60. LONG      lCx, lCy;
  61.  
  62. rc = (APIRET) VkpSetKbPos( 0L, 0L,   /* no change in Pop-Up Keyboard position */
  63.                            lCx,      /* new keyboard width                    */
  64.                            lCy,      /* new keyboard height                   */
  65.                            SWP_SIZE, /* flag to resize the Pop-Up Keyboard    */
  66.                            hwnd )    /* owner of the Pop-Up keyboard          */
  67.  
  68.  
  69. ΓòÉΓòÉΓòÉ 5. SHRINK ΓòÉΓòÉΓòÉ
  70.  
  71. SHRINK - Shrinks the Pop-Up Keyboard.  The keyboard cannot be reduced
  72. below a fixed size.
  73.  
  74. Example: 
  75.  
  76. APIRET    rc;
  77. LONG      lCx, lCy;
  78.  
  79. rc = (APIRET) VkpSetKbPos( 0L, 0L,   /* no change in Pop-Up Keyboard position */
  80.                            lCx,      /* new keyboard width                    */
  81.                            lCy,      /* new keyboard height                   */
  82.                            SWP_SIZE, /* flag to resize the Pop-Up Keyboard    */
  83.                            hwnd )    /* owner of the Pop-Up keyboard          */
  84.  
  85.  
  86. ΓòÉΓòÉΓòÉ 6. CLOSE ΓòÉΓòÉΓòÉ
  87.  
  88. CLOSE - Closes the Pop-Up Keyboard.
  89.  
  90. Example: 
  91.  
  92. BOOL      rc;
  93.  
  94. rc = (APIRET) VkpCloseKb( hwnd )
  95.  
  96.    hwnd - The window handle of the frame
  97.           that owns the Pop-Up Keyboard.
  98.