Patch level :10.0

Files correlati     :
Ricompilazione Demo : [ ]
Commento            :aggiunta data/ora creazione setup.exe in modo da sapere che cavolo di programma si sta usando


git-svn-id: svn://10.65.10.50/trunk@18798 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
luca 2009-04-30 08:48:17 +00:00
parent 5fb7c89700
commit faf0b22a48
2 changed files with 18 additions and 1 deletions

View File

@ -73,6 +73,14 @@ void CampoFrame::OnErase(wxEraseEvent& e)
dc.DrawText(PRODUCT, k, k);
dc.SetTextForeground(c1);
dc.DrawText(PRODUCT, k/2, k/2);
wxFont* pSmallFont = wxTheFontList->FindOrCreateFont(nHeight/6, wxFONTFAMILY_SWISS, wxFONTSTYLE_NORMAL, wxFONTWEIGHT_LIGHT);
dc.SetFont(*pSmallFont);
const wxString strTime = __TIMESTAMP__;
dc.GetTextExtent(strTime, &w, &h);
dc.SetTextForeground(c2);
dc.DrawText(strTime, rect.GetRight()-w, 0);
}
CampoFrame::CampoFrame()

View File

@ -11,9 +11,10 @@
//Campo wizard page (pagina generica del programma, di cui saranno figlie le singole pagine)
class CampoWizardPage : public wxWizardPageSimple
{
wxHtmlWindow* m_pText;
protected:
wxHtmlWindow* m_pText;
CampoWizard& GetWizard() const {return *(CampoWizard*)GetParent();}
void SetHTMLText(const wxString strTitle, const wxString strBody);
void SetHTMLPage(const wxString strFile);
@ -259,6 +260,14 @@ CampoWizardPage1::CampoWizardPage1(wxWizard* parent) : CampoWizardPage(parent)
strBody += wxT("<p><b>4) </b>che il programma PRODUCT NON sia in funzione.</p>");
strBody += wxT("<p><b>5) </b>che l'eventuale gestore dei servizi di PRODUCT, se presente, NON sia in funzione.</p>");
SetHTMLText(strTitle, strBody);
//mette a video una stringa con la data di realizzazione di setup.exe
wxString strSetupVersion = __TIMESTAMP__;
//testo con giornodataora
wxSize szSizer = m_pText->GetSize();
szSizer.y = -1;
wxStaticText* stText = new wxStaticText (this, wxID_ANY, strSetupVersion, wxDefaultPosition, szSizer, wxALIGN_RIGHT);
GetSizer()->Add(stText);
}