SET  &&::WM_LBUTTONDOWN=0x0201
ENVI$ &&NL=0d 0a 

_SUB Page1,W289H249,P1,,,#
    ITEM ITEM1,L77T35W101H30,PAGE1-ITEM1,
    LABE LABE1,L83T78W97H30,LABE1,,
    EDIT EDIT1,L83T120W107H30,EDIT2,,
  GROU GR001,L226T40W70H48,
    ITEM StayHere,L230T55W60H28,仍 在,
_END


_SUB Page2,W289H249,P2,,,#
    ITEM ITEM2,L71T30W100H30,PAGE2-----ITEM2,
    LABE LABE2,L83T78W97H30,LABE1,,
    EDIT EDIT2,L83T120W107H30,EDIT2,,
  GROU GR001,L226T40W70H48,
    ITEM StayHere,L230T55W60H28,仍 在,
_END

_SUB WIN3,W350H333,标签切换,
    TABS TABS1,L21T4W300H188,Page1:Name1:Title1:tip1;Page2:Name2:Title2,

  // 请教一下，当标签在Title1和Title2之间来回切换（多次）时，以上两个控件（GR001、StayHere）仍能显示该怎么办？
  // 也就是说，不管选Title1还是Title2，控件GR001和StayHere都能显示出来。


    ITEM ITEM3,L42T271W96H30,ABC,TEAM ENVI @TABS1.Tip1=tips#####.... |  ENVI @TABS1.Title1=11111
    ITEM ITEM4,L218T272W96H30,关闭,kILL \,
    LABE LABE3,L19T205W108H24,LABE3,,
    LABE LABE4,L154T204W105H25,LABE4,,

    ENVI @TABS1.MSG=_%&WM_LBUTTONDOWN%: CALL OnLButton_TABS1
    //以上等价于ENVI @TABS1.MSG=_0x0201: CALL OnLButton_TABS1
_END

_SUB OnLButton_TABS1
     //MESS  [%&TABS1.Select%]
     FIND $2 = %&TABS1.Select%, ENVI @ITEM3.Enable=0! ENVI @ITEM3.Enable=1
_END


CALL @WIN3

