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 » 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 Go to previous messageGo to previous message
dolik.rce is currently offline  dolik.rce
Messages: 1791
Registered: August 2008
Location: Czech Republic
Ultimate Contributor

Hi nejnio,

The tabs are exactly the type that you declared Smile :
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
 
Read Message
Read Message
Read Message
Previous Topic: example SetLayout question
Next Topic: TabDlg Remove 'Close' Button
Goto Forum:
  


Current Time: Tue Apr 29 16:09:59 CEST 2025

Total time taken to generate the page: 0.00846 seconds