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++ Library : Other (not classified elsewhere) » LRUList, what is that?
Re: Another question... [message #14030 is a reply to message #14025] Thu, 07 February 2008 09:28 Go to previous messageGo to previous message
cbpporter is currently offline  cbpporter
Messages: 1401
Registered: September 2007
Ultimate Contributor
bytefield wrote on Wed, 06 February 2008 23:36

How can i get application size, (or get notified on resize)? It help me serializing app. size, store it and load at next start.

I have tried with GetRect()/SetRect(...) but wont work. I want my app. to remember it last size and position, and get initialized with these next time. So need a little help here Smile .
(My app is layout based)

You could try to override void Layout() in your class. It should have access to the correct size of you window. Since in U++ most things are placed and sized automatically with the help of the logical coordinate system, GetRect/GetSize do not work as expected in instances where the control does not exist yet or does not have a parent. In Paint and Layout, the control exists, it has been set into position, so this methods work. It is little hard to get used to this system, but you'll probably appreciate it when writing custom controls and not having to worry about their layout.
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Zip library
Next Topic: Function plot
Goto Forum:
  


Current Time: Fri May 10 03:57:32 CEST 2024

Total time taken to generate the page: 0.01324 seconds