bool ctlComboBoxFix::SetKey(long val) { unsigned int i; for (i=0 ; i < GetCount() ; i++) { if (GetLongKey(i) == val) { SetSelection(i); return true; } } SetSelection(wxNOT_FOUND); return false; }
/******************************************************************************************** > virtual NodeAttribute* VisibleTemplateAttribute::CreateNewAttribute() Author: Colin_Barfoot (Xara Group Ltd) <*****@*****.**> Created: 09/06/97 Purpose: Creates a new used property. Returns: A new AttrUser ********************************************************************************************/ NodeAttribute* VisibleTemplateAttribute::CreateNewAttribute() { return new TemplateAttribute( m_Handler.GetInternalName(), GetValue(), GetLongKey() ); }