¿Es posible saber el numero de Página que contiene un TAB ..?
Agradecido de antemano.., vamos con una cervecita bien fresquita.
Moderator: Rathinagiri
Code: Select all
win1.Tab1.ItemCountCode: Select all
STATIC PROC f_change(ParentForm, ControlName)
LOCAL n_value := form_1.tab_1.value
LOCAL ControlHandle
LOCAL nTab:=0
LOCAL Images, NoTrans := .T.
LOCAL nlen
LOCAL aImagen:={}
IF n_value=4
Form_1.Grid_1.Setfocus
ENDIF
DOMETHOD(ParentForm, Controlname, "SETFOCUS")
i := GetControlIndex ( Controlname , ParentForm )
nLen:=len(_hmg_sysdata[33][i]) // --> Aqui tengo el numero de paginas activas
nTab := GetProperty(ParentForm ,ControlName, "Value")
FOR n=1 to nLen
AADD(aImagen,"check.bmp")
NEXT
aImagen[nTab]:="exit.bmp"
ControlHandle := GetControlHandle( ControlName, ParentForm )
// not sure need to Destroy "old" Imagelist before
IMAGELIST_DESTROY(ControlHandle)
// will create own Imagelist and set TCM_SETIMAGELIST
ADDTABBITMAP( ControlHandle, aImagen, NoTrans )
RETURN