Mercurial > projects > dwt-win
comparison dwt/custom/ScrolledComposite.d @ 315:349b8c12e243
Sync dwt/custom with dwt-linux
author | Frank Benoit <benoit@tionex.de> |
---|---|
date | Tue, 07 Oct 2008 16:18:26 +0200 |
parents | fd9c62a2998e |
children |
comparison
equal
deleted
inserted
replaced
314:0e2b4fed7a0f | 315:349b8c12e243 |
---|---|
9 * IBM Corporation - initial API and implementation | 9 * IBM Corporation - initial API and implementation |
10 * Port to the D programming language: | 10 * Port to the D programming language: |
11 * Frank Benoit <benoit@tionex.de> | 11 * Frank Benoit <benoit@tionex.de> |
12 *******************************************************************************/ | 12 *******************************************************************************/ |
13 module dwt.custom.ScrolledComposite; | 13 module dwt.custom.ScrolledComposite; |
14 | |
15 import dwt.dwthelper.utils; | |
14 | 16 |
15 | 17 |
16 import dwt.DWT; | 18 import dwt.DWT; |
17 import dwt.DWTException; | 19 import dwt.DWTException; |
18 import dwt.events.DisposeEvent; | 20 import dwt.events.DisposeEvent; |
26 import dwt.widgets.Layout; | 28 import dwt.widgets.Layout; |
27 import dwt.widgets.Listener; | 29 import dwt.widgets.Listener; |
28 import dwt.widgets.ScrollBar; | 30 import dwt.widgets.ScrollBar; |
29 import dwt.widgets.Shell; | 31 import dwt.widgets.Shell; |
30 import dwt.custom.ScrolledCompositeLayout; | 32 import dwt.custom.ScrolledCompositeLayout; |
31 import dwt.dwthelper.utils; | |
32 | 33 |
33 /** | 34 /** |
34 * A ScrolledComposite provides scrollbars and will scroll its content when the user | 35 * A ScrolledComposite provides scrollbars and will scroll its content when the user |
35 * uses the scrollbars. | 36 * uses the scrollbars. |
36 * | 37 * |
186 } | 187 } |
187 }; | 188 }; |
188 | 189 |
189 filter = new class() Listener { | 190 filter = new class() Listener { |
190 public void handleEvent(Event event) { | 191 public void handleEvent(Event event) { |
191 if ( auto control = cast(Control)event.widget ) { | 192 if (auto control = cast(Control)event.widget ) { |
192 if (contains(control)) showControl(control); | 193 if (contains(control)) showControl(control); |
193 } | 194 } |
194 } | 195 } |
195 }; | 196 }; |
196 | 197 |