[<<] [<] Page 1 of 1 [>] [>>] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Subject:
Window position on launch time!
From: "Tasnim Ahmed" ####@####.#### Date: 4 Dec 2000 15:58:38 -0000 Message-Id: <002301c05e0b$77aab020$f47457ca@khi.net.pk> Hello: When I started to develop PIMs for Microwindows on helio I got the pain of applications popping up at all locations on the desktop. How can this be controlled so my app always appears at 0,0. Till the keyboard appears at bottom I may need to restrict to rest of screen or user might play hide and seek with it :( -tasnim | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Subject:
Re: Window position on launch time!
From: Jordan Crouse ####@####.#### Date: 4 Dec 2000 16:23:26 -0000 Message-Id: <3A2BC5D2.7160F956@censoft.com> The nanowm thinks that it knows best where to put the new windows, but you can teach it a lesson. Check demos/nanowm/clients.c starting at line 108. This is the algorithm that determines where the file should be. Note that if you set the window properties to GR_WM_PROPS_NOAUTOMOVE when you create the window in your app, the window manager will use those settings. Otherwise, it will try to tile the windows. You can either replace this algorithm, or just use GR_WM_PROPS_NOAUTOMOVE (which I recommend, otherwise you would end up having different copies of nanowm for each platform, which pretty much violates the "same code on every processor" philosophy of Microwindows). Good luck with your PIMS. Happy hacking, Jordan > When I started to develop PIMs for Microwindows on helio I got the pain of > applications popping up at all locations on the desktop. How can this be > controlled so my app always appears at 0,0. Till the keyboard appears at > bottom I may need to restrict to rest of screen or user might play hide and > seek with it :( > > -tasnim > > --------------------------------------------------------------------- > To unsubscribe, e-mail: ####@####.#### > For additional commands, e-mail: ####@####.#### | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Subject:
Re: Window position on launch time!
From: "Greg Haerr" ####@####.#### Date: 5 Dec 2000 18:08:40 -0000 Message-Id: <0ba701c05ee6$b4e57700$15320cd0@gregh> : When I started to develop PIMs for Microwindows on helio I got the pain of : applications popping up at all locations on the desktop. How can this be : controlled so my app always appears at 0,0. Till the keyboard appears at : bottom I may need to restrict to rest of screen or user might play hide and : seek with it :( If you're running a window manager, then use GR_WM_PROPS_NOAUTOMOVE in the first param to GrNewWindowEx or a later GrSetWMProperties call. The current shipping window manager with microwindows may ignore this bit, check src/demos/nanowm/clients.c. Regards, Greg | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
[<<] [<] Page 1 of 1 [>] [>>] |