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 #11973 is a reply to message #11945] Fri, 05 October 2007 14:54 Go to previous messageGo to previous message
mrjt is currently offline  mrjt
Messages: 705
Registered: March 2007
Location: London
Contributor
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

[Updated on: Fri, 05 October 2007 14:55]

Report message to a moderator

 
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:48:42 CEST 2025

Total time taken to generate the page: 0.04224 seconds