> Fl::x(), Fl::y(), Fl::w(), Fl::h() return the available 
> desktop. It may even span multiple screens, although I think 
> that that is quite uncommon.
> 
> the screen_xywh() function should return the actual pixel 
> resolution of all available screens.


Hmm, I'm not sure that's right. I think it returns the "available"
desktop, masking out taskbars, menu bars etc.

See attached fluid file. On winXP and OSX it returns values that are
less then the monitor size, because the available area is clipped by the
taskbar (winXP) or the menu bar (OSX).

# data file for the Fltk User Interface Designer (fluid)
version 1.0110 
header_name {.h} 
code_name {.cxx}
Function {} {open
} {
  Fl_Window main_win {open
    xywh {558 370 550 385} type Double visible
  } {
    Fl_Button {} {
      label Quit
      callback {main_win->hide();}
      xywh {450 325 65 35}
    }
    Fl_Value_Output x_val {
      label X
      xywh {40 26 66 24}
    }
    Fl_Value_Output y_val {
      label Y
      xywh {40 61 66 24}
    }
    Fl_Value_Output w_val {
      label W
      xywh {40 96 66 24}
    }
    Fl_Value_Output h_val {
      label H
      xywh {40 131 66 24}
    }
    Fl_Button {} {
      label Get
      callback {int xx, yy, ww, hh;
Fl::screen_xywh(xx,yy,ww,hh);
x_val->value(xx);
y_val->value(yy);
w_val->value(ww);
h_val->value(hh);}
      xywh {130 66 64 35}
    }
  }
} 


-- 
Ian

SELEX Galileo Ltd
Registered Office: Sigma House, Christopher Martin Road, Basildon, Essex SS14 
3EL
A company registered in England & Wales.  Company no. 02426132
********************************************************************
This email and any attachments are confidential to the intended
recipient and may also be privileged. If you are not the intended
recipient please delete it from your system and notify the sender.
You should not copy it or use it for any purpose nor disclose or
distribute its contents to any other person.
********************************************************************

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

Reply via email to