home *** CD-ROM | disk | FTP | other *** search
/ Club Amiga de Montreal - CAM / CAM_CD_1.iso / files / 092.lha / Click / Click.Doc < prev    next >
Encoding:
Text File  |  1986-11-21  |  3.5 KB  |  78 lines

  1. [ What's my line? ]
  2.  
  3. OK, here's a little program called ClickUpFront, which is my addition to the
  4. ClickToFront-type utilities.  ClickUpFront installs an input handler that
  5. brings windows (and screens) to the front or back when you double click in them.
  6.  
  7. To install the handler, just type:
  8.  
  9.     1> ClickUpFront
  10.  
  11. It should tell you that it has installed the handler.  You don't have to
  12. RUN ClickUpFront, because it sets up the handler and then exits, leaving only 
  13. the input handler in memory.  The handler itself only takes up about 1K of
  14. memory when it is installed, so you shouldn't have to worry about using lots 
  15. of memory. 
  16.  
  17. To remove the input handler, simply call ClickUpFront a second time. 
  18. ClickUpFront creates a public, named message-port that it uses to hold the
  19. information it needs in order to remove the handler that it installed.  See
  20. the code for details of how this works.
  21.  
  22. Once ClickUpFront is installed and you double click in a window with the left
  23. mouse-button, that window will be brought to the front of all the other 
  24. windows (unless it is a backdrop window).  If the window is on a screen that 
  25. is not the front-most screen, then that screen is brought to the front of all 
  26. the other screens as well.  You can set the double-click time with the 
  27. Preferences tool.  Be careful that you don't move the mouse between clicks 
  28. as this will cause ClickUpFront to ignore the double-click.
  29.  
  30. If you want to be able to send a double-click to a window WITHOUT having it
  31. come to the front, simply hold down one of the shift keys while you click
  32. in the window.  ClickUpFront will ignore double-clicks when a shift key is
  33. pressed.  If you want to use some other qualifier key instead of the shift
  34. keys, you can specify a qualifier-key mask on the commaand line:
  35.  
  36.     1> ClickUpFront 0x0008
  37.  
  38. would specify the CTRL key instead of the shift keys.  See the include file
  39. exec/inputevent.h for the hex values for the other qualifier keys.
  40.  
  41. If you double-click with the right mouse-button, that will push the ACTIVE 
  42. window to the back of all the other (non-backdrop) windows.  If the window is
  43. already the back-most window (or there is no active window), then the active
  44. SCREEN will be pushed to the back of all the screens, and the top window on
  45. the next screen will be activated.  As with left mouse clicks, holding down
  46. the shift key will keep the window or screen from being pushed to the back.
  47.  
  48. Note that Intuition already specifies that a double right mouse-button click
  49. should bring up a double-menu requester.  In the author's experience, few
  50. programs take advantage of this feature.  For those that do, however, 
  51. ClickUpFront will ignore double right-button clicks in windows that have DM
  52. requesters UNLESS the shift key is pressed.  That is, in order to push a
  53. window with a DM requester to the back, hold down the shift key and double-
  54. click the right mouse button.
  55.  
  56.  
  57. To install ClickUpFront on your disk, simply unshar and uudecode the 
  58. executables.  Put ClickUpFront in the C: directory and put Click-Handler in the
  59. L: directory (or the current directory).
  60.  
  61. To compile and link ClickUpFront, type:
  62.  
  63.     1> LC -v ClickUpFront Click-Handler
  64.     1> ASM HandlerStub
  65.     1> BLINK WITH ClickUpFront.lnk
  66.     1> BLINK WITH Click-Handler.lnk
  67.  
  68. You can use the -b and -r options with ClickUpFront, but don't use them for
  69. Click-Handler.
  70.  
  71. Hope you enjoy this little program!
  72.  
  73. Davide P. Cervone
  74. University of Rochester Computing Center            dpvc@tut.cc.rochester.EDU
  75. Taylor Hall                                         dpvc@ur-tut.UUCP
  76. Rochester, New York  14627                          DPVC@UORDBV.BITNET
  77. (716) 275-2811
  78.