Thanks Tamar, I don't see where SkipFor came from, but an expression in it makes more sense.
Irwin said:
What I'm doing is hiding the original buttons
Well, if you hide controls, they automatically are disabled. Setting their Enabled property has no influence whatsoever.
As far as I understand you want all previous code acting on the old buttons to stay as is and let that be reflected to your new buttons. One part of the problem is you're using containers instead of buttons. They don't have the overall same properties and behaviour as buttons.
Your best friend will be BINDEVENT to bind to the events of code acting on the old buttons enabled or other properties, but there is no general binding to all properties. Defining a THIS_Access methods in the old buttons could help, but it's hard to explain in just a few words in a post. Maybe read up on it here and come back with questions:
The nice thing is, you know the accessed member and have its name as a parameter. In the simplest case, you can redirect all access to old button properties by returning THISFORM.yournewbutton1,2,3, instead of THIS within the old button THIS_ACCESS method. It's hardly doable, if the buttons are the native base button class and have no class, then a first step would be exchanging the buttons with button classes, to be able to ad a THIS_ACCESS method, it does not exist by default.
And to let your new button click cause the old button click code, you need a reverse binding.
It really is simpler to keep it at buttons and do whatever cosmetic changes via the button.picture property and not new containers.
Bye, Olaf.