Home » Extra libraries, Code snippets, applications etc. » U++ users applications in progress and useful code snippets, including reference examples! » How to combine two widget-class in the topwindow
Re: How to combine two widget-class in the topwindow [message #2100 is a reply to message #2090] |
Fri, 31 March 2006 23:14   |
 |
forlano
Messages: 1207 Registered: March 2006 Location: Italy
|
Senior Contributor |
|
|
fudadmin wrote on Fri, 31 March 2006 19:17 |
1. Complex interfaces should be more or less evenly distributed among classes and their constructors. That's why classes exists!
2. I personally know 3 main ways of creating widgets:
2.1 As Mirek mentioned here - with Layout Designer
2.2 Program everything yourself by hand
2.3 Copy code from *.lay files and create your own programmed classes.
Which case you would like to discuss?
|
The package AddressBook shows how to integrate the product of the Layout Designer with the code. Unfortunately I saw strange signs like <...> , , that I do not understand yet... So points 2.1 and 2.3 cannot be discussed with me, at least not in the immediate future.
Fortunatly remains another possibility, 2.2. It should be the most general approach although at the cost to write more code lines... but I'm ready.
The current problem is to put between the menubar and the status bar a group of 4 tab pages. Each of them will contain other widgets. I've inquired the available documentation and the code example to get useful advices but both AddressBook and theIde packages use layout files. So I do not know how to let appear some thing that could resemble a tabbed window. Nevertheless I tried many weird things like that below good to open a window but without tabs.
Any advices for a minimalist approach as the example below? After that something will appear I will try to merge it with the menu and status bar and then start to fill each tab.
Thank you,
Luigi
#include <CtrlLib/CtrlLib.h>
GUI_APP_MAIN
{
TopWindow w;
TabCtrl tab0, tab1;
//AddFrame(tab0);
w.Add(tab0, "one");
w.Add(tab1, "two");
w.Run();
}
|
|
|
 |
|
How to combine two widget-class in the topwindow
By: forlano on Thu, 30 March 2006 14:20
|
 |
|
Re: How to combine two widget-class in the topwindow
By: fudadmin on Thu, 30 March 2006 15:06
|
 |
|
Re: How to combine two widget-class in the topwindow
By: forlano on Thu, 30 March 2006 22:04
|
 |
|
Re: How to combine two widget-class in the topwindow
By: mirek on Thu, 30 March 2006 22:17
|
 |
|
Re: How to combine two widget-class in the topwindow
By: fudadmin on Fri, 31 March 2006 19:17
|
 |
|
Re: How to combine two widget-class in the topwindow
By: forlano on Fri, 31 March 2006 23:14
|
 |
|
Re: How to combine two widget-class in the topwindow
By: fudadmin on Fri, 31 March 2006 23:40
|
 |
|
Re: How to combine two widget-class in the topwindow
By: forlano on Fri, 31 March 2006 23:52
|
 |
|
Re: How to combine two widget-class in the topwindow
By: forlano on Sat, 01 April 2006 12:34
|
 |
|
Re: How to combine two widget-class in the topwindow
By: fudadmin on Sat, 01 April 2006 14:31
|
 |
|
Re: How to combine two widget-class in the topwindow
By: fudadmin on Sat, 01 April 2006 15:24
|
 |
|
Re: How to combine two widget-class in the topwindow
By: forlano on Sat, 01 April 2006 17:40
|
 |
|
Re: How to combine two widget-class in the topwindow
By: forlano on Sat, 01 April 2006 19:56
|
 |
|
Re: How to combine two widget-class in the topwindow
By: fudadmin on Sat, 01 April 2006 20:27
|
 |
|
Re: How to combine two widget-class in the topwindow
By: mirek on Sat, 01 April 2006 20:36
|
 |
|
Re: How to combine two widget-class in the topwindow
By: fudadmin on Sat, 01 April 2006 20:48
|
 |
|
Re: How to combine two widget-class in the topwindow
By: fudadmin on Sat, 01 April 2006 21:03
|
 |
|
Re: How to combine two widget-class in the topwindow
By: mirek on Sat, 01 April 2006 21:09
|
 |
|
Re: How to combine two widget-class in the topwindow
By: forlano on Sun, 02 April 2006 10:22
|
 |
|
Re: How to combine two widget-class in the topwindow
By: fudadmin on Sun, 02 April 2006 12:39
|
Goto Forum:
Current Time: Sat Apr 26 08:39:08 CEST 2025
Total time taken to generate the page: 0.01163 seconds
|