Stop setting the squawk code in the cockpit automatically

I have done what you have said. In the B777-300er once you have acknowledge the code to ATC and I wait, the transponder does not change as you have indicated.