XForms: Icon Location

James, Robert (jamesr@saic.alaska.net)
Fri, 2 Jul 1999 05:17:49 -0800

# To subscribers of the xforms list from "James, Robert" <jamesr@saic.alaska.net> :

I have a problem with getting icons to appear at the same location on the
screen where the window-to-be-iconized is located. Instead of an icon
appearing where its window used to be, it appears in the extreme upper
left-hand corner of the screen. How can I get the icons to appear where
their windows used to be?

I used this code to define the icon:

FD_arm_contract *create_form_arm_contract(void)
{
FL_OBJECT *obj;
Pixmap p,mask;
unsigned w,h;
int hx,hy;

FD_arm_contract *fdui = (FD_arm_contract *) fl_calloc(1, sizeof(*fdui));
fdui->arm_contract = fl_bgn_form(FL_NO_BOX, 600, 450);
p=fl_read_pixmapfile(fl_root, "atccis-icon.xpm", &w, &h, &mask, &hx, &hy,
0);
fl_set_form_icon(fdui->arm_contract, p, mask);

My SPARCstation 20 runs SOLARIS 2.4, and I realize that my window manager
might be causing the problem.

Bob james
_________________________________________________
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/