by xProgrammer » Thu Jul 12, 2007 12:16 am
Thanks for the suggestion Ari - but the problem was deeper. Although cCaption contains the text that appears on the button, changing cCaption doesn't filter up to the parent classes - it just changes the value in the button object. After a fair bit of searching source code and experimentation I found that oMyButton:SetText("New Caption") works - which in hindsight is logical but I didn't see it because it is inherited back from the Window class and I was just looking at button class and control class.
xProgrammer