mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-14 10:43:24 +00:00
Added some scrollbar samples.
This commit is contained in:
parent
3b3892972e
commit
8f55891950
@ -37,6 +37,8 @@ EXPORT_RESOURCE_SAMPLES := \
|
||||
$(wildcard $(srcdir)/samples/cform.css) \
|
||||
$(wildcard $(srcdir)/samples/mozform.css) \
|
||||
$(wildcard $(srcdir)/samples/demoform.css) \
|
||||
$(wildcard $(srcdir)/samples/slider*.xul) \
|
||||
$(wildcard $(srcdir)/samples/scrollbar*.xul) \
|
||||
$(srcdir)/resources/find.html \
|
||||
$(srcdir)/resources/printsetup.html \
|
||||
$(srcdir)/resources/image_props.html \
|
||||
|
@ -164,6 +164,9 @@ install:: $(PROGRAM)
|
||||
$(MAKE_INSTALL) samples\treeTest1.xul $(DIST)\bin\res\samples
|
||||
$(MAKE_INSTALL) samples\xulTest.css $(DIST)\bin\res\samples
|
||||
$(MAKE_INSTALL) samples\treeTest1.css $(DIST)\bin\res\samples
|
||||
$(MAKE_INSTALL) samples\sliderTest1.xul $(DIST)\bin\res\samples
|
||||
$(MAKE_INSTALL) samples\scrollbarTest1.xul $(DIST)\bin\res\samples
|
||||
$(MAKE_INSTALL) samples\scrollbarTest2.xul $(DIST)\bin\res\samples
|
||||
$(MAKE_INSTALL) throbber\anim.gif $(DIST)\bin\res\throbber
|
||||
$(MAKE_INSTALL) throbber\anims00.gif $(DIST)\bin\res\throbber
|
||||
$(MAKE_INSTALL) throbber\anims01.gif $(DIST)\bin\res\throbber
|
||||
|
66
webshell/tests/viewer/samples/scrollbarTest1.xul
Normal file
66
webshell/tests/viewer/samples/scrollbarTest1.xul
Normal file
@ -0,0 +1,66 @@
|
||||
<?xml version="1.0"?>
|
||||
<?xml-stylesheet href="resource:/res/samples/xul.css" type="text/css"?>
|
||||
|
||||
<!DOCTYPE window>
|
||||
|
||||
<window style="height: 100%; width: 100%;"
|
||||
xmlns:html="http://www.w3.org/TR/REC-html40"
|
||||
xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
|
||||
|
||||
<box style="background-color: white; height: 100%; width: 100%">
|
||||
<!-- scroll bar -->
|
||||
<scrollbar align="vertical"/>
|
||||
|
||||
<spring style="width: 10px"/>
|
||||
|
||||
<!-- scroll bar with NeXt button order-->
|
||||
<scrollbar align="vertical">
|
||||
<slider flex="100%"/>
|
||||
<scrollbarbutton class="decrement"/>
|
||||
<scrollbarbutton class="increment"/>
|
||||
</scrollbar>
|
||||
|
||||
<spring style="width: 10px"/>
|
||||
|
||||
<!-- fixed thumb and different increments -->
|
||||
<scrollbar align="vertical" curpos="50" pageIncrement="20" increment="5" flex="100%">
|
||||
<scrollbarbutton class="decrement"/>
|
||||
<slider flex="100%">
|
||||
<thumb value="this is it" flex="0%"/>
|
||||
</slider>
|
||||
<scrollbarbutton class="increment"/>
|
||||
</scrollbar>
|
||||
|
||||
<spring style="width: 10px"/>
|
||||
|
||||
<!-- scrollbar with table in it -->
|
||||
<scrollbar align="vertical" curpos="50" pageIncrement="20" increment="5" >
|
||||
<scrollbarbutton class="decrement"/>
|
||||
<slider flex="100%">
|
||||
<html:button width="100%">
|
||||
<html:table width="100%" border="1">
|
||||
<html:tr>
|
||||
<html:td bgcolor="blue">
|
||||
cell1
|
||||
</html:td>
|
||||
<html:td bgcolor="red">
|
||||
cell2
|
||||
</html:td>
|
||||
</html:tr>
|
||||
<html:tr>
|
||||
<html:td bgcolor="red">
|
||||
cell4
|
||||
</html:td>
|
||||
<html:td bgcolor="blue">
|
||||
cell5
|
||||
</html:td>
|
||||
</html:tr>
|
||||
</html:table>
|
||||
</html:button>
|
||||
</slider>
|
||||
<scrollbarbutton class="increment"/>
|
||||
</scrollbar>
|
||||
</box>
|
||||
|
||||
</window>
|
||||
|
20
webshell/tests/viewer/samples/scrollbarTest2.xul
Normal file
20
webshell/tests/viewer/samples/scrollbarTest2.xul
Normal file
@ -0,0 +1,20 @@
|
||||
<?xml version="1.0"?>
|
||||
<?xml-stylesheet href="resource:/res/samples/xul.css" type="text/css"?>
|
||||
|
||||
<!DOCTYPE window>
|
||||
|
||||
<window style="height: 100%; width: 100%;"
|
||||
xmlns:html="http://www.w3.org/TR/REC-html40"
|
||||
xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
|
||||
<box style="width: 100%; height: 100%">
|
||||
<scrollbar align="vertical"/>
|
||||
<box align="vertical" flex="100%">
|
||||
<scrollbar align="horizontal"/>
|
||||
<spring flex="100%" style="background-color: white"/>
|
||||
<scrollbar align="horizontal"/>
|
||||
</box>
|
||||
<scrollbar align="vertical"/>
|
||||
</box>
|
||||
|
||||
</window>
|
||||
|
15
webshell/tests/viewer/samples/sliderTest1.xul
Normal file
15
webshell/tests/viewer/samples/sliderTest1.xul
Normal file
@ -0,0 +1,15 @@
|
||||
<?xml version="1.0"?>
|
||||
<?xml-stylesheet href="resource:/res/samples/xul.css" type="text/css"?>
|
||||
|
||||
<!DOCTYPE window>
|
||||
|
||||
<window style="height: 100%; width: 100%;"
|
||||
xmlns:html="http://www.w3.org/TR/REC-html40"
|
||||
xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
|
||||
|
||||
<slider align="verticals" curpos="50">
|
||||
<thumb flex="100%"/>
|
||||
</slider>
|
||||
|
||||
</window>
|
||||
|
Loading…
Reference in New Issue
Block a user