Skip to main content
Inspiring
September 29, 2016
Answered

Is there a way to change the same state across multiple buttons?

  • September 29, 2016
  • 2 replies
  • 1087 views

If I've already created, say, 100 identical buttons, and I want to change the "down" state of each to a new color other than black. is there a way to do this quickly? I'm using Captivate 9.

    This topic has been closed for replies.
    Correct answer Lilybiri

    Hi arashmaz,

    I tried that.  And if I change the style of the "normal" state in button 1, I can indeed apply this change (for example a new color) to all the buttons with style "Bob".

    But if I add a new state to button 1 - a state I call "test" - then there's no option to "save changes to style" it seems since I haven't so much changed the style as I've just added a new state. 


    Because you talked about 'buttons' I supposed that you were pointing to the InBuilt States: Normal, Rollover and Down. The situation with styles is a bit confusing IMO concerning states. You cannot define states in the Object Style Manager, as was the case for buttons in Captivate 8. Since Captivate 9 you have to define states in the Object State panel, for custom states as well as for InBuilt states. Part of the InBuilt states are really embedded in the style: that is the case for the whole state for Image buttons, for the Fill/Stroke for the other types and for shape buttons. The labels on buttons (text, system and shape) are not part of the style. The exception are the image buttons because you need to put the text in the images. If you are adding objects in InBuilt states, they wil not be part of the style.  Same for Custom states: they are not part of the style. I have issues with this confusing setup. It would be much easier, I believe, if everything that was saved in an object style could be edited and changed IN the Object Style Manager.

    The 'three lines' menu button, also called the hamburger or the hotdog button, has some possibilities to save changes to an existing style, to create a new style, to apply a style to objects with another default style (provided you didn't override it, which causes that + sign to appear).

    To conclude this probably confusing answer: the work flow I suggested with object styles, will work only for those features that are saved in an object style (there is no real explanation in the Help AFAIK). Now I understand from your last answer (sorry) that you are talking about a state that is not InBuilt, but custom. In that case, you cannot change that state for all buttons at once. Only way is to duplicate buttons. My apologies, maybe I have to write a blog post about Object styles, and its manager. I have heard several trainers proclaiming that they never use the OSM.

    2 replies

    Known Participant
    October 22, 2016

    Are you using Captivate 9?

    I tried this in Captivate 8 and it works still. Using the example above I changed the roll over state of one smart shape/button to have a different coloured stroke... save changes to existing style and Voila! All the buttons now had a roll over state with the same stroke.

    I know in Captivate 9 you can create different states... which I've not had any experience with yet. So can't really be of any further help...

    Lilybiri
    Legend
    September 29, 2016

    Did you use a style for the buttons? If yes, change the style. Are you talking about normal or shape buttons? Which version are you using? That last question is important because states for interactive objects are differently treated in CP8 and CP9.

    Inspiring
    September 29, 2016

    Hi Lilybiri,

    I'm using C9.  This is a shape button that I drew. So when I click style it says "custom".

    Lilybiri
    Legend
    September 30, 2016

    You are confusing the 'form' of the shape button, which is Custom in your case (with a freeform shape) with the Object Style of that shape button. Object style (part of the theme)  has colours for Fill, Stroke, stroke width and the Character properties for all the InBuilt states of that shape button. That style can be applied to a

    shape button of any form, the default forms as well as freeform shapes. If you did override the style individually, a +sign appears before the style name. In that case (every designer will tell this is bad practice) it is not so easy to have an edited style, like changing the color for a state, propagating to all shape buttons using that style. That was my original question: which style did you use for the shape button and did you override it?