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 » window resized has no CALLBACK?
Re: window resized has no CALLBACK? [message #13943 is a reply to message #13939] Sat, 02 February 2008 09:12 Go to previous messageGo to previous message
mirek is currently offline  mirek
Messages: 13975
Registered: November 2005
Ultimate Member
bonami wrote on Fri, 01 February 2008 21:44

only WhenClosed is TopWindow's CALLBACK. and then the other CALLBACK belonging to Ctrl, Action, seems relavant, but when i resize TopWindow, it is not called.
After reading Ctrl's document, i suppose Layout() is invoked when it is resized. Then do I have to reimplement TopWindow's Layout()?


Yes. Layout is called whenever "metrics" change. That includes some other cases over simple resize, e.g. change of Windows theme too, but generally, if you want to setup your internal state based on metrics, it is the right place to do so.

Mirek
 
Read Message icon9.gif
Read Message
Read Message
Read Message
Read Message
Previous Topic: Layout and Paint event processing
Next Topic: [SOLVED] OpenGL reference example X11 crash
Goto Forum:
  


Current Time: Tue Apr 23 12:17:14 CEST 2024

Total time taken to generate the page: 0.02077 seconds