Example #1
0
        protected virtual void Build()
        {
            BinContainer.Attach(this);

            fixed1           = new Gtk.Fixed();
            fixed1.Name      = "fixed1";
            fixed1.HasWindow = true;
            Color color = new Color();

            Color.Parse("white", ref color);
            fixed1.ModifyBg(StateType.Normal, color);

            BuildSmallWidget(ref sym01, 0, 0);
            BuildSmallWidget(ref sym02, 90, 0);
            BuildSmallWidget(ref sym03, 0, 30);
            BuildSmallWidget(ref sym04, 90, 30);


            this.Add(this.fixed1);
            if ((this.Child != null))
            {
                this.Child.ShowAll();
            }

            this.Hide();
        }
        protected virtual void Build()
        {
            BinContainer.Attach(this);

            fixed1           = new Gtk.Fixed();
            fixed1.Name      = "fixed1";
            fixed1.HasWindow = true;
            Color color = new Color();

            Color.Parse("white", ref color);
            fixed1.ModifyBg(StateType.Normal, color);

            BuildSymbol(ref img01, 0, 0);
            BuildSymbol(ref img02, 16, 0);
            BuildSymbol(ref img03, 32, 0);
            BuildSymbol(ref img04, 48, 0);
            BuildSymbol(ref img05, 64, 0);


            this.Add(this.fixed1);
            if ((this.Child != null))
            {
                this.Child.ShowAll();
            }

            this.Hide();
        }
Example #3
0
        public static BinContainer Attach(Gtk.Bin bin)
        {
            BinContainer bc = new BinContainer();

            bin.SizeRequested += new Gtk.SizeRequestedHandler(bc.OnSizeRequested);
            bin.SizeAllocated += new Gtk.SizeAllocatedHandler(bc.OnSizeAllocated);
            bin.Added         += new Gtk.AddedHandler(bc.OnAdded);
            return(bc);
        }