X-Git-Url: http://Server1/repobrowser/?p=xestiaab%2F.git;a=blobdiff_plain;f=source%2FfrmContact.cpp;h=992ef256ceb1b958fbdf5d9485d891abd63d79b0;hp=5df872893dd1841c8a9cae9f963a656eb5a8d694;hb=2a30393d59c892349cffec18ec16907c2358fd0f;hpb=07a4acbcc7762d0f74847c809d9ea058dfdf861c diff --git a/source/frmContact.cpp b/source/frmContact.cpp index 5df8728..992ef25 100644 --- a/source/frmContact.cpp +++ b/source/frmContact.cpp @@ -121,7 +121,22 @@ bool frmContact::SetupContactData(vCard *vCardObj){ OldSessionID = SessionID; SessionID = wxString::Format(wxT("%i"), rand() % 32768); - LoadContactData(vCardObj, htmContactData, SessionID, OldSessionID, MemoryFSListPtr); + wxColour formattedBackgroundColour; + if (backgroundColour.IsEmpty()) + { + + formattedBackgroundColour = wxTransparentColour; + + } + else + { + + formattedBackgroundColour.Set(backgroundColour); + + } + + + LoadContactData(vCardObj, htmContactData, SessionID, OldSessionID, MemoryFSListPtr, formattedBackgroundColour); ArrayvCardOutData FNList; FNList = vCardObj->GetByPartial(wxT("FN")); @@ -179,4 +194,12 @@ wxString frmContact::GetFilename(){ return vCardFilename; +} + +void frmContact::SetBackgroundColour(wxString backgroundColour){ + + // Set the background colour. + + this->backgroundColour = backgroundColour; + } \ No newline at end of file