change the caption of a button

Post Reply
User avatar
Silvio.Falconi
Posts: 7164
Joined: Thu Oct 18, 2012 7:17 pm
Been thanked: 2 times

change the caption of a button

Post by Silvio.Falconi »

At the end of a procedure I try to change the caption of a button

the button are normal button class

oBtnCan:cCaption:="Chiudi"
oBtnCan:refresh()
oBtnCan:enable()

but not work
any solution please ?
Since from 1991/1992 ( fw for clipper Rel. 14.4 - Momos)
I use : FiveWin for Harbour March-April 2024 - Harbour 3.2.0dev (harbour_bcc770_32_20240309) - Bcc7.70 - xMate ver. 1.15.3 - PellesC - mail: silvio[dot]falconi[at]gmail[dot]com
FiveWiDi
Posts: 1245
Joined: Mon Oct 10, 2005 2:38 pm
Has thanked: 4 times
Been thanked: 5 times

Re: change the caption of a button

Post by FiveWiDi »

Prueba esto:

oModi:setText( "Modificar" )

A mi en MDICHILD me funciona.
Un Saludo
Carlos G.

FiveWin 24.02 + Harbour 3.2.0dev (r2403071241), BCC 7.7 Windows 10
Post Reply