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 » U++ Widgets - General questions or Mixed problems » SplitterFrame: How to build this? (SplitterFrame and how it works)
SplitterFrame: How to build this? [message #50863] Fri, 11 January 2019 00:49 Go to previous message
imos is currently offline  imos
Messages: 17
Registered: July 2017
Promising Member


Hi!
I would like to build a GUI app with the following macro details:

Tree | Layout/controls
|
|
|
________________
ArrayCtrl

However I can not get this using 2 SplitterFrame2:

SplitterFrame sfHor;
ArrayCtrl list;
SplitterFrame sfVert;
TreeCtrl tree;

typedef App CLASSNAME;
TopWindow app;
App()
{
CtrlLayoutOKCancel(*this, "Test SplitterFrame");
tree.SetRoot(CtrlImg::Dir(), "Data Channels");
AddFrame(sfVert.Bottom(list,200));
sfHor.Left(tree, 200);
//sfVert.Top(sfHor,200); //Error!
sfVert.SizeMin(100).MinSize(100);
Sizeable();
}

This code shows a listview on the bottom and the layout on the top. But I did not set any content for the top. Why is layout set automatically to the top?

In fact I need to create controls during runtime and not design them during development time. So the layout is not the right option, right? A kind of empty containner would be better, right?
But I can not find any container to use (such as panel in Java). Is it possible to add new controls to an empty layout during runtime?

Thanks a lot
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Framebuffer backend compilation errors
Next Topic: ScatterCtrl: How to control X axis ticks and tags automatically?
Goto Forum:
  


Current Time: Wed Apr 24 03:33:18 CEST 2024

Total time taken to generate the page: 0.02529 seconds