|
|
On Wednesday, September 9, 2020 at 4:20:34 AM UTC-5 Manolo wrote:
Ian has already explained that Fl_Window::decorated_w/h() are effective only when the window has been mapped. These 2 calls: mywindow->show(); mywindow->wait_for_expose(); make sure the window is mapped.
Furthermore, when FLTK creates a window, it makes sure it's not bigger than the screen and resizes it if it's bigger. (It's possible to resize a window bigger later on).
Upon explanation it makes total sense now. Thank you Ian and Manolo!
Sometimes using FLTK gets too easy it seems, so what is sensible yet a bit nuanced (e.g., for me) may be too easily overlooked. I humbly suggest addition of a line or two in the FLTK doco for the decorated_w() / decorated_h() methods in regards to the issue, if time permits. Love FLTK!
--
You received this message because you are subscribed to the Google Groups "fltk.general" group.
To unsubscribe from this group and stop receiving emails from it, send an email to fltkgeneral+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/fltkgeneral/226e5f6f-95be-490c-a683-2a6b0f243762n%40googlegroups.com.
[ Direct Link to Message ] | |
|
| |