home *** CD-ROM | disk | FTP | other *** search
/ Atari Mega Archive 1 / Atari Mega Archive - Volume 1.iso / lists / gem / l_0799 / 470 < prev    next >
Encoding:
Internet Message Format  |  1994-08-27  |  1.2 KB

  1. Subject: Re: text marks & sliders 
  2. Date: Thu, 30 Jun 1994 08:59:27 +1000
  3. From: Warwick Allison <warwick@cs.uq.oz.au>
  4. Precedence: bulk
  5.  
  6. Ofir Gal wrote:
  7. >
  8. >Ken Hollis:
  9. >>I think my method is MUCH easier to do.  You don't have to
  10. >>check for the rectangles, all you have to do is check to see if the
  11. >>mouse enters an editable object or not...
  12.  
  13. >Does this mean you are constantly calling objc_find() ? This is OK for
  14. >modal dialogs but not very nice in non-modal ones.
  15.  
  16. A slight improvement can be done:  you can wait for the mouse to move (out
  17. of a 1x1 pixel area), then check.  Still *extremely* inefficient in a multi-
  18. tasking env.
  19.  
  20. The technique of maintaining 2 bounding rectangles is feasible, but not
  21. a trivial programming task.  It could provide other benefits though,
  22. such as point-to-type, etc.  but all these things are major changes to
  23. the GEM std interface.  GEM just isn't designed to generate large
  24. numbers of mouse-in-area events.  If Atari had provided a high-powered
  25. GEM library at the start, all this could have been implemented.  I
  26. wonder even if DRI originally planned this, and that was the reason for
  27. providing the 2 rectangle areas (using 2, any number can be efficiently
  28. tracked... by extra library code).  
  29.  
  30. --
  31. Warwick
  32.