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 » FrameAddSize(Size& sz) really needed?
FrameAddSize(Size& sz) really needed? [message #3647] Sun, 11 June 2006 12:35 Go to previous message
Werner is currently offline  Werner
Messages: 234
Registered: May 2006
Location: Cologne / Germany
Experienced Member
I can't see the point in using FrameAddSize(Size& sz).

Sure - the syntactical need for it is obvious because CtrlFrame::FrameAddSize(Size& sz) is a pure virtual function. If you don't define it in your derived class the compiler complains.

But where is the semantical need for it? Calling FrameLayout(Rect& r) calculates the new size of the view but lets the size of the control unchanged. FrameAddSize(Size& sz) is to compute the new size of the control. But this is unchanged, or is it?

This raises the following questions:

In which case is FrameAddSize(Size& sz) called by Ultimate++'s framework?
Or do I need to call it myself? If so: When?

Does it make sense to define and use FrameLayout(Rect& r) without semantically defining FrameAddSize(Size& sz)?

Does it make sense to define and use FrameAddSize(Size& sz) without semantically defining FrameLayout(Rect& r)?

Werner

[Updated on: Sun, 11 June 2006 18:27]

Report message to a moderator

 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: How to set the Constructor of a derived widget class?
Next Topic: OpenGL, SDL
Goto Forum:
  


Current Time: Tue Jun 11 22:43:20 CEST 2024

Total time taken to generate the page: 0.01311 seconds