mrjt Messages: 705 Registered: March 2007 Location: London
Contributor
Well, this is partly your mistake and partly a Upp bug.
Your mistake:
When you add Ctrls to a ToolBar it manages the layout internally and you just tell it a size. Instead of:
bar.Add(dl.HSizePos().TopPos(5, Ctrl::STDSIZE));
You use:
bar.Add(dl, dl.StdSize());
And you can change the StdSize() to Size(100, 20) or whatever.
The Upp bug:
The StdSize() shouldn't be necessary, as the default size used should be at least more-or-less correct. The problem is that the default Add function in CtrlLib/Bar.h: