On Thursday 05 July 2007 05:06:57 Robin Sheat wrote:
> I have a view that is sometimes lying over the top of another view, however
> when you move the mouse over the 'upper' one, if that particular part of it
> isn't clickable, then the mouseover and mouseclick events, along with the
> clickable status (thus the mouse pointer changes), pass though to the view
> behind it. Is there a nice way to avoid this, so that the frontmost view
> behaves like you'd expect it to visually.
>
> I know I could just set the front view to clickable and do nothing with the
> events, but that will change the pointer which could be confusing to the
> user.
Make the view clickable (dont assign an event), and use the setShowHandCursor
method :
<view width="50" height="50" bgcolor="blue" onclick="Debug.write('click')">
<view width="10" height="10" bgcolor="red"
clickable="true" oninit="this.setShowHandCursor(false)"/>
</view>
--
Vincent de Phily
The content of this e-mail may be confidential or legally privileged. If you
are not the named addressee or the intended recipient please do not copy it
or forward it to anyone. If you have received this email in error please
destroy it and kindly notify the sender. Email cannot be guaranteed to be
secure or error-free, it is your responsibility to ensure that the message
(including attachments) is safe and authorised for use in your environment.
Bluemetrix Ltd, Registered in Ireland at Northpoint House, Northpoint
Business Park, Mallow Road, Cork
Co Reg No.: 335879