change the caption of a button

change the caption of a button

Postby Silvio.Falconi » Thu Jun 09, 2022 10:01 am

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 November 2023 - January 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
User avatar
Silvio.Falconi
 
Posts: 7021
Joined: Thu Oct 18, 2012 7:17 pm

Re: change the caption of a button

Postby FiveWiDi » Thu Jun 09, 2022 1:20 pm

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
FiveWiDi
 
Posts: 1161
Joined: Mon Oct 10, 2005 2:38 pm


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: dutch, Google [Bot], Marcelo Via Giglio and 32 guests