Re: XForms: How can I draw lines in other form?

Steve Lamont (spl@szechuan.ucsd.edu)
Wed, 7 Apr 99 07:13:35 PDT

# To subscribers of the xforms list from spl@szechuan.ucsd.edu (Steve Lamont) :

> I have a program, in just a moment, there are three forms at the same time,
> two deactivated and just one active...
>
> How can I paint lines and rectangles in other form (window)?
> because with fl_line I paint in my activated form.

As the manual says, the drawing routines, such as fl_line(), all draw
to the "current Window." You can change the "current Window" by using
the fl_winset() function:

FD_some_form *fd_some_form;

[...]

fl_winset( FL_ObjWin( fd_some_form->some_object ) );

Refer to the manual chapter on "Drawing Objects" for more detail.

spl
_________________________________________________
To unsubscribe, send the message "unsubscribe" to
xforms-request@bob.usuhs.mil or see
http://bob.usuhs.mil/mailserv/xforms.html
XForms Home Page: http://bragg.phys.uwm.edu/xforms
List Archive: http://bob.usuhs.mil/mailserv/list-archives/