Am 03.02.2010 20:03, schrieb Greg Ercolano: > Emil wrote: >> OK. Thank you for the reference to that page. >> I have used w and h methods. > > Yes, those work as well, eg. Fl::w() and Fl::h().
The OP asked for the screen size and I think, these methods maybe are not doing the job, he wants. Screen size might be resolution of the monitor (to me this is the same as "screen", isn't it?), but Fl::w() and Fl::h() return desktop size, normally smaller than resolution, because i.e. panel height is not element of Fl::h(). When using Fl::screen_xywh(x, y, w, h) to get resolution, I'm doing w+= x; and h+= y to get a better value, but panels might be on bottom side or left side. As far as I know, OP needs to use system functions to be sure of getting real resolution, not desktop size. _______________________________________________ fltk mailing list [email protected] http://lists.easysw.com/mailman/listinfo/fltk

