In a good designed interface that button would not be enabled.
I want that button bar to return to inactive state.
You can use conditional formatting on individual buttons (in a button bar).
The conditional formatting will override any states such as Hover / Active for that particular button.
I Have a similar problem, How can I do a conditional formatting to a button bar if its not the correct layout.
Can you please post an example.
thoong, The design of the interface is not the problem. As you mention, the problem is the button bar.
The idea is that the button does not disappear,... only que not change the color (if the script associated with the segment is not executed.)
Well.. first off, as hbrendel mentioned, the button itself should be disabled, as in not perform an action if the user does not have the correct privileges.
If [ Get (AccountPrivilegeSetName) = "RestrictedPrivilegeName" ]
Exit script 
Go to layout ["A restricted layout"]
Then, apply conditional formatting to the button using the same formula:
Get (AccountPrivilegeSetName) = "RestrictedPrivilegeName"
And apply default text / background colours.
You could of course, just hide the individual button using the same formula as you would with conditional formatting.
But still, it's worth making sure the script it calls does not go to the layout leaving the user potentially stranded on a restricted view, if the script is called by other means.
I wonder Lola if you are wanting the button to return to the state prior to clicking rather than having an access issue?
Yes..thats what im looking..but it should base on privilege. Thanks.