MacArthur, Ian (SELEX GALILEO, UK) wrote:
> Ah, I thought you were referring to the window icon - but maybe you mean
> the maximise / minimise / hide / close buttons then?
>
> Those belong to the window manager, not fltk, so there's no fltk-based
> way to access them at all.
> Also, drawing them is the resposibility of the WM, so you can't use fltk
> to change their appearance.
> Under Windows is is possible to use win32 API calls directly to
> manipulate those, in a kind of limited way,
Right. One thing you can do is make your application
/borederless/, and then draw the entire window border and buttons
and behavior yourself.
It will then be up to you to handle making the 'close' and 'iconify'
buttons as well as window dragging and resizing behavior.
I don't have an example of this (other than my nixieclock app
which is entirely borderless, but allows you to drag the clock
around by clicking anywhere on it and dragging). It would certainly
make for an interesting demo, and the demo would look and work
'consistently' across all platforms.
This might actually make an interesting generic FLTK window
widget actually.
_______________________________________________
fltk mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk