Ejemplo n.º 1
0
        public ScheduleGraph()
        {
            ExposeEvent += new Gtk.ExposeEventHandler( ExposeHandler );

            //AddEvents( (int)EventMask.ButtonPressMask );
            //ButtonPressEvent  += OnButtonPressEvent;

            // 480 × 240 drawable + 20 border
            this.SetSizeRequest( TOTAL_WIDTH, TOTAL_HEIGHT );

            items = new List<ScheduleItem>();
        }
Ejemplo n.º 2
0
        public StatusPanel(WizardDialog wizard)
        {
            smallFont  = Style.FontDescription;
            smallFont.Size = (int) (smallFont.Size * 0.75);
            //			normalFont = Style.FontDescription;
            boldFont   = Style.FontDescription;
            boldFont.Weight = Pango.Weight.Bold;

            this.wizard = wizard;
            SetSizeRequest (198, 400);

            bitmap = Runtime.Gui.Resources.GetBitmap ("GeneralWizardBackground");

            AddEvents ((int) (Gdk.EventMask.ExposureMask));
            ExposeEvent += new Gtk.ExposeEventHandler (OnPaint);
            Realized += new EventHandler (OnRealized);
        }