On Jun 14, 2007, at 9:26 AM, Manoj wrote: >> >> On Jun 14, 2007, at 7:49 AM, Manoj wrote: >> >>> If i use fl_rectf instead of fl_rect and choose any color then line >>> under this rectangle never display. >>> like >>> fl_rectf(0, 0, 50, 50,100,100,100); >>> Can i see the line also if i use fl_rectf? >> >> >> Just draw the rectangle first, then the line. > > If i derived my class from Fl_Widget and i draw rectangle after > line then it draws successfully. But if i derived class from > Fl_Double_Window and draw the rectangle after lines then it never > draws.
If you draw the line first, then the rectangle, the line will not be entirely visible. The rectangle will draw over it. It makes no difference if you derive from Fl_Widget, Fl_Window, or any other Fl_ class. > Either some problem in my code or something else. Let me try to > draw rectangle before line. Please post some code. The code must be complete (it must compile by itself on any platform), less than one page, and part of you message (don't send attachments). It would be a lot easier to help you. ---- http://robowerk.com/ _______________________________________________ fltk mailing list [email protected] http://lists.easysw.com/mailman/listinfo/fltk

