U++ framework
Do not panic. Ask here before giving up.

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: Fri Sep 11 10:41:25 GMT+2 2026

Total time taken to generate the page: 0.00593 seconds