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 » How do you make the widgets resizable?
Re: How do you make the widgets resizable? [message #34426 is a reply to message #34419] Mon, 21 November 2011 20:04 Go to previous message
BioBytes is currently offline  BioBytes
Messages: 307
Registered: October 2008
Location: France
Senior Member
Hi Lectus,

You can also use the virtual method Layout() in TopWindow object.

Header file

class MyWin : public WithMyWinLayout<TopWindow> {
typedef MyWin CLASSNAME;

public:
MyWin();

private:
virtual void Layout();
};


cpp file

void MyWin::Layout()
{
Size sz = GetSize();

if(sz.cx== something)dosomething with SetRect(p1,p2,p3,p4)or the embedded widgets using layout functions (SizePos() etc..);

TopWindow::Layout(); //call the ancestor method
}


Hope this could be helpful

Regards
Biobytes
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: EditField-Style - paper - just black!
Next Topic: Appearance problem with Docking framework
Goto Forum:
  


Current Time: Fri May 10 08:13:20 CEST 2024

Total time taken to generate the page: 0.02545 seconds