[<<] [<] Page 1 of 1 [>] [>>] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Subject:
How to specify the position of of window
From: Michael Schmid ####@####.#### Date: 8 Jul 2009 15:32:17 -0000 Message-Id: <4A54BC04.5030106@ecom-ch.com> Hi! Example: I want to start the nxkbd. Antoher FLTK-GUI is allready running. 1 -> How can I determine where on the screen the new window will occur? The default seems to be 0,0 2 -> How can I determine if the new window is in foreground of in background? Thanks! Michael -- Michael Schmid ECOM Engineering GmbH Farbgutstrasse 3 9008 St. Gallen Tel. 0041 71 840 08 00 Direkt 0041 71 840 08 20 Fax 0041 71 840 08 01 Web www.ecom-ch.com <http://www.ecom-ch.com/> Mail ####@####.#### ####@####.#### | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Subject:
Re: [nanogui] How to specify the position of of window
From: Michael Schnell ####@####.#### Date: 9 Jul 2009 07:35:22 -0000 Message-Id: <4A559DB5.5030800@lumino.de> Michael Schmid wrote: > 1 -> How can I determine where on the screen the new window will occur? I suppose you first need do create the Window and then use GrMoveWindow() to relocate it. (My experience is that the default is not (0/0) but somehow increases along a diagonal line with each new Window.) Let me know what you find out regarding your second question. -Michael | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Subject:
Re: [nanogui] How to specify the position of of window
From: "Greg Haerr" ####@####.#### Date: 9 Jul 2009 19:39:12 -0000 Message-Id: <12ce01ca00cd$41377690$0300a8c0@RDP> : Example: I want to start the nxkbd. Antoher FLTK-GUI is allready running. : 1 -> How can I determine where on the screen the new window will occur? : The default seems to be 0,0 If the nanowm window manager is not running, the x,y coordinates in the GrNewWindow call will be used to place the window. If it is running, then it is usually overridden, and placed starting at 0,0, and incrementally diagonally down the screen. See src/demos/nanowm source for details. IIRC there's a flag bit you can set with GrSetWMProperties that tells the window manager not to relocate the window. : 2 -> How can I determine if the new window is in foreground of in : background? I'm not sure what you mean, foreground vs background. If you're talking z-order, the window will be placed on top z-order after the first GrShowWindow, and remain in user-selected z-order thereafter. There's a call to change the z-order as well. Does you application care? Regards, Greg | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
[<<] [<] Page 1 of 1 [>] [>>] |