Win a copy of The Way of the Web Tester: A Beginner's Guide to Automating Tests this week in the Testing forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Canvas horizontal scrolling - Not working

chandrayya kumarswamimath
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I wrote the below program to scroll the part of the canvas.

But facing the below issues:

In horizontal scrollbar listener am not able to detect the events on scrollbar. Nothing is printing here.
When I drag the scrollbar thumb or click on the area between thumb and LEFT or RIGHT arrow button or LEFT ARROW button , the code is not working(Not scrolling properly).
Can anyone point out the bug in this code? I am not understood how scrolling is happening. Can Somebody please provide me the links, tutorials/screen cast about SWT,Canvas and scrolling.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic