Home » U++ Library support » Splitter » Splitter SetPos bug ?
Splitter SetPos bug ? [message #24350] |
Mon, 11 January 2010 22:57  |
mdelfede
Messages: 1308 Registered: September 2007
|
Ultimate Contributor |
|
|
Before upgrading to current 1879 svn (I was in 1801 svn) this worked, now the splitter sets always about on middle.
#include <CtrlLib/CtrlLib.h>
using namespace Upp;
class TestSplitter : public TopWindow
{
private:
// pages column list
ColumnList pageList;
// page container
StaticRect pagePane;
// the splitter
Splitter splitter;
public:
TestSplitter();
};
TestSplitter::TestSplitter()
{
// adds the splitter
SizePos();
Add(splitter);
// setup pagelist appearance
pageList.Columns(1).SizePos();
// adds the columnlist on left
splitter.Horz().SetPos(100).Set(pageList, pagePane);
}
GUI_APP_MAIN
{
TestSplitter().Run();
}
[Updated on: Mon, 11 January 2010 22:59] Report message to a moderator
|
|
|
Goto Forum:
Current Time: Sat Apr 26 01:37:45 CEST 2025
Total time taken to generate the page: 0.00592 seconds
|