![]() |
|
#1
|
|||
|
|||
drawing widgethi,
i created my personal Widget, extending FL_widget and implementig the draw method to show my widget using FLTK Drawing Functions. But if i put my widget in the FL_Scroll, scrolling the window, i obtain that my widget will be corrupted or disappear, why ? What i have to do ? thanks you... Paolo |
|
#2
|
|||
|
|||
Re: drawing widgetmaybe you can post the code, that'll make it easier to find the bug
(maybe not even yours but FLTK's) |
|
#3
|
|||
|
|||
Re: drawing widgetsame problem i am facing. I have drawn a widget extending fl_widget class overriding draw function . And placed in fl_scroll group. But hell when i scroll the window everything disappears.
Help!!!!!! |
|
#4
|
||||
|
||||
Re: drawing widgetQuote:
Could you post an example of this? Strip it down as simply as possible and be specific about your FLTK version. Perhaps someone can offer some help or see if it is an FLTK problem. Since you are overriding draw() that would be my guess for a starting point for sure. Mark __________________
"Opportunity is missed by most people because it comes dressed in overalls and looks like work." --Thomas Alva Edison "Those who would give up essential liberty to purchase a little temporary safety, deserve neither liberty nor safety." --Benjamin Franklin "A happy person is not a person in a certain set of circumstances, but rather a person with a certain set of attitudes." --Hugh Downs |
|
#5
|
|||
|
|||
Re: drawing widgetTHe code is below
CPP / C++ / C Code:
Thanx for help Manish Kumar Last edited by cable_guy_67 : 16-Apr-2006 at 16:03.
Reason: Please enclose c++ code in [c++] ... [/c++] tags
|
|
#6
|
|||
|
|||
Re: drawing widgeti was tring to draw something in FLTK actually a graph with scrolling window. But it seems thats not possible to do as FLTK disorts the objects whose dimensions are less than dimensions of widget.
|
|
#7
|
|||
|
|||
Re: drawing widgethey i finally found why was that happening.... After going through documentation on fl_Scroll i got the mistake i was making. We need to reposition the widget as we scroll. The corrected code look like this.
CPP / C++ / C Code:
![]() Have Fun With FLTK Manish Kumar |
Recent GIDBlog
More photos on Flickr by crystalattice
| Thread Tools | Search this Thread |
| Rate This Thread | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| How to save a drawing to the file | amgturk | MS Visual C++ / MFC Forum | 2 | 25-Jul-2005 00:29 |
| FLTK clock box widget | cable_guy_67 | FLTK Forum | 0 | 09-Jul-2005 18:51 |
| Using the FL_File_Chooser widget | maveganzones | FLTK Forum | 3 | 18-Apr-2005 09:48 |
| widget coordinate relative to parent ? | Marius Giurgi | FLTK Forum | 10 | 10-Mar-2005 06:21 |
| How to refresh a widget immediately | dsmith | FLTK Forum | 8 | 11-Dec-2004 00:54 |
Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The