SET  ::WM_DROPFILES                    =0x0233
SET  ::WM_MOUSEHOVER                   =0x02A1
SET  ::WM_MOUSELEAVE                   =0x02A3
SET  ::WM_MOUSEENTER                   =0x1000

WIN2

_SUB WIN2,W360H440,PECMD2012功能演示:IPADDR,,#1,
    EDIT EDIT1,L28T14W158H29,0,,
    ITEM ITEM1,L32T82W60H30,查询,  CALL OnButton1,
    ITEM ITEM2,L117T81W60H30,设置, CALL OnButton2,
    ENVI &&FILED=1
    ENVI I=1
    LABE LABE3,L29T147W287H36,LABE3,,
    IPAD IP1,L29T299W258H30,192.168.1.1,CALL  OnButton1,0x200     //USERCTRL
    ITEM ITEM3,L187T83W60H30,设置位置,CALL  OnButton3,
    ITEM ITEM4,L252T83W60H30,设置范围,CALL  OnButton4,
    LABE LABE2,L30T192W285H71,LABE2,,
    ENVI @IP1.MSG=%&WM_MOUSEENTER%: TEAM CALC #&I=%&I% + 1| ENVI @LABE2=欢迎进入IP1 -- %&I%
    ENVI @IP1.MSG=0x02A1: ENVI @LABE2=欢迎惠顾IP1
    ENVI @IP1.MSG=0x02A3: ENVI @LABE2=欢迎再来IP1
_END

_SUB OnButton1  
    TEAM ENVI @IP1.VAL=?&&D1;&&D2;&&D3;&&D4|  ENVI @LABE3=  [%&D1%.%&D2%.%&D3%.%&D4%]
_END

_SUB OnButton2  
    TEAM CALC #&IP=%&IP% + 1| ENVI @IP1.VAL=%&IP%.2.3.4
_END

_SUB OnButton3  
    TEAM CALC #&FILED=%&FILED% % 4 + 1|  ENVI @IP1.VAL=#%&FILED% 
_END

_SUB OnButton4  
    TEAM ENVI @IP1.VAL=#1:1:10  ///|  ENVI @IP1.VAL=#2:2:20| ENVI @IP1.VAL=#3:3:30| ENVI @IP1.VAL=#4:4:40 
_END

