I am trying to make a button component modal so that when I click it, the application changes to a different state and the button stays in the button "down" state. Then if I click a different button, the application state changes again, the first button changes to the "up" state and the second button changes to the "down" state. Basically, I want radio button actions, but on a styled button.
Is there a way to do this in Catalyst or do I have to handle this in the FB code?
Here's a way to do it in Catalyst, assuming you have N states and N corresponding buttons:
1. make each of your buttons a ToggleButton
2. for each ToggleButton
a. give it the action "Go To State <the corresponding state>"
b. go to the corresponding state, and use the Properties Panel to set the ToggleButton's 'selected' property. It should be not selected in anyother states.
The atached example file illustrates this. Let me know if this is what you were looking for...
Mark Shepherd
Flash Catalyst Engineering
I had some difficulty getting Catalyst to allow me to set the states of toggle buttons added to my project. So, I decided to create my own custom toggle button to give me the ability to fully style it. Here's the process I followed:
North America
Europe, Middle East and Africa
Asia Pacific