home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!dtix!darwin.sura.net!jvnc.net!yale.edu!ira.uka.de!chx400!sicsun!slhp1.epfl.ch!lecom
- From: lecom@slhp1.epfl.ch (Claude Lecommandeur)
- Newsgroups: comp.windows.x
- Subject: Re: Using the NonRectangular Window Shape Extension
- Message-ID: <3352@sicsun.epfl.ch>
- Date: 24 Jul 92 07:01:02 GMT
- References: <1992Jul23.163551.371@cine88.cineca.it>
- Sender: news@sicsun.epfl.ch
- Organization: Ecole Polytechnique Federale de Lausanne
- Lines: 45
-
- In article <1992Jul23.163551.371@cine88.cineca.it>, marcello@deis16.cineca.it (Marcello Dalpasso) writes:
- |> Hi netters,
- |>
- |> I should implement an X application displaying a rectangular map divided in
- |> many (actually about one hundred) nonrectangular zones.
- |>
- |> The zone boundaries are non-orthogonal lines.
- |>
- |> The application should get zone-enter/leave mouse event, and clicking.
- |>
- |> The only solution I have figured out is to use the NonRectangular Window Shape
- |> Extension provided by MIT X11R5.
- |>
- |> Is it feasible?
- |> Is it the unique solution?
- |>
- |> Any help by skillful programmers?
- |>
- |> Thanks in advance, please reply by e-mail and a summary will be posted.
- |>
- |> --
- |> Marcello Dalpasso (e-mail: marcello@deis16.cineca.it)
- |> D.E.I.S. - Department of Electronics and Computer Science
- |> Viale Risorgimento 2, I-40136 Bologna, Italy
- |> Phone: +39-51-644-3015 (fax: +39-51-644-3073)
-
- It is perfectly feasible and pretty easy to do with the SHAPE
- routines. Another solution is to just draw all the zones in the
- englobbing rectangular window an track the pointer motion events and
- calculate manually in which zone the pointer is (to highlight it or
- do whatever you want). You should probably try the first solution
- first, but many X servers are a bit sluggish when dealing with
- non-rectangular windows.
-
- Claude.
-
- --
-
-
- Claude Lecommandeur
- Service Informatique Central
- Ecole Polytechnique Federale de Lausanne
- 1015 LAUSANNE (SWITZERLAND)
- E-Mail : lecom@sic.epfl.ch
- Tel : (41 21) 693-22-97
-