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 » TopWindow&PopUp, TrayIcon » Minor bug: TopWindow::GetStdSize()
Re: Minor bug: TopWindow::GetStdSize() [message #12007 is a reply to message #11973] Sun, 07 October 2007 19:33 Go to previous messageGo to previous message
mirek is currently offline  mirek
Messages: 14267
Registered: November 2005
Ultimate Member
mrjt wrote on Fri, 05 October 2007 08:54

Also... Rolling Eyes Smile

It would very helpful if ParentCtrl supported SetMinSize properly (ie. not with an empty template like other controls). Otherwise there is no way of telling how large a layout is.

struct ParentCtrl : public Ctrl {
	virtual Rect   GetVoidRect();

	ParentCtrl();
	
	virtual void SetMinSize(Size sz) { minsize = sz; }
	virtual Size GetMinSize() const  { return minsize; }
private:
	Size          minsize;
};


All of this stuff may seem somewhat trivial, but one of the things that is difficult in Upp is creating gerneric container widgets of any sort, simply because there is often no way of guessing how large a control should be in a layout.

With a few small changes this could be made much easier.

Cheers,
James


I am not too sure, considering that you would need this for some layout management scheme, that such attribute is really a good idea.

I believe that such size should be in fact a result of the whole layout machinery somehow. This perhaps not really different from the size of the whole dialog and I believe that sizing the dialog based on the size of its children is the point.... so perhaps something similar should be used for ParentCtrl too...
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Modal vs non-modal window
Next Topic: Balloon notifications and Callbacks...
Goto Forum:
  


Current Time: Wed Jul 30 22:53:38 CEST 2025

Total time taken to generate the page: 0.04601 seconds