Jose Luis,
Funciona, lo que ocurre es que si se muestra un mensaje, entonces no se completa la secuencia de cambio de opci贸n. Este ejemplo funciona, pero te muestra la opci贸n anterior, no la nueva, por la misma raz贸n.
#include "FWCE.ch"
function Main()
local oWnd
DEFINE WINDOW oWnd TITLE "TabControl"
@ 2, 2 TABCONTROL oTabs PROMPTS { "One", "Two", "Three" } ;
OPTION 2 ACTION oWnd:Say( 10, 4, oTabs:nOption ) ;
SIZE 205, 80 OF oWnd
#define GWL_STYLE (-16)
#define TCS_BUTTONS 0x0100
SetWindowLong( oTabs:hWnd, GWL_STYLE,;
nOr( GetWindowLong( oTabs:hWnd, GWL_STYLE ), TCS_BUTTONS ) )
ACTIVATE WINDOW oWnd ;
ON CLICK MsgInfo( "Click!" )
return nil
La soluci贸n es modificar la clase para que se autoenvie un mensaje con PostMessage().