FLTK logo

Re: GL windows in Fl_Tile

FLTK matrix user chat room
(using Element browser app)   FLTK gitter user chat room   GitHub FLTK Project   FLTK News RSS Feed  
  FLTK Apps      FLTK Library      Forums      Links     Login 
 All Forums  |  Back to fltk.opengl  ]
 
Previous Message ]New Message | Reply ]Next Message ]

Re: GL windows in Fl_Tile Robert Strickland Dec 16, 2011  
 
>
> 	I wouldn't derive from Fl_Window, as that implies your
> 	coordinate space origin gets reset to zero. Changed that
> 	to Fl_Group.
>
> 	Also, fixed your yellow borders a bit; your code wasn't
> 	consistent with the +1/-1 offsets to keep the border onscreen.
>
Greg,

Thank you so much for your help. Changing from Fl_Window to Fl_Group did the trick. I don't think I would have figured this out on my own.

Your FLTK Cheat pages are a tremendous resource. Thanks for creating and posting them. Without them, I wouldn't have had a clue about how to get started with this. Thanks also for moderating the forum.

About the +1/-1 offsets on the yellow borders: without any +1 or -1, I get a yellow outline on two sides of the box only, the right and bottom. The way I had it (with the lopsided offsets) just fixed the top and left sides that weren't drawn (on linux, anyway) without disturbing the two sides that were drawn. I'll try again tomorrow on Windows.

Robert
Direct Link to Message ]
 
     
Previous Message ]New Message | Reply ]Next Message ]
 
 

Comments are owned by the poster. All other content is copyright 1998-2024 by Bill Spitzak and others. This project is hosted by The FLTK Team. Please report site problems to 'erco@seriss.com'.