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   |
 |
mirek
Messages: 14255 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
|
|
|
|
|
Goto Forum:
Current Time: Mon Apr 28 14:35:27 CEST 2025
Total time taken to generate the page: 0.01155 seconds
|