• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Canvas horizontal scrolling - Not working

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
reply
    Bookmark Topic Watch Topic
  • New Topic