U++ framework - RDF feed
type: channel
description: Do not panic. Ask here before giving up.
items: window resized has no CALLBACK?
items: Re: window resized has no CALLBACK?

window resized has no CALLBACK?
type: item
description: 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()?
creator: bonami
date: 2008-02-02T02:44:14-00:00

Re: window resized has no CALLBACK?
type: item
description: What about Paint(...); ? Werner
creator: Werner
date: 2008-02-02T05:15:32-00:00

Re: window resized has no CALLBACK?
type: item
description: 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
creator: mirek
date: 2008-02-02T08:12:24-00:00

Re: window resized has no CALLBACK?
type: item
description: So ctrl resize events can only be caught by overwriting Layout method, right? Or is there another method that is called if and only if a ctrl (or top window) resize occurrs? Matthias
creator: masu
date: 2008-02-22T10:40:39-00:00

Re: window resized has no CALLBACK?
type: item
description: masu wrote on Fri, 22 February 2008 18:40 So ctrl resize events can only be caught by overwriting Layout method, right? Or is there another method that is called if and only if a ctrl (or top window) resize occurrs? Matthias Layout() is good enough for me
creator: bonami
date: 2008-02-25T09:53:51-00:00