> On 06/09/11 01:41, Li Ding wrote:
> > I took a day to figure this out (not a bug but a feature).
>
>       Would like to know what examples/tutorials/docs
>       you were using for reference.
>
>       They should all show the need to use x(),y(),w(),h()
>       as your constraints when drawing things within the
>       virtual draw() method. If there are any that don't,
>       we should fix them.
>
>       If you're just starting with fltk 1.3.x,
>       have a look at this cheat page:
>       http://seriss.com/people/erco/fltk/
>
>       ..which includes an example of what you were doing:
>       http://seriss.com/people/erco/fltk/#FltkX
>
>       There's also some video tutorials here:
>       http://seriss.com/people/erco/fltk-videos/
>
I read the fltk 1.3 manual. But this problem seems not to be explicitly 
mentioned. I started to write something without reference other materials right 
after I learned the basic idea of customizing a widget. The cheat page and 
video tutorials are very useful and interesting. I finally understood the 
problem from examples on the cheat page. Thank you!

However, most write-your-own-widget examples put the widget in (0,0) of the top 
window, making it difficult to notice this problem (using 0,0 is the same as 
x(), y()). Explicitly pointing this out may be more helpful to newcomers of 
fltk.
_______________________________________________
fltk mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk

Reply via email to