Search found 2 matches

by netpole
Sun May 03, 2009 1:26 am
Forum: Component Writing
Topic: How to make controls' background transparent?
Replies: 2
Views: 2076

On wxMSW, wxAnimationCtrl doesn't have a transparent background though the bitmap shows on it is transparent. So I trid to extend it to meet my need. Currently, I make it by copying the region from parent's DC and draw it as background and it works. I wonder if there's a better way?
by netpole
Sat May 02, 2009 2:02 pm
Forum: Component Writing
Topic: How to make controls' background transparent?
Replies: 2
Views: 2076

How to make controls' background transparent?

Anyone knows how to implement a transparent background? panel3_ = new wxPanel(this); panel3_->SetSize(wxSize(200, 200)); panel3_->Connect(wxID_ANY, wxEVT_ERASE_BACKGROUND, wxEraseEventHandler( DummyPanel::OnErase)); void DummyPanel::OnErase(wxEraseEvent& e) { wxClientDC* client_dc = NULL; if (e.GetD...