📄 z35-slider-006.zul
字号:
<!-- edited with XML Spy v4.3 U (http://www.xmlspy.com) by Robert (dada) --><?page id="testZul" title=" New ZUL Title" cacheable="false" language="xul/html" zscriptLanguage="Java" contentType="text/html;charset=UTF-8"?><?init class="org.zkoss.zkplus.databind.AnnotateDataBinderInit"?><zk xmlns="http://www.zkoss.org/2005/zul" xmlns:h="http://www.w3.org/1999/xhtml" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.zkoss.org/2005/zul/zul.xsd"> All sliders should work, horizontal sliders modified by vertical sliders.<groupbox><vbox><label value="1. Operate vertical sliders so the horizontal slider is changed accordingly, however notice if you do this too quickly the onScrolling event will not fire successfully."/><label value="2. Right click on the first vertical slider button, you should see label change with values."/></vbox></groupbox> <window title="Slider connections" border="normal" width="600px"> <hbox width="100%"> <label id="myLabel"/> <vbox>Test right click for first slider. <slider id="a01" orient="vertical" curpos="0" maxpos="100" onScrolling="a21.setCurpos(event.getPos());" onRightClick='myLabel.setValue("Right Clicked OK." +self.getCurpos());'/> </vbox> <vbox> <slider id="a02" orient="vertical" curpos="0" onScrolling="a22.setCurpos(event.getPos());" maxpos="100"/> </vbox> </hbox> <vbox width="100%"> <hbox> <slider id="a21" orient="horizontal" curpos="0" maxpos="100"/> </hbox> <hbox> <slider id="a22" orient="horizontal" curpos="0" maxpos="100"/> </hbox> </vbox> </window></zk>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -