On Fri, 2002-11-29 at 23:33, Angus Leeming wrote:
> > Still corrupted text - probably a font issue. It seems to print the
> > percentage twice, once in the desired font and again much smaller and
> > off to the right a little bit, thus the small version overwrites the %
> > sign of the bigger version.
>
> If this is /still/ horrible, then try adding this to
> FormSpellchecker::updateState(State state):
>
> case STOPPED:
> {
> controller().stop();
>
> double const wordcount = controller().getCount();
>
> fl_set_slider_bounds(dialog_->slider_progress, 0.0, wordcount);
> fl_set_slider_value(dialog_->slider_progress, wordcount);
> fl_set_object_label(dialog_->slider_progress, "100 %");
> + fl_redraw_object(dialog_->slider_progress);
> break;
> }
Not fixed.
> If it still is being overwritten, then blast it with
> fl_redraw_form(form());
Not fixed. I placed that line after the above addition. I've attached
another example of the bug. It occurs at any value of completion from 0%
to 100%. The extra label seems to move with the yellow bar.
> Having said that, the above solutions are of the hammer variety. I suspect
> that resetting the label does not trigger a redraw event if the slider value
> is not changed. Ie, I suspect this value is already "wordcount".
>
> Try
> case STOPPED:
> {
> controller().stop();
>
> double const wordcount = controller().getCount();
> + double const currentcount =
>fl_get_slider_value(dialog_->slider_progress);
> + if (currentcount == wordcount)
> + break;
> +
> fl_set_slider_bounds(dialog_->slider_progress, 0.0, wordcount);
> fl_set_slider_value(dialog_->slider_progress, wordcount);
> fl_set_object_label(dialog_->slider_progress, "100 %");
> break;
> }
Not fixed.
> This latter would be the clean solution. Tell me what you find.
> Angus
Sorry dude =)
Keep trying!
Have fun,
Darren
<<attachment: lyx-spell.png>>
