|
|
Home » Extra libraries, Code snippets, applications etc. » U++ users applications in progress and useful code snippets, including reference examples! » "Forlano tabs" - how to reduce a headache by the proper use of the designer...
Re: "Forlano tabs" - how to reduce a headache by the proper use of the designer... [message #2153 is a reply to message #2151] |
Sun, 02 April 2006 15:19   |
 |
fudadmin
Messages: 1321 Registered: November 2005 Location: Kaunas, Lithuania
|
Ultimate Contributor Administrator |
|
|
So, here we go:
#include <CtrlLib/CtrlLib.h>
//"Forlano tabs example"- might not be very correct but might be usuful for learning...
//with added added one layout from the designer
//Step1 - if you want to use layouts - always include something like this
#define LAYOUTFILE "editmask.lay"
#include <CtrlCore/lay.h>
//Step 2 - please check that you have LAYOUT(Tab1Layout, 680, 368)
//personally I find renaming layouts faster in text mode...
//Step 3 - the Tab1 class below is pasted from automatically generated by the Designer
//using Alt_C first option "Dialog class"
class Tab1 : public WithTab1Layout<TopWindow> {
public:
typedef Tab1 CLASSNAME;
Tab1();
};
Tab1::Tab1()
{
CtrlLayout(*this, "");
}
//the code below is what you had had before, except Step 4
//personalized tab (1 child) widget
class LuigiTab : public ParentCtrl {
Button btn;
DocEdit doc;
public:
typedef LuigiTab CLASSNAME;
LuigiTab();
~LuigiTab(){;}
};
LuigiTab::LuigiTab() {
btn.SetLabel("Just Button");
btn.SetRect(20,20,100,25);
Add(btn);
//I strongly recommend to learn positioning from Designer- use Ctrl-T!
doc.LeftPosZ(30, 500).TopPosZ(50, 300);
Add(doc);
}
//personalized tabs (many -container) widget
class LuigiTabs : public TabCtrl {
Tab1 tab1; //Step 4 - this is your new tab!!!
LuigiTab tab2,tab3; //tab1 removed
public:
typedef LuigiTabs CLASSNAME;
LuigiTabs();
~LuigiTabs(){;}
};
//the code below is all the same
Now you can make your tab1 changes using the designer... 
What's next?
[Updated on: Sun, 02 April 2006 15:56] Report message to a moderator
|
|
|
 |
|
"Forlano tabs" - how to reduce a headache by the proper use of the designer...
By: fudadmin on Sun, 02 April 2006 12:11
|
 |
|
Re: "Forlano tabs" - how to reduce a headache by the proper use of the designer...
By: fudadmin on Sun, 02 April 2006 12:17
|
 |
|
Re: "Forlano tabs" - how to reduce a headache by the proper use of the designer...
By: forlano on Sun, 02 April 2006 13:17
|
 |
|
Re: "Forlano tabs" - how to reduce a headache by the proper use of the designer...
By: fudadmin on Sun, 02 April 2006 13:28
|
 |
|
Re: "Forlano tabs" - how to reduce a headache by the proper use of the designer...
By: fudadmin on Sun, 02 April 2006 13:30
|
 |
|
Re: "Forlano tabs" - how to reduce a headache by the proper use of the designer...
By: forlano on Sun, 02 April 2006 13:43
|
 |
|
Re: "Forlano tabs" - how to reduce a headache by the proper use of the designer...
By: fudadmin on Sun, 02 April 2006 13:50
|
 |
|
Re: "Forlano tabs" - how to reduce a headache by the proper use of the designer...
By: forlano on Sun, 02 April 2006 14:11
|
 |
|
Re: "Forlano tabs" - how to reduce a headache by the proper use of the designer...
By: fudadmin on Sun, 02 April 2006 14:22
|
 |
|
Re: "Forlano tabs" - how to reduce a headache by the proper use of the designer...
By: fudadmin on Sun, 02 April 2006 15:19
|
 |
|
Re: "Forlano tabs" - how to reduce a headache by the proper use of the designer...
By: fudadmin on Sun, 02 April 2006 15:56
|
 |
|
Re: "Forlano tabs" - how to reduce a headache by the proper use of the designer...
By: forlano on Sun, 02 April 2006 18:51
|
 |
|
Re: "Forlano tabs" - how to reduce a headache by the proper use of the designer...
By: fudadmin on Sun, 02 April 2006 19:58
|
 |
|
Re: "Forlano tabs" - how to reduce a headache by the proper use of the designer...
By: mirek on Sun, 02 April 2006 20:25
|
 |
|
Re: "Forlano tabs" - how to reduce a headache by the proper use of the designer...
By: fudadmin on Sun, 02 April 2006 20:47
|
 |
|
Re: "Forlano tabs" - how to reduce a headache by the proper use of the designer...
By: forlano on Sun, 02 April 2006 20:46
|
 |
|
Re: "Forlano tabs" - how to reduce a headache by the proper use of the designer...
By: mirek on Sun, 02 April 2006 20:54
|
 |
|
Re: "Forlano tabs" - how to reduce a headache by the proper use of the designer...
By: forlano on Mon, 03 April 2006 00:17
|
 |
|
Re: "Forlano tabs" - how to reduce a headache by the proper use of the designer...
By: fudadmin on Mon, 03 April 2006 13:23
|
 |
|
Re: "Forlano tabs" - how to reduce a headache by the proper use of the designer...
By: forlano on Mon, 03 April 2006 13:29
|
 |
|
Re: "Forlano tabs" - how to reduce a headache by the proper use of the designer...
By: mirek on Mon, 03 April 2006 16:33
|
 |
|
Re: "Forlano tabs" - how to reduce a headache by the proper use of the designer...
By: fudadmin on Mon, 03 April 2006 16:37
|
 |
|
Re: "Forlano tabs" - how to reduce a headache by the proper use of the designer...
By: mirek on Mon, 03 April 2006 16:39
|
 |
|
Re: "Forlano tabs" - how to reduce a headache by the proper use of the designer...
By: forlano on Mon, 03 April 2006 13:26
|
 |
|
Re: "Forlano tabs" - how to reduce a headache by the proper use of the designer...
By: fudadmin on Mon, 03 April 2006 13:32
|
 |
|
Re: "Forlano tabs" - how to reduce a headache by the proper use of the designer...
By: fudadmin on Mon, 03 April 2006 13:45
|
 |
|
Re: "Forlano tabs" - how to reduce a headache by the proper use of the designer...
By: mirek on Mon, 03 April 2006 16:37
|
 |
|
Re: "Forlano tabs" - how to reduce a headache by the proper use of the designer...
By: fudadmin on Sun, 02 April 2006 18:54
|
 |
|
Re: "Forlano tabs" - how to reduce a headache by the proper use of the designer...
By: forlano on Sun, 02 April 2006 19:47
|
 |
|
Re: "Forlano tabs" - how to reduce a headache by the proper use of the designer...
By: fudadmin on Sun, 02 April 2006 20:00
|
 |
|
Re: "Forlano tabs" - how to reduce a headache by the proper use of the designer...
By: fudadmin on Sun, 02 April 2006 20:01
|
Goto Forum:
Current Time: Sat Apr 26 08:34:26 CEST 2025
Total time taken to generate the page: 0.00896 seconds
|
|
|