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)
Re: SplitterFrame: How to build this? [message #50865 is a reply to message #50863] Fri, 11 January 2019 09:28 Go to previous messageGo to previous message
Oblivion is currently offline  Oblivion
Messages: 1215
Registered: August 2007
Senior Contributor
Hello, imos

Layouts are not objects, they are simply visual representations (in theIDE) of your predefined widgets (It is c++ code) and they are added dynamicially, as in your code:

CtrlLayoutOKCancel(*this, "Test SplitterFrame"); 


Above code (and other variants of CtrlLayout() function) simply adds and intializes a set of predefined widgets (visually represented as a "layout") to the given Ctrl. (In your case it is referenced by *this, which is a TopWindow. You can also assign layouts to other Ctrls.).
You can modify (add, remove, move position, change their properties etc) the widgets in your layout in runtime, as you like.

You can even define multiple layouts and use them interchangebly in runtime.


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?


Yes, see the above answer. Smile

And you can use ParentCtrl. It is meant to be a container, for grouping widgets.


Best regards,
Oblivion


[Updated on: Fri, 11 January 2019 09:41]

Report message to a moderator

 
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: Fri Jul 18 03:31:34 CEST 2025

Total time taken to generate the page: 0.02813 seconds