From a281a0ace5d2215a75083aaac2779960a3c66661 Mon Sep 17 00:00:00 2001 From: Lluis Sanchez Date: Wed, 11 Jan 2012 20:06:13 +0100 Subject: [PATCH] Enable scrolling sample. --- Samples/MainWindow.cs | 2 +- Samples/Samples/ScrollWindowSample.cs | 6 ++++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/Samples/MainWindow.cs b/Samples/MainWindow.cs index 4ced4e7b..7b016613 100644 --- a/Samples/MainWindow.cs +++ b/Samples/MainWindow.cs @@ -63,7 +63,7 @@ namespace Samples AddSample (null, "Labels", typeof(Labels)); AddSample (null, "List View", typeof(ListView1)); AddSample (null, "Notebook", typeof(NotebookSample)); -// AddSample (null, "Scroll View", typeof(ScrollWindowSample)); + AddSample (null, "Scroll View", typeof(ScrollWindowSample)); AddSample (null, "Tables", typeof(Tables)); AddSample (null, "Text Entry", typeof(TextEntries)); AddSample (null, "Windows", typeof(Windows)); diff --git a/Samples/Samples/ScrollWindowSample.cs b/Samples/Samples/ScrollWindowSample.cs index b9dd9d27..18a43e21 100644 --- a/Samples/Samples/ScrollWindowSample.cs +++ b/Samples/Samples/ScrollWindowSample.cs @@ -36,6 +36,12 @@ namespace Samples VBox b1 = new VBox (); for (int n=0; n<30; n++) b1.PackStart (new Label ("Line " + n), BoxMode.None); + Button u = new Button ("Click to remove"); + u.Clicked += delegate { + b1.Remove (u); + }; + b1.PackStart (u); + v1.Content = b1; v1.VerticalScrollPolicy = ScrollPolicy.Always; PackStart (v1, BoxMode.FillAndExpand);