+ const unsigned count = labels.size();
+ for( unsigned i = 0; i < count; i++ )
+ {
+#if wxUSE_TOOLTIPS
+ if ( !tooltips[i].empty() )
+ control->SetItemToolTip(i, tooltips[i]);
+#endif // wxUSE_TOOLTIPS
+#if wxUSE_HELP
+ if ( helptextSpecified[i] )
+ control->SetItemHelpText(i, helptexts[i]);
+#endif // wxUSE_HELP
+ }
+
+ labels.clear(); // dump the strings
+
+ tooltips.clear(); // dump the tooltips
+
+ helptexts.clear(); // dump the helptexts
+ helptextSpecified.clear();