home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #16 / NN_1992_16.iso / spool / comp / windows / x / 14328 < prev    next >
Encoding:
Internet Message Format  |  1992-07-24  |  2.1 KB

  1. Path: sparky!uunet!dtix!darwin.sura.net!jvnc.net!yale.edu!ira.uka.de!chx400!sicsun!slhp1.epfl.ch!lecom
  2. From: lecom@slhp1.epfl.ch (Claude Lecommandeur)
  3. Newsgroups: comp.windows.x
  4. Subject: Re: Using the NonRectangular Window Shape Extension
  5. Message-ID: <3352@sicsun.epfl.ch>
  6. Date: 24 Jul 92 07:01:02 GMT
  7. References: <1992Jul23.163551.371@cine88.cineca.it>
  8. Sender: news@sicsun.epfl.ch
  9. Organization: Ecole Polytechnique Federale de Lausanne
  10. Lines: 45
  11.  
  12. In article <1992Jul23.163551.371@cine88.cineca.it>, marcello@deis16.cineca.it (Marcello Dalpasso) writes:
  13. |> Hi netters,
  14. |> 
  15. |> I should implement an X application displaying a rectangular map divided in
  16. |> many (actually about one hundred) nonrectangular zones.
  17. |> 
  18. |> The zone boundaries are non-orthogonal lines.
  19. |> 
  20. |> The application should get zone-enter/leave mouse event, and clicking.
  21. |> 
  22. |> The only solution I have figured out is to use the NonRectangular Window Shape
  23. |> Extension provided by MIT X11R5.
  24. |> 
  25. |> Is it feasible?
  26. |> Is it the unique solution?
  27. |> 
  28. |> Any help by skillful programmers?
  29. |> 
  30. |> Thanks in advance, please reply by e-mail and a summary will be posted.
  31. |> 
  32. |> -- 
  33. |>     Marcello Dalpasso (e-mail: marcello@deis16.cineca.it)
  34. |>     D.E.I.S. - Department of Electronics and Computer Science    
  35. |>     Viale Risorgimento 2, I-40136 Bologna, Italy            
  36. |>     Phone: +39-51-644-3015 (fax: +39-51-644-3073)
  37.  
  38.     It is perfectly feasible and pretty easy to do with the SHAPE
  39. routines. Another solution is to just draw all the zones in the 
  40. englobbing rectangular window an track the pointer motion events and
  41. calculate manually in which zone the pointer is (to highlight it or
  42. do whatever you want). You should probably try the first solution
  43. first, but many X servers are a bit sluggish when dealing with
  44. non-rectangular windows.
  45.  
  46.   Claude.
  47.  
  48. -- 
  49.  
  50.  
  51.                     Claude Lecommandeur
  52.                     Service Informatique Central
  53.                     Ecole Polytechnique Federale de Lausanne
  54.                     1015 LAUSANNE (SWITZERLAND)
  55.                     E-Mail : lecom@sic.epfl.ch
  56.                     Tel : (41 21) 693-22-97
  57.