1022828096 发表于 2024-9-13 22:32:56

容器刷新问题

怎么解决容器跳的问题啊,试了一些没用,点击下面的第一次总会跳到第一个,然后划下去在点就不会跳了。下面是部分脚本


<ListView|children={1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20}|x=165.0|y=155.0|width=210|height=346|reload=0|loadDelay=0|margin=2>
<Button|id=1|x=50.0|y=70.0|color=7|size=18|nimg=public/btn1.png|text=|link=@选择&1>
<Button|id=6|x=50.0|y=120.0|color=7|size=18|nimg=public/btn1.png|text=|link=@选择&2>
<Button|id=10|x=50.0|y=120.0|color=7|size=18|nimg=public/btn1.png|text=|link=@选择&3>
<Button|id=14||x=50.0|y=120.0|color=7|size=18|nimg=public/btn1.png|text=|link=@选择&4>
<Button|id=18|x=50.0|y=120.0|color=7|size=18|nimg=public/btn1.png|text=|link=@选择&5>
<Button|id=22|x=50.0|y=120.0|color=7|size=18|nimg=public/btn1.png|text=|link=@选择&6>
<Button|id=26|x=50.0|y=120.0|color=7|size=18|nimg=public/btn1.png|text=|link=@选择&7>
<Button|id=30|x=50.0|y=120.0|color=7|size=18|nimg=public/btn1.png|text=|link=@选择&8>
<Button|id=34|x=50.0|y=120.0|color=7|size=18|nimg=public/btn1.png|text=|link=@选择&9>
<Button|id=38|x=50.0|y=120.0|color=7|size=18|nimg=public/btn1.png|text=|link=@选择&10>
<Button|id=42|x=50.0|y=120.0|color=7|size=18|nimg=public/btn1.png|text=|link=@选择&11>
<Button|id=46|x=50.0|y=120.0|color=7|size=18|nimg=public/btn1.png|text=|link=@选择&12>

#IF
EQUAL <$str(N$锁定位置1)> 1
#say
<Button|id=2|x=50.0|y=150.0|color=215|size=18|nimg=public/1900000668.png|width=128|height=40|text=|link=@点击&1&1>
<Button|id=3|x=50.0|y=170.0|color=215|size=18|nimg=public/1900000668.png|width=128|height=40|text=|link=@点击&1&2>
<Button|id=4|x=50.0|y=170.0|color=215|size=18|nimg=public/1900000668.png|width=128|height=40|text=|link=@点击&1&3>
<Button|id=5|x=50.0|y=170.0|color=215|size=18|nimg=public/1900000668.png|width=128|height=40|text=|link=@点击&1&4>


#IF
EQUAL <$str(N$锁定位置2)> 1
#say
<Button|id=7|x=50.0|y=150.0|color=215|size=18|nimg=public/1900000668.png|width=128|height=40|text=|link=@点击&1&1>
<Button|id=8|x=50.0|y=170.0|color=215|size=18|nimg=public/1900000668.png|width=128|height=40|text=|link=@点击&1&2>
<Button|id=9|x=50.0|y=170.0|color=215|size=18|nimg=public/1900000668.png|width=128|height=40|text=|link=@点击&1&3>
<Button|id=10|x=50.0|y=170.0|color=215|size=18|nimg=public/1900000668.png|width=128|height=40|text=|link=@点击&1&4>


ZSZSZSS 发表于 2024-9-13 23:08:47

加个子容器,下面这种!
<ListView|children={1,2,3}|x=165.0|y=155.0|width=210|height=346|reload=0|loadDelay=0|margin=2>
<Button|id=1|children={1a,1b,1c}|x=50.0|y=70.0|color=7|size=18|nimg=public/btn1.png|text=|link=@选择&1>
<Button|id=1a|x=50.0|y=150.0|color=215|size=18|nimg=public/1900000668.png|width=128|height=40|text=|link=@点击&1&1>
<Button|id=1b|x=50.0|y=170.0|color=215|size=18|nimg=public/1900000668.png|width=128|height=40|text=|link=@点击&1&2>
<Button|id=1c|x=50.0|y=170.0|color=215|size=18|nimg=public/1900000668.png|width=128|height=40|text=|link=@点击&1&3>
<Button|id=2|children={2a,2b,2c}|x=50.0|y=70.0|color=7|size=18|nimg=public/btn1.png|text=|link=@选择&2>
<Button|id=2a|x=50.0|y=150.0|color=215|size=18|nimg=public/1900000668.png|width=128|height=40|text=|link=@点击&2&1>
<Button|id=2b|x=50.0|y=170.0|color=215|size=18|nimg=public/1900000668.png|width=128|height=40|text=|link=@点击&2&2>
<Button|id=2c|x=50.0|y=170.0|color=215|size=18|nimg=public/1900000668.png|width=128|height=40|text=|link=@点击&2&3>

996技术-wang 发表于 2024-9-14 11:53:57

感谢楼上回复
页: [1]
查看完整版本: 容器刷新问题