You need to log in before you can comment on or make changes to this bug.
When there is no ROI drawn the "Substract Mode" should be inactive. This may confuse a user if this mode is activated and the "Define a rectangular ROI" (or other ROI) button is selected, and the user try to draw a ROI in a map preview. The ROI will not be drawn. Test case: 1. Load "sample_roi.phtml" application 2. Select "ROI" tab 3. Click "Substract Mode" button 4. Click "Define a rectangular ROI" button 5. Try to draw a ROI on map preview 6. No ROI is drawn This may be view as an enhancement bug. Mozilla 1.6 Chameleon Beta 3 20041022 Fedora Core 2
Changed target to FUTURE.
it is not currently possible to set a widget as inactive, nor would it be possible to change it from 'inactive' to 'active' in the case of the ROI tools (because they just update the ROI image, they don't submit). The button code does support a disabled state for widgets, but it has never been tested or implemented. It is likely that, at least in this case, we would have to add quite a bit of javascript to: * on load, test the number of ROIs and disable the 'subtract' mode tool appropriately. * do the same test on every change of the ROIs because they could be 'deleted' * implement a generic 'event' mechanism in javascript.