Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » U++ Library support » TopWindow&PopUp, TrayIcon » How to get top and left position of top window
Re: How to get top and left position of top window [message #31874 is a reply to message #31868] Sun, 03 April 2011 18:14 Go to previous messageGo to previous message
nlneilson is currently offline  nlneilson
Messages: 644
Registered: January 2010
Location: U.S. California. Mojave &...
Contributor
Hi Honza

It took me about 6 hour tinkering to find something.

I had to do a a search with Windows file explorer for "rect" (not case sensitive) and search each file with Notepad++ and finally found "GetRect().left;" and ended with this:
		int leftP = GetRect().left;
		int topP = GetRect().top;

Then it was a simple and straight forward implementation.

I have three computers I use to test with and all have a dual boot with Ubuntu so the Upp window was in 6 slightly different positions. I don't release as finished something like that.

I don't know anything about "TopWindow::SerializePlacement".
When this is explained with a simple example in the Help docs I may try it.

Upp is a great project but there should be documentation for all of the functions/capabilities.

If it was not for the help on this forum, for someone like myself, Upp would not be a viable option.

Thanks

Neil

[Updated on: Sun, 03 April 2011 18:21]

Report message to a moderator

 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Windows that cant leave Mainwindow
Next Topic: Restoring TrayIcon control
Goto Forum:
  


Current Time: Sun Jun 08 01:31:01 CEST 2025

Total time taken to generate the page: 0.04396 seconds