On Saturday 17 August 2002 7:05 am, Rob Lahaye wrote:
> Hi,
>
> Attached is a screenshot of the new dialog.
> Some implementation questions remain for the new graphics dialog.
>
> 1) Image percentage unit needed for Width/Height output size.

See xhorms_helpers.h. Do you want "choice_Length_All" rather than 
"choice_Length_WithUnit"?

As for setting it to the topmost, then
        fl_set_choice (ob, 3); should do it.

>     We have to be careful with the percentage unit: only one of
> Width/Height can be be entered when percentage unit is choosen (you cannot
> have a scale value for both width and height!). Maybe the unit choice
> button should disable the other input field, when image-percentage-unit is
> selected.

Fine. In FormGraphics::input:

        if (ob == choice_lyxwidth) {
                int const value = fl_get_choice(ob);
                bool const disable = value >=3 && value <= 5;
                setEnabled(other_obs, disable);
        }
                
Angus

Reply via email to