Hi,
Bill Thoen wrote: > I'm using a couple of buttons on a control panel to open and display > dialog forms. I just need a pushbutton control to do this as it's a > one-time action event --push the button and display the form to Create, > Review, Update or Delete data i.e. I need a classic CRUD interface for a > couple of tables. > > Anyway, when the tool type is set to TYPE_BUTTON, the button doesn't > push in and out like I was expecting. Otherwise things work fine. The > form comes up and does the right things. So am I missing something about > the button control to get it to use two icons like the TYPE_TOGGLE and > TYPE_TOOL controls or is this single button icon behavior a WAD (Works > As Designed) to keep the tool simple? > The difference between TYPE_BUTTON controls and others in a control panel is that TYPE_BUTTON controls don't activate and deactivate, they just trigger. And changing the css classes happens on activate and deactivate. If you want a visual feedback for mousedown and mouseup, you would have to do something like this: change the Control.Panel to use mousedown/mouseup events instead of click, call trigger() on mouseup and activate() on mousedown, and call deactivate() in trigger() to change the css class back. Regards, Andreas. > Thx, > - Bill Thoen > > _______________________________________________ > Users mailing list > [email protected] > http://openlayers.org/mailman/listinfo/users > -- Andreas Hocevar OpenGeo - http://opengeo.org/ Expert service straight from the developers. _______________________________________________ Users mailing list [email protected] http://openlayers.org/mailman/listinfo/users
