displaying an image on a panel?
Jose' Cruanyes
cruanyes at cegroup.it
Sun Nov 19 13:14:11 PST 2006
Il giorno 19/nov/06, alle ore 16:08, Rory Walsh ha scritto:
> I'm looking to display some images on a panel, is there a
> straightforward way to do this? Of can I place an wxBitmap on a
> panel or something like that? I'll also need to be able to change
> the bitmap/jpeg at different times during run-time. Any ideas on
> the best way to do this? Cheers,
void MyPanel::OnDraw(wxDC& dc)
{
if (m_image.Ok())
dc.DrawBitmap(m_image,0,0,true);
}
Pax et Bonum
# dott. Jose' Cruanyes Aguilar - C.E. Soft srl
# Pzza. Firenze,4 MILANO - XX Settembre 10, CREMONA
# 02,33603122 0372,460602
More information about the wx-users
mailing list