Ejemplo n.º 1
0
 protected override void TabContainer_RemoveTabPageInternal(TabContainer parent, TabPage tabPage)
 {
     throw new NotImplementedException ();
 }
Ejemplo n.º 2
0
        protected override void TabContainer_ClearTabPagesInternal(TabContainer parent)
        {
            if (!handlesByControl.ContainsKey (parent))
                return;

            IntPtr handle = handlesByControl [parent];
            int pageCount = Internal.GTK.Methods.gtk_notebook_get_n_pages (handle);
            for (int i = 0; i < pageCount; i++) {
                Internal.GTK.Methods.gtk_notebook_remove_page (handle, i);
            }
        }
Ejemplo n.º 3
0
        protected override void TabContainer_InsertTabPageInternal(TabContainer parent, int index, TabPage tabPage)
        {
            if (!handlesByControl.ContainsKey (parent))
                return;

            IntPtr handle = handlesByControl [parent];
            IntPtr hTabLabel = Internal.GTK.Methods.gtk_label_new (tabPage.Text);
            IntPtr hChild = Internal.GTK.Methods.gtk_label_new ("Child control for " + tabPage.Text);

            Internal.GTK.Methods.gtk_notebook_append_page (handle, hChild, hTabLabel);
        }
Ejemplo n.º 4
0
 public TabPageCollection(TabContainer parentContainer)
 {
     _parentContainer = parentContainer;
 }