<br><font size=3 face="Times New Roman">I don't know if I did understand
well but , if the meaning is to detect right-clicks , I usually do:</font>
<br>
<br><tt><font size=2>map.events.register('click', map, function (e) { ...
})<br>
...</font></tt>
<br><tt><font size=2>....</font></tt>
<br><font size=3 face="Times New Roman">if (e.button == 2) {</font>
<br><font size=3 face="Times New Roman">&nbsp;....user clicked the right
button....</font>
<br><font size=3 face="Times New Roman">...</font>
<br><font size=3 face="Times New Roman">....</font>
<br><font size=3 face="Times New Roman">} else ....</font>
<br><font size=3 face="Times New Roman">...</font>
<br><font size=3 face="Times New Roman">....</font>
<br>
<br><font size=3 face="Times New Roman">Hope this helps</font>
<br>
<br><font size=3 face="Times New Roman">Fernando.</font>
<br>
<br><font size=3 face="Times New Roman">&nbsp;</font>
<br>
<br>
<br>
<table width=100%>
<tr valign=top>
<td width=40%><font size=1 face="sans-serif"><b>Christopher Schmidt &lt;crschmidt@metacarta.com&gt;</b>
</font>
<br><font size=1 face="sans-serif">Sent by: users-bounces@openlayers.org</font>
<p><font size=1 face="sans-serif">19/03/2008 14:08</font>
<td width=59%>
<table width=100%>
<tr valign=top>
<td>
<div align=right><font size=1 face="sans-serif">To</font></div>
<td><font size=1 face="sans-serif">users@openlayers.org</font>
<tr valign=top>
<td>
<div align=right><font size=1 face="sans-serif">cc</font></div>
<td>
<tr valign=top>
<td>
<div align=right><font size=1 face="sans-serif">Subject</font></div>
<td><font size=1 face="sans-serif">Re: [OpenLayers-Users] right-click support
?</font></table>
<br>
<table>
<tr valign=top>
<td>
<td></table>
<br></table>
<br>
<br>
<br><tt><font size=2>On Wed, Mar 19, 2008 at 05:35:48PM +0100, &quot;R.
Müller&quot; wrote:<br>
&gt; Christopher Schmidt schrieb:<br>
&gt; &gt; <br>
&gt; &gt; Every other map that I'm aware of messes with the user's settings
by<br>
&gt; &gt; making it such that right click does nothing. With that in mind,
if an<br>
&gt; &gt; application wants to do something with the right click button,
that's<br>
&gt; &gt; their business.<br>
&gt; &gt; <br>
&gt; &gt; Regards,<br>
&gt; <br>
&gt; imho this not a question of what other map-application do, but a<br>
&gt; question of general look&amp;feel of a (web-)application. have a look
at<br>
&gt; google-maps or google-docs, they make extensive use of right-click<br>
&gt; context menus.<br>
<br>
Er, you thought this paragraph was responding to you, when in fact it<br>
was responding to someone who was disagreeing with you :) <br>
<br>
&gt; i'm not calling for detailed features for right-click events, but
for<br>
&gt; principal support. at the moment, you can register event-listeners
for<br>
&gt; mouse clicks e.g. this way :<br>
&gt; <br>
&gt; map.events.register('click', map, function (e) { ... })<br>
&gt; <br>
&gt; but this only listens to left-clicks :-(. <br>
<br>
What makes you say this? I don't believe it to be true. (I can't<br>
confirm, because I don't have a mouse with a right click.)<br>
<br>
Regards,<br>
-- <br>
Christopher Schmidt<br>
MetaCarta<br>
_______________________________________________<br>
Users mailing list<br>
Users@openlayers.org<br>
</font></tt><a href=http://openlayers.org/mailman/listinfo/users><tt><font size=2>http://openlayers.org/mailman/listinfo/users</font></tt></a><tt><font size=2><br>
</font></tt>
<br><font size=2 face="sans-serif">*************************************************************************<br>
Esta mensagem, incluindo os seus anexos, contém informações confidenciais
destinadas a indivíduo e propósito específicos, e é protegida por lei.
Caso você não seja o citado indivíduo, deve apagar esta mensagem. É terminantemente
proibida a utilização, acesso, cópia ou divulgação não autorizada das informações
presentes nesta mensagem. &nbsp;As informações contidas nesta mensagem
e em seus anexos são de responsabilidade de seu autor, não representando
idéias, opiniões, pensamentos ou qualquer forma de posicionamento por parte
da PST Indústria &nbsp;Eletrônica da Amazônia Ltda. <br>
<br>
The information contained in this communication is confidential, is law
protected, and is intended only for the business use of the addressee.
If you have received this communication in error, please immediately delete
it. It's forbidden the unauthorized use, access, copy or disclose of the
information contained in this communication. &nbsp;The content of this
message is responsibility of the author, and does not represent ideas,
opinions, thoughts or any kind of statement of PST Indústria &nbsp;Eletrônica
da Amazônia Ltda.</font>
<br>
<br>