Alexandre, that should not be necessary, css is all that it takes.
IIRC the syntax is: .olControlZoomBoxActive { cursor: pointer; } etc. so displayClass plus Active. Bart > Hi, > > I want to be able to change the default style of the cursor when > activating controls. Each control should have its unique cursor. I > want to validate that the way I'd do it is okay. Please comment. > > I would simply register "activate" to use OpenLayers.Element.addClass > to change the style of the cursor and "deactivate" to > OpenLayers.Element.removeClass to restore the default state. Does that > make sense ? > > -- > Alexandre Dubé > Mapgears > www.mapgears.com > > _______________________________________________ > Users mailing list > Users@openlayers.org > http://openlayers.org/mailman/listinfo/users > _______________________________________________ Users mailing list Users@openlayers.org http://openlayers.org/mailman/listinfo/users