chuck@trantor.harris-atd.com (Chuck Musciano) (11/23/88)
When you create a subframe in SunView for dialog boxes and the like, using window_create(base_frame, FRAME, ... ); the subframe is erroneously assigned an icon slot on the screen, even though subframes cannot be closed to an icon. In order to prevent this, you need to explicitly set the icon position of the subframe. Setting this via the FRAME_CLOSED_RECT attribute does not work. You must perform the following gross hack: static char pos_hack[5] = {"", "-WP", " ", " ", NULL}; Rect *fr; ... fr = (Rect *) window_get(base_frame, FRAME_CLOSED_RECT); sprintf(pos_hack[2], "%d", fr->r_left); sprintf(pos_hack[3], "%d", fr->r_top); window_create(base_frame, FRAME, FRAME_ARGS, 4, pos_hack, ... 0); If anyone else has a better way of doing this, I'd like to know. By the way, I see that SunView 2 is now named "View 2". So now you can say things like "I do too use View 2. Do you?" Theodore Geisel will be pleased :-) Chuck Musciano Advanced Technology Department Harris Corporation (407) 727-6131 ARPA: chuck@trantor.harris-atd.com