• Post Reply Bookmark Topic Watch Topic
  • New Topic

SWT canvas look like button  RSS feed

 
viswa enator
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

HI all ,
i am a newbee for SWT.
can anybody help me,how to make canvas look and feel like button.
if i click canvas i should feel the same way as i click button i.e(PUSH button).
i am using canvas because it is a tristate thing..

thanks
viswa.
 
Lance Colton
Ranch Hand
Posts: 64
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I would add an image to the canvas with a transparent gradient, when mouse over lighten the image, on click move text to the right, or darken the edge or something.

SWT Image Manipulation
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!