Home » U++ Library support » U++ Widgets - General questions or Mixed problems » container of widgets
Re: container of widgets [message #7230 is a reply to message #7228] |
Tue, 19 December 2006 06:05   |
 |
mirek
Messages: 14261 Registered: November 2005
|
Ultimate Member |
|
|
Balage wrote on Mon, 18 December 2006 19:37 | I'm positive this was asked before, I just couldn't find it through forum search.
What I want is this: Have a top window, and inside it containers, which contain other widgets.
The problem I have, is that the springs can only position relative to the containing window.
Suppose I want 2 buttons to move together. The first thing that comes to my mind, is that I create an invisible container, which moves relative to the main window, and add the 2 buttons to the container, which move relative to the container.
How can I achieve this?
|
Exactly as you suggest 
The only problem is that Layout designer is not designed for "nested" operation. If you want to design this in Layout designer, you will have to use two layouts (one placing container to TopWindow, other for container).
BTW, the class intended for use as such container is ParentCtrl.
Mirek
|
|
|
Goto Forum:
Current Time: Sun Jun 08 00:51:19 CEST 2025
Total time taken to generate the page: 0.04835 seconds
|