• Post Reply Bookmark Topic Watch Topic
  • New Topic

Scrolling option for canvas

 
mic ram
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi

How can i scroll the screen in canvas
using up and down arrows of device
as it is done with form or list

regards
Rameshwari
 
Arkadev Ghoshal
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
use the keypressed( keyCode ) method from canvas to detect up and down keys.
also, in order to show that a menu option is selected, draw a different colour band behind it b4 it is actually drawn on screen.
 
Happiness is not a goal ... it's a by-product of a life well lived - Eleanor Roosevelt. Tiny ad:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!