Ejemplo n.º 1
0
        static void Display_Result(Gdk.RGBA color)
        {
            dialog       = new Dialog();
            dialog.Title = "Selected Color: " + HexFormat(color);

            DrawingArea da = new DrawingArea();

            da.OverrideBackgroundColor(StateFlags.Normal, color);

            dialog.ContentArea.BorderWidth = 10;
            dialog.ContentArea.PackStart(da, true, true, 10);
            dialog.SetDefaultSize(200, 200);

            Button button = new Button(Stock.Ok);

            button.Clicked   += new EventHandler(Dialog_Ok);
            button.CanDefault = true;
            dialog.ActionArea.PackStart(button, true, true, 0);
            button.GrabDefault();

            dialog.ShowAll();
        }