FoxPro/Visual FoxPro - consulta sobre OPTIONGROUP

 
Vista:

consulta sobre OPTIONGROUP

Publicado por DEYSI (24 intervenciones) el 28/09/2008 02:40:20
HOLA AMIGOS.. TENGO UNA CONSULTA..
EN UN CONTROL OPTIONGROUP, COMO HAGO PARA QUE CUANDO SE ESCOJA UNA OPCION, EL TEXTO DE ESTA, CAMBIE DE COLOR..¿?
HE PROBADO CON VARIAS PROPIEDADES.. PERO NINGUNA ME DA RESULTADO...
GRACIAS POR LA AYUDA..
Valora esta pregunta
Me gusta: Está pregunta es útil y esta claraNo me gusta: Está pregunta no esta clara o no es útil
0
Responder

RE:consulta sobre OPTIONGROUP

Publicado por enrique (1041 intervenciones) el 29/09/2008 04:36:49
en el InteractiveChange del OptionGroup

DO case
CASE this.Value=1
this.option1.ForeColor=RGB(126,0,0)
this.option2.ForeColor=RGB(0,0,0)
CASE this.Value=2
this.option1.ForeColor=RGB(0,0,0)
this.option2.ForeColor=RGB(126,0,0)
endcase
Valora esta respuesta
Me gusta: Está respuesta es útil y esta claraNo me gusta: Está respuesta no esta clara o no es útil
0
Comentar

RE:consulta sobre OPTIONGROUP

Publicado por DEYSI (24 intervenciones) el 30/09/2008 15:49:33
GRACIAS..
SI ME FUNCIONO... PERO ACTIVANDO UNA DE LAS OPCIONES CON EL 'CLICK' DEL MOUSE ....PERO AHORA TENGO UN DETALLE MAS..

COMO HAGO PARA QUE FUNCIONE DE LA MISMA MANERA SI ESTANDO EN LA OPCIONGROUP SE UTILIZA EL <TAB> PARA PASAR, OSEA TOMARA EL VALOR POR DEFECTO, Y SE PRESIONA 'TAB' SI UTILIZAR EL MOUSE...

NO HAY LA PROPIEDAD 'LOSTFOCUS' NI 'KEYPRESS'

GRACIAS....

DESY
Valora esta respuesta
Me gusta: Está respuesta es útil y esta claraNo me gusta: Está respuesta no esta clara o no es útil
0
Comentar

RE:consulta sobre OPTIONGROUP

Publicado por enrique (1041 intervenciones) el 29/09/2008 20:27:36
otra opcion, no importa la cantidad de buttons

- en el Init del Optionbuttons

this.interactivechange

- en el InteractiveChange del Optionbuttons

for i=1 to thisform.Optiongroup1.buttoncount
if thisform.optiongroup1.value = i
thisform.OptionGroup1.Buttons(i).fontitalic = .t.
else
thisform.OptionGroup1.Buttons(i).fontitalic = .F.
endif
endfor
Valora esta respuesta
Me gusta: Está respuesta es útil y esta claraNo me gusta: Está respuesta no esta clara o no es útil
0
Comentar

RE:consulta sobre OPTIONGROUP

Publicado por DESYSI (24 intervenciones) el 30/09/2008 22:40:41
GRACIAS POR EL DATO..
Y YA ENCONTRE LA SOLUCION TAMBIEN PARA EL OTRO DETALLE

SALUDOS..
Valora esta respuesta
Me gusta: Está respuesta es útil y esta claraNo me gusta: Está respuesta no esta clara o no es útil
0
Comentar