Thanks, Andreas.  We definitely do want to keep disabled tools visible, to
avoid "UI churn" and to indicate that there is a function available, but in
some different state.

I'll look into the setDisabled method idea.

M


On Thu, Feb 13, 2014 at 2:36 AM, Andreas Hocevar
<[email protected]>wrote:

> Personally I would remove disabled tools from the panel. If you prefer to
> keep disabled tools visible, I'd just add a setDisabled method to
> OpenLayers.Control, which modifies the displayClass. Then you can use CSS
> to customize the appearance of disabled buttons.
>
> Andreas.
>
>
> On Wed, Feb 12, 2014 at 6:46 PM, Martin Davis <[email protected]> wrote:
>
>> We're wanting to have a Disabled state for some Buttons on a Toolbar, in
>> order to indicate to the user that some tools are not currently available.
>>
>> It appears that this is not supported by the current OL2 code?  There was
>> a thread about this waaay back in 2007:
>>
>> http://osdir.com/ml/openlayers-users-gis/2007-11/msg00373.html
>>
>> Did anything ever come of this?  Does anyone have any suggestions or code
>> that might provide this functionality?
>>
>> Otherwise, we may just roll up our sleeves and try and add this to a
>> extension to the Toolbar (and possibly Controls).
>>
>> _______________________________________________
>> Users mailing list
>> [email protected]
>> http://lists.osgeo.org/mailman/listinfo/openlayers-users
>>
>
>
_______________________________________________
Users mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/openlayers-users

Reply via email to