SET  ::WM_LBUTTONDOWN                  =0x0201
SET  ::WM_LBUTTONUP                    =0x0202

_SUB Page1,W289H249,P1,,,#

_END

_SUB Page2,W289H249,P2,,,#

_END

_SUB Page3,W289H249,P2,,,#
    CHEK eee,L24T40W120H18,禁用标签页1和2,CALL DOIT,0
//  当选上复选框时禁用标签页Title1和Title2。
_END
_SUB DOIT
    ENVI &Disable12=%eee.Check%
_END

_SUB WIN3,W350H333,标签禁用,
    ENVI &&Disable12=0
    TABS TABS1,L21T4W300H188,Page1:Name1:Title1:tip1;Page2:Name2:Title2:tip2;Page3:Name3:Title3,

    ITEM ITEM3,L42T271W96H30,确定,MESS 哈哈,
    ITEM ITEM4,L218T272W96H30,关闭,kILL \,
    ENVI &&Select0=%&TABS1.Select%
    ENVI @TABS1.MSG=_%WM_LBUTTONDOWN%: CALL OnLButtonDown_TABS1
_END

_SUB OnLButtonDown_TABS1
    //MESS  OnLButtonDown_TABS1  &Select0【%&Select0%】 &Disable12【%&Disable12%】    
    ENVI &&Select1=%&TABS1.Select%
    IFEX $ 1 = %&Disable12%,! TEAM ENVI &Select0=%&Select1%| EXIT _SUB
    IFEX $ %&Select0% = %&Select1%, EXIT _SUB
    ENVI @TABS1.Select=%&Select0%  //恢复
_END



CALL @WIN3

