Esempio n. 1
0
void wxNotificationMessageWindow::SetMessageIcon(const wxIcon& icon)
{
    m_messageBmp->SetBitmap(icon);
    m_messageBmp->Show(icon.IsOk());
}
Esempio n. 2
-1
	void OnListItemSelected(wxCommandEvent& event)
	{
		int sel = m_listTemplate->GetSelection();
		if (sel < 0 || sel >= (int)m_projTempList->size())
		{
			m_curSel = -1;
			return;
		}

		m_curSel = sel;

		const luProjTemplate& templ = (*m_projTempList)[sel];

		m_imgPreview->SetBitmap(wxBitmap(templ.preview, wxBITMAP_TYPE_ANY));
		m_textDesc->SetLabelText(templ.desc);
		m_textTitle->SetLabelText(templ.title);

		//gkPrintf("%d", sel);
	}