[fltk.bugs] [HIGH] STR #2262: incorrect widget's label update

2009-09-24 Thread Grygoriy
DO NOT REPLY TO THIS MESSAGE.  INSTEAD, POST ANY RESPONSES TO THE LINK BELOW.

[STR New]

Link: http://www.fltk.org/str.php?L2262
Version: 1.3-current


Hi. If you have some widget with label (e.g. somelabel), and then you
will try to change it to shorter one(e.g. 123), part of old label will
stay on the screen(see screenshot for details). I've attached sources for
example app.


Link: http://www.fltk.org/str.php?L2262
Version: 1.3-currentattachment: screen.png___
fltk-bugs mailing list
fltk-bugs@easysw.com
http://lists.easysw.com/mailman/listinfo/fltk-bugs


Re: [fltk.bugs] [MOD] STR #2262: incorrect widget's label update

2009-09-24 Thread Albrecht Schlosser

[STR Closed w/Resolution]

Link: http://www.fltk.org/str.php?L2262
Version: 1.3-current
Fix Version: None


This is normal behavior, and maybe we could call it a FAQ.

If your widget has an outside label, then you need to call redraw() for
its parent. In this case this would be:

void cb_click(Fl_Button*, void*)
{
   w-label(123);
   w-parent()-redraw(); // add this to draw the label
}

The reason is that FLTK is optimized not to do too much drawing if it
might not be needed. BTW.: this works only if the parent has a real
(solid) box type and not a frame or no box. Otherwise you'd have to draw
the parent's parent (maybe the whole window), or you need to damage() a
region of the window.


Link: http://www.fltk.org/str.php?L2262
Version: 1.3-current
Fix Version: None

___
fltk-bugs mailing list
fltk-bugs@easysw.com
http://lists.easysw.com/mailman/listinfo/fltk-bugs


Re: [fltk.bugs] [HIGH] STR #2232: FLTK1/2 X11 keyboard handling broken if using a soft keyboard

2009-09-24 Thread dima

DO NOT REPLY TO THIS MESSAGE.  INSTEAD, POST ANY RESPONSES TO THE LINK BELOW.

[STR New]

Link: http://www.fltk.org/str.php?L2232
Version: 1.3-current


I discovered that an identical bug existed in QT until very recently. Maybe
this will help shed light on the original reasoning:

http://lists.trolltech.com/qt-interest/2008-10/thread00773-0.html


Link: http://www.fltk.org/str.php?L2232
Version: 1.3-current

___
fltk-bugs mailing list
fltk-bugs@easysw.com
http://lists.easysw.com/mailman/listinfo/fltk-bugs