I just need a button that can be "turned on", i. e. the users sees that the function it fulfills is active. So the user clicks on the button --> its appearance changes --> the user can draw a feature (function of the button). After the drawing, the button is deactivated to its original state.
Maybe a toggle button would be better in my case? Bye Henry Eric Lemoine-2-2 wrote: > > On Thursday, January 7, 2010, Henry Rotzoll <[email protected]> wrote: >> >> Thanks Kris! >> >> "btn.activate();" did the trick! > > Your control is a button as opposed to a toggle, and it's not active > by default its DOM element gets "Inactive" class. When you activate it > gets the "Active" class, so it's rendering changes. I don't understand > why you need two classes and two ways to render the button. > > Cheers, > > -- > Eric Lemoine > > Camptocamp France SAS > Savoie Technolac, BP 352 > 73377 Le Bourget du Lac, Cedex > > Tel : 00 33 4 79 44 44 96 > Mail : [email protected] > http://www.camptocamp.com > _______________________________________________ > Users mailing list > [email protected] > http://openlayers.org/mailman/listinfo/users > > -- View this message in context: http://n2.nabble.com/Button-Active-CSS-Styling-tp4266755p4267552.html Sent from the OpenLayers Users mailing list archive at Nabble.com. _______________________________________________ Users mailing list [email protected] http://openlayers.org/mailman/listinfo/users
