U++ framework
Do not panic. Ask here before giving up.

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: 14291
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: Sun May 17 05:37:18 GMT+2 2026

Total time taken to generate the page: 0.00800 seconds