Rainlendar is a fantastic cross platform calendar program that is written with wxWidgets. How does it achieve the transparency effect? Does anyone have any example code which demonstrates the transparency effect?
Rainlendar is a fantastic cross platform calendar program that is written with wxWidgets. How
Share
My guess is that they could be using a
wxScreenDCto draw directly to the screen (while preserving the background contents). Unlike receiving paint events or erase events, you create awxScreenDCon the stack at your choosing, which means that you need to refresh yourself (most likely via a timer of some sort). If you don’t, background applications will eventually repaint themselves over yourwxScreenDCcontents.Here’s the API listing
EDIT: Just to clarify, usage (besides the need to call StartDrawingOnTop and EndDrawingOnTop) is identical to any other
wxDC.