Matthias Melcher wrote:
> On 28.11.2009, at 22:26, Michael Surette wrote:
> 
>> const int appW= 500;
>> const int appH= 500;
>>
>> int main(int argc, char** argv)
>> {
>>    Fl::scheme("plastic");
>>    Fl_Double_Window app(appW, appH, appName);
>>
>>    Fl_Menu_Bar menubar(0,0,appW,30);
>>    menubar.menu(mainMenu);
>>
>>    Board board(0,30,appW,appH);
>>    bp= &board;
> 
> The lowest 30 pixels of "board" are simply clipped at the bottom. What may be 
> confusing is, that drawing int "board" is relative to the enclosing window, 
> not the to the group!

Ok, I fixed my problem, making app's height 30 more than board and now 
after fixing Board::draw(), all works as expected.  My mistake was in 
compensating for the 30 pixels in Board::draw() where it doesn't belong. 
  This had left a 30 pixel blank space at the bottom which is what 
originally confused me.

Thanks for the explanation.

Mike
_______________________________________________
fltk mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk

Reply via email to