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?
icon9.gif  window resized has no CALLBACK? [message #13939] Sat, 02 February 2008 03:44 Go to next message
bonami is currently offline  bonami
Messages: 186
Registered: June 2007
Location: Beijing
Experienced Member
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()?
Re: window resized has no CALLBACK? [message #13940 is a reply to message #13939] Sat, 02 February 2008 06:15 Go to previous messageGo to next message
Werner is currently offline  Werner
Messages: 234
Registered: May 2006
Location: Cologne / Germany
Experienced Member
What about

Paint(...);

?

Werner

[Updated on: Sat, 02 February 2008 06:17]

Report message to a moderator

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 next 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
Re: window resized has no CALLBACK? [message #14311 is a reply to message #13943] Fri, 22 February 2008 11:40 Go to previous messageGo to next message
masu is currently offline  masu
Messages: 378
Registered: February 2006
Senior Member
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
Re: window resized has no CALLBACK? [message #14395 is a reply to message #14311] Mon, 25 February 2008 10:53 Go to previous message
bonami is currently offline  bonami
Messages: 186
Registered: June 2007
Location: Beijing
Experienced Member
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
Previous Topic: Layout and Paint event processing
Next Topic: [SOLVED] OpenGL reference example X11 crash
Goto Forum:
  


Current Time: Fri Mar 29 15:18:04 CET 2024

Total time taken to generate the page: 0.01495 seconds