05-20-2011 11:07 PM
Hello everyone,
So I'm trying to make a custom button field that uses images for its states (off state and on state) however, I also want to have a state where if the user is holding down on the trackpad, a different image will show (just like the default buttons do). I've tried various ways using the navigationClick and navigationUnClick methods, but I can't seem to figure it out. Does anyone have any suggestions?
05-21-2011 01:45 PM
I don't actually understand what you are asking, but have a look here, I think the buttons in here have the 'states' that you want:
05-21-2011 06:17 PM
I mean that buttons have three different looks, when theyre not in focus, when they're in focus, and when they're being pressed down. I need to know how I can implement the pressed down look.
05-22-2011 05:38 AM
I know that the pillButton given in the samples provided in the previous link implements this, I suspect other buttons do too. So have a look.
05-23-2011 02:14 PM
peter_strange wrote:
I know that the pillButton given in the samples provided in the previous link implements this, I suspect other buttons do too. So have a look.
embossed buttons do that as well, and they have such a detailed code in paint() that it might be the most useful example. Still, the link Peter provided has such a wealth of UI perks that you would be well-advised to save that code and study it every now and then.