Home » Community » Newbie corner » What type are the tabs?
|
Re: What type are the tabs? [message #37673 is a reply to message #37671] |
Thu, 01 November 2012 08:32   |
|
Hi nejnio,
The tabs are exactly the type that you declared :
WithAdminRegNewUserLayout<ParentCtrl> tab1;
WithAdminDeleteUserLayout<ParentCtrl> tab2;
WithAdminCreateUserRoleLayout<ParentCtrl> tab3;
They are each of different type, the only requirement is that they have to inherit from Ctrl. So you have to just specify the function as void Admin::hideAttributes(WithAdminRegNewUserLayout<ParentCtrl> tab)
If you want a function that should work for more of them (e.g. to modify common properties), there is couple options, easiest is probably to use template:template<class T>
void Admin::hideAttributes(T& tab){
//hide the lables in the CreateUser Tab
tab.newGenID.Hide();
tab.newGenLable.Hide();
tab.newGenPass.Hide();
Best regards,
Honza
|
|
|
|
Goto Forum:
Current Time: Tue Apr 29 01:44:41 CEST 2025
Total time taken to generate the page: 0.02533 seconds
|