コード例 #1
0
 protected override void TabContainer_RemoveTabPageInternal(TabContainer parent, TabPage tabPage)
 {
     throw new NotImplementedException ();
 }
コード例 #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);
            }
        }
コード例 #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);
        }
コード例 #4
0
 public TabPageCollection(TabContainer parentContainer)
 {
     _parentContainer = parentContainer;
 }