Home | News | Projects | Releases
Bugs | RFE | Repositories | Help
getcontactinfo.cpp: Fix issue with using wxTransparentColour
[xestiaab/.git] / source / frmContact.cpp
index 5df8728..992ef25 100644 (file)
@@ -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
Xestia Software Development
Yn Maystri
© 2006 - 2019 Xestia Software Development
Software

Xestia Address Book
Xestia Calendar
Development

Xestia Gelforn
Everything else

About
News
Privacy Policy