[Search for users] [Overall Top Noters] [List of all Conferences] [Download this site]

Conference bulova::decw_jan-89_to_nov-90

Title:DECWINDOWS 26-JAN-89 to 29-NOV-90
Notice:See 1639.0 for VMS V5.3 kit; 2043.0 for 5.4 IFT kit
Moderator:STAR::VATNE
Created:Mon Oct 30 1989
Last Modified:Mon Dec 31 1990
Last Successful Update:Fri Jun 06 1997
Number of topics:3726
Total number of notes:19516

1499.0. "window appear/desappear" by ANNECY::SIRON () Thu Sep 28 1989 06:31




                    Does anyone know how, in a program, we can :
                       -- put the application's window in its 
                          icon (in the icon box),
                       -- make it appear on the screen,
                    as many times we need.

                    	      Thanks in advance, Didier.

T.RTitleUserPersonal
Name
DateLines
1499.1part of the solutionKOBAL::SCAERThu Sep 28 1989 14:2226
	
	This code will deiconify a window.

	    XWMHints wmhints;

	    XtSetArg(arglist[argcount], XtNiconPixmap, &wmhints.icon_pixmap);
	    argcount++;
	    XtSetArg(arglist[argcount], XtNiconWindow, &wmhints.icon_window);
	    argcount++;
	    XtSetArg(arglist[argcount], XtNiconX, &wmhints.icon_x);
	    argcount++;
	    XtSetArg(arglist[argcount], XtNiconY, &wmhints.icon_y);
	    argcount++;
	    XtSetArg(arglist[argcount], XtNiconMask, &wmhints.icon_mask);
	    argcount++;
	    XtSetArg(arglist[argcount], XtNwindowGroup, &wmhints.window_group);
	    argcount++;
	    XtGetValues(shell, arglist, argcount);

	    wmhints.initial_state = NormalState;
	    wmhints.input = FALSE;
	    wmhints.flags = StateHint | InputHint;

	    XSetWMHints(display, window_id, &wmhints);
	    XMapRaised(display, window_id);