コード例 #1
0
ファイル: GtkTest.cs プロジェクト: PlumpMath/cil-bindings
        public MainWindow()
            : base(WindowType.Toplevel)
        {
            VBox vBox = new VBox();

            _swf = new Swfdec.GtkWidget(new Player(null));
            _swf.SetSizeRequest(400, 300);
            vBox.PackStart(_swf);

            HButtonBox btnBox = new HButtonBox();

            Button btnOpen = new Button();

            btnOpen.Label    = "Open";
            btnOpen.Clicked += ButtonOpenClicked;

            btnBox.Add(btnOpen);

            vBox.PackStart(btnBox, false, false, 3);

            Add(vBox);

            WindowPosition = Gtk.WindowPosition.Center;
            DeleteEvent   += OnDeleteEvent;
        }
コード例 #2
0
ファイル: GtkTest.cs プロジェクト: draek/cil-bindings
        public MainWindow()
            : base(WindowType.Toplevel)
        {
            VBox vBox = new VBox ();

            _swf = new Swfdec.GtkWidget (new Player (null));
            _swf.SetSizeRequest (400, 300);
            vBox.PackStart (_swf);

            HButtonBox btnBox = new HButtonBox ();

            Button btnOpen = new Button ();
            btnOpen.Label = "Open";
            btnOpen.Clicked += ButtonOpenClicked;

            btnBox.Add (btnOpen);

            vBox.PackStart (btnBox, false, false, 3);

            Add (vBox);

            WindowPosition = Gtk.WindowPosition.Center;
            DeleteEvent += OnDeleteEvent;
        }