utilizando la clase TSBUTTON de Manuel Mercado, cambio el color de los button en tiempo de ejecuci贸n, pero no consigo cambiar el color del button cuando paso el rat贸n por encima de ellos.
El codigo es:
Define Dialog...
...
聽 REDEFINE SBUTTON odia[ 7] ID 4007 OF ocalen Font ofont NOBORDER ROUNDRECT
聽 REDEFINE SBUTTON odia[ 8] ID 4008 OF ocalen Font ofont NOBORDER ROUNDRECT
聽 REDEFINE SBUTTON odia[ 9] ID 4009 OF ocalen Font ofont NOBORDER ROUNDRECT
聽 REDEFINE SBUTTON odia[10] ID 4010 OF ocalen Font ofont NOBORDER ROUNDRECT
...
Activate dialog...Y en tiempo de ejecuci贸n cambio los colores de esta forma:
聽 聽 odia[x]:Setcolor(CLR_HGRAY, iif( odia[x]:lMouseOver, rgb(240,205,240),rgb(220,145,220)))...Al pasar el rat贸n por encima del bott贸n este NO cambia. 驴 Que hago mal ?
...Sin embargo si establezco el color en el REDEFINE funciona perfectamente. As铆:
REDEFINE SBUTTON odia[ 7] ID 4007 OF ocalen Font ofont NOBORDER ROUNDRECT COLORS CLR_HGRAY ,{ |odia| If( odia:lMouseOver, rgb(240,205,240),rgb(220,145,220)) }Mil gracias.
LORENZO