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 » U++ Widgets - General questions or Mixed problems » Main frame dlg: How to store last dimension and position?
Re: Main frame dlg: How to store last dimension and position? [message #29680 is a reply to message #29679] Mon, 08 November 2010 11:28 Go to previous messageGo to previous message
koldo is currently offline  koldo
Messages: 3361
Registered: August 2008
Senior Veteran
Hello JoseB

To store data between runs the best way is to use Serialize (binary files) or Xmlize (xml files).

Just try the examples, they are easy to use.

To get and set TopWindow position you can use GetRect() and SetRect(). For example, imagine a button that, when you push it, your window is moved 200 pixels. The function to do it could be:

void MyWindow::OnPush() {
	Rect r = GetRect();
	r.Offset(200, 0);
	SetRect(r);
}


Best regards
IƱaki
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: How to convert utf-8 to (strcmp type)?
Next Topic: Menu problem on windows
Goto Forum:
  


Current Time: Mon May 13 02:07:13 CEST 2024

Total time taken to generate the page: 0.02750 seconds