Hey all,

This is probably a more pertinent question for those of you that had/have 
something to do with fltk2 (which I'm aware is only a fleeting handful), but 
whilst using the Input widget (and it's derivatives) I've wandered across a 
couple of silly little bugs.
It seems that the text is drawn over the parent of the Input widget (at least, 
from what I could tell it's drawn over the parent - it might be drawn over the 
top-most window, but I'm fairly sure this isn't the case), but at no stage is 
this parent redrawn (and probably for good reason). This means that the text 
that is drawn on the far left of the Input widget will be heavily bolded by the 
time typing finished.
This behaviour is displayed in the screenshot that's posted.
There are two possible ways of fixing this that I can think of off the top of 
my head (which is the reason I'm posting this to -dev, in the hope that some of 
the guys who used to contribute are still watching this list.....). The first 
is a simple, one line fix, but is horribly expensive; forcing a redraw of the 
widget's parent cures this.
Another fix that would work - I think -  would be adding a Rectangle to the 
Input widget. If this Rectangle is drawn behind the current widget, it should 
simply be a matter of forcing a redraw of the Rectangle, which should be far 
less expensive than redrawing the entire parent.
Are there any other good options here that spring to mind? How is this problem 
overcome within 1.3 / 1.1?

The second, and slightly more problematic bug is text running off the bounds of 
the widget, but this is probably a matter for a STR rather than -dev........

Ben
                                          

<<attachment: InputBug.png>>

_______________________________________________
fltk-dev mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk-dev

Reply via email to