> I have an application which pops up a number of windows, which I'd
> like to stack up down the right side of the screen. In order to
> use fl_set_form_position to do this I need to discover the size
> of the display screen.
>
> I know that this should be easy, but can't quite see how?
> Is there something like fl_get_winsize which could be applied to
> the root window? Or do I need some raw Xlib magic?
You'll have to resort to raw Xlib but fortunately, it's pretty
straightforward:
screen_number = DefaultScreen( fl_get_display );
width = DisplayWidth( fl_get_display(), screen_number );
height = DisplayHeight( fl_get_display(), screen_number );
As the O'Reilly Nutshell book puts it, these macros are misnamed:
they should be ScreenWidth() and ScreenHeight(), respectively.
It would be nice if there were an XForms call which set form geometry
using the standard X geometry string notation. Then you wouldn't need
to go through these small contortions.
spl
_________________________________________________
To unsubscribe, send the message "unsubscribe" to
xforms-request@bob.usuf2.usuhs.mil or see
http://bob.usuf2.usuhs.mil/mailserv/xforms.html
Xforms Home Page: http://bragg.phys.uwm.edu/xforms
List Archive: http://bob.usuf2.usuhs.mil/mailserv/list-archives/