I found a much simpeler solution, by predefining images for the normal state
and the highlighted state for each button. If you click a button the images
are automatically switched, creating an animated effect:

/btnReturn.SetImage(UIImage.FromFile("images/btnStandard.jpg"),
UIControlState.Normal);
btnReturn.SetImage(UIImage.FromFile("images/btnPushed.jpg"),
UIControlState.Highlighted);/

This is good enough for now, i just create a bunch of jpg's for each
state/button :) next challenge... how to put 5 buttons for
up/down/left/right/enter under a circular sort of navigation controller for
moving the cursor up/down/left/right etc you might find on a remote...

--
View this message in context: 
http://monotouch.2284126.n4.nabble.com/How-to-create-buttons-that-can-be-pushed-tp3860429p3862878.html
Sent from the MonoTouch mailing list archive at Nabble.com.
_______________________________________________
MonoTouch mailing list
[email protected]
http://lists.ximian.com/mailman/listinfo/monotouch

Reply via email to