Is there any code in the base class of the button or group that changes the caption at runtime? Possibly in the init or refresh. For example, on a form I may change the caption of a button from "Add" to "Save" depending on if I am editing a new record or an existing one.
>got a class of my own making based on thread advice months ago. Its a commandgroup with most of the buttons doing what I want throughout the application.
>
>In one particular form, however, two of the buttons need to do something different.
>
>I've given them new captions and new click procedures without a 'dodefault' so the original behaviour is suppressed.
>
>What I actually get is ONE of the buttons looking and behaving exactly as required.
>
>The other refuses to wear its new caption but DOES run the new click code!!! (I've even tried forcing its caption name in the commandgroup's refresh method, without success)
>
>I've done a total recompile and I've tried saving the amended version as a class in its own right and then using that instead. No joy.
>
>Any prods in the right direction would be much appreciated
>
>Harry
Mark Johns