예제 #1
0
 public void AppendGroup(string name, bool expanded)
 {
     Gtk.Expander exp = new Expander("<b>" + name + "</b>");
     exp.UseMarkup = true;
     exp.Expanded  = expanded;
     exp.AddNotification("expanded", ExpansionChanged);
     Append(exp);
 }
예제 #2
0
        public CPaned(Paned p)
        {
            if (!(p is VPaned) || !(p.Child2 is Expander))
            {
                Console.WriteLine("CPaned: this ain't gonna fly");
                return;
            }

            paned    = p;
            expander = p.Child2 as Expander;

            paned.SizeAllocated +=
                new SizeAllocatedHandler(OnPanedSizeAllocated);
            paned.AcceptPosition +=
                new AcceptPositionHandler(OnPanedAcceptPosition);
            paned.ButtonPressEvent +=
                new ButtonPressEventHandler(OnPanedButtonPressEvent);
            paned.ButtonReleaseEvent +=
                new ButtonReleaseEventHandler(OnPanedButtonReleaseEvent);
            paned.AddNotification(
                "position", new NotifyHandler(OnPanedPositionChanged));

            expander.AddNotification("expanded", new GLib.NotifyHandler(OnExpandedChanged));
        }
예제 #3
0
파일: Grid.cs 프로젝트: mono/stetic
 public void AppendGroup(string name, bool expanded)
 {
     Gtk.Expander exp = new Expander ("<b>" + name + "</b>");
     exp.UseMarkup = true;
     exp.Expanded = expanded;
     exp.AddNotification ("expanded", ExpansionChanged);
     Append (exp);
 }