Added some scrollbar samples.

This commit is contained in:
evaughan%netscape.com 1999-06-16 22:20:29 +00:00
parent 3b3892972e
commit 8f55891950
5 changed files with 106 additions and 0 deletions

View File

@ -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 \

View File

@ -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

View 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>

View 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>

View 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>