Exemple #1
0
        public static void TestSomething()
        {
            NotebookManager top = GlobalVariables.traindir.m_frame.m_top;
            int             id  = top.FindPage("Layout");
            PaintDC         dc  = new PaintDC(top.GetPage(id));

            // dc.Font = font;
            // dc.TextForeground = textColour;
            dc.BackgroundMode = DCBackgroundMode.TRANSPARENT;

            dc.BackgroundMode = DCBackgroundMode.SOLID;
            dc.Background     = new Brush(new Colour(0x80, 0, 0));
            dc.Clear();

            dc.DrawText("wxWidgets common dialogs test application", 10, 10);

            dc.Dispose(); //needed
        }