On 04.07.2012, at 09:16, Herman wrote:

> I am currently trying to make an FLTK window on Mac OS X with rounded 
> bottom corners. Unfortunately I have been unsuccessful so far.

> In both cases the resize strips in the lower right corner are drawn by 
> FLTK and by the the OS which looks pretty ugly, since they are not drawn 
> at exactly the same location.

FLTK 1.3 stops drawing the resize patch for OS X Lion and above. I was not 
aware that Cocoa ever drew one for 10.6 and below? You can remove the drawing 
code in Fl_Window::draw(), assuming you are using FLTK 1.3.

I am no Cocoa expert, but AFAIK it should be Cocoa that takes care of the 
rounded corners by clipping them away for any kind of drawing. FLTK should not 
be able to draw into that area.

> There would be another solution to initialize the window borderless and 
> completely transparent and then do all the drawing and handling myself. 
> Before I do that I would like to explore simpler alternatives.

Transparent windows will be a feature of FLTK 3. But that does not solve you 
current problem.

> Does anybody of the MacOS X gurus here have any ideas what else I could 
> try? Can it be done at all with FLTK?

FLTK has no calls to change the way the borders of windows are drawn. You 
either must change the FLTK source code, or change the style afterwards using 
fl_xid, just as you did. I can;t say anyting for the Cocoa side of things as I 
am no expert there.

Manolo?


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

Reply via email to