On Wed, 2016-06-22 at 11:28 +0200, Stefan Salewski wrote: > https://developer.gnome.org/gtk3/stable/GtkStack.html#gtk-stack-set-v > isible-child > > https://developer.gnome.org/gtk3/stable/GtkStack.html#gtk-stack-set-v > isible-child-name > > Do we have something similar for GTK Notebook? > > https://developer.gnome.org/gtk3/stable/GtkNotebook.html > > I was looking for something like this: proc setVisibleChild(nb: Notebook; c: Widget): bool = var i: cint = 0 var w: Widget while true: w = nb.getNthPage(i) if w.isNil: break if w == c: nb.setCurrentPage(i) return true inc(i) return false proc setVisibleChildName(nb: Notebook; n: cstring): bool = var i: cint = 0 var w: Widget while true: w = nb.getNthPage(i) if w.isNil: break if w.name == n: nb.setCurrentPage(i) return true inc(i) return false _______________________________________________ gtk-list mailing list gtk-list@xxxxxxxxx https://mail.gnome.org/mailman/listinfo/gtk-list