Changeset 104:3926f6c95d6f
- Timestamp:
- 02/10/08 15:46:13
(7 months ago)
- Author:
- Frank Benoit <benoit@tionex.de>
- branch:
- default
- Message:
Fix: Scrollbar events
-
Files:
-
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
| r93 |
r104 |
|
| 3 | 3 | [dwt] |
|---|
| 4 | 4 | type=library |
|---|
| | 5 | debugflags+=-g -gc -debug |
|---|
| 5 | 6 | |
|---|
| 6 | 7 | |
|---|
| r82 |
r104 |
|
| 27 | 27 | |
|---|
| 28 | 28 | import dwt.dwthelper.utils; |
|---|
| | 29 | import tango.util.log.Trace; |
|---|
| | 30 | void trc( long line ){ |
|---|
| | 31 | //Trace.formatln( "ScrollBar {}", line ); |
|---|
| | 32 | } |
|---|
| 29 | 33 | |
|---|
| 30 | 34 | /** |
|---|
| … | … | |
| 896 | 900 | |
|---|
| 897 | 901 | LRESULT wmScrollChild (int wParam, int lParam) { |
|---|
| | 902 | trc(__LINE__); |
|---|
| 898 | 903 | |
|---|
| 899 | 904 | /* Do nothing when scrolling is ending */ |
|---|
| r82 |
r104 |
|
| 24 | 24 | |
|---|
| 25 | 25 | import dwt.dwthelper.utils; |
|---|
| | 26 | import tango.util.log.Trace; |
|---|
| | 27 | void trc( long line ){ |
|---|
| | 28 | //Trace.formatln( "Scrollable {}", line ); |
|---|
| | 29 | } |
|---|
| 26 | 30 | |
|---|
| 27 | 31 | /** |
|---|
| … | … | |
| 256 | 260 | |
|---|
| 257 | 261 | override LRESULT WM_HSCROLL (int wParam, int lParam) { |
|---|
| | 262 | trc(__LINE__); |
|---|
| 258 | 263 | LRESULT result = super.WM_HSCROLL (wParam, lParam); |
|---|
| 259 | | if (result !is 0) return result; |
|---|
| | 264 | if (result !is LRESULT.NULL) return result; |
|---|
| 260 | 265 | |
|---|
| 261 | 266 | /* |
|---|
| … | … | |
| 273 | 278 | |
|---|
| 274 | 279 | override LRESULT WM_MOUSEWHEEL (int wParam, int lParam) { |
|---|
| | 280 | trc(__LINE__); |
|---|
| 275 | 281 | LRESULT result = super.WM_MOUSEWHEEL (wParam, lParam); |
|---|
| 276 | | if (result !is 0) return result; |
|---|
| | 282 | if (result !is LRESULT.NULL) return result; |
|---|
| 277 | 283 | |
|---|
| 278 | 284 | /* |
|---|
| … | … | |
| 342 | 348 | |
|---|
| 343 | 349 | override LRESULT WM_SIZE (int wParam, int lParam) { |
|---|
| | 350 | trc(__LINE__); |
|---|
| 344 | 351 | LRESULT code = callWindowProc (handle, OS.WM_SIZE, wParam, lParam); |
|---|
| | 352 | assert( code !is LRESULT.NULL ); |
|---|
| 345 | 353 | super.WM_SIZE (wParam, lParam); |
|---|
| 346 | 354 | // widget may be disposed at this point |
|---|
| … | … | |
| 350 | 358 | |
|---|
| 351 | 359 | override LRESULT WM_VSCROLL (int wParam, int lParam) { |
|---|
| | 360 | trc(__LINE__); |
|---|
| 352 | 361 | LRESULT result = super.WM_VSCROLL (wParam, lParam); |
|---|
| 353 | | if (result !is 0) return result; |
|---|
| | 362 | if (result !is LRESULT.NULL) return result; |
|---|
| 354 | 363 | /* |
|---|
| 355 | 364 | * Bug on WinCE. lParam should be NULL when the message is not sent |
|---|
| … | … | |
| 366 | 375 | |
|---|
| 367 | 376 | LRESULT wmScroll (ScrollBar bar, bool update, HWND hwnd, int msg, int wParam, int lParam) { |
|---|
| | 377 | trc(__LINE__); |
|---|
| 368 | 378 | LRESULT result = LRESULT.NULL; |
|---|
| 369 | 379 | if (update) { |
|---|
| r82 |
r104 |
|
| 31 | 31 | import tango.core.Thread; |
|---|
| 32 | 32 | import dwt.dwthelper.utils; |
|---|
| | 33 | import tango.util.log.Trace; |
|---|
| | 34 | void trc( long line ){ |
|---|
| | 35 | //Trace.formatln( "Widget {}", line ); |
|---|
| | 36 | } |
|---|
| 33 | 37 | |
|---|
| 34 | 38 | /** |
|---|