FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin para Harbour/xHarbour Cambiar nombre a bot贸n
Posts: 652
Joined: Wed Oct 19, 2005 12:03 PM
Cambiar nombre a bot贸n
Posted: Mon Aug 25, 2008 02:12 PM

Tengo este bot贸n en un folder

REDEFINE GET oGet[3] VAR nDifiere picture "@e 999,999.99" id 104 of oFld:adialogs[2] UPDATE

REDEFINE BUTTON nBut[8] ID 110 OF oFld:adialogs[2] ACTION HACERNOTA() UPDATE

REDEFINE SAY oGet[4] VAR cHago id 200 of oFld:adialogs[2] UPDATE COLOR RGB(130,0,240) FONT oFont

ACTIVATE DIALOG odlg center

Y en esta rutina le digo que seg煤n esta condici贸n cambie

//
if nDifiere > 0
nBut[8]:cCaption := "N. Cr茅dito"
chago := "N. Cr茅dito"
elseif nDifiere < 0
nBut[8]:cCaption := "N. D茅bito"
chago := "N. D茅bito"
else
chago := ""
endif
nBut[8]:refresh()
oGet[4]:refresh()
d贸nde nBut est谩 declarado com est谩tico, al igual que oGet pero el nBut no me lo actualiza. Bien oGet que es un cText me lo refresca correctamente (lo tuve que poner al fallar lo otro)

A qu茅 se debe esto?

Gracias

Luis

Posts: 44162
Joined: Thu Oct 06, 2005 05:47 PM
Cambiar nombre a bot贸n
Posted: Mon Aug 25, 2008 02:34 PM

Luis,

Prueba a hacer esto para asegurarte que es el bot贸n correcto:

MsgInfo( nBut[8]:GetText() )

y prueba a cambiarle el texto haciendo:

nBut[8]:SetText( "nuevo texto" )

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 652
Joined: Wed Oct 19, 2005 12:03 PM
Cambiar nombre a bot贸n
Posted: Tue Aug 26, 2008 10:56 AM

Gracias Antonio ahora funciono perfecto

Luis

Continue the discussion