All Downloads are FREE. Search and download functionalities are using the official Maven repository.

defaultcontrolsxml.11-scrollpanel.xml Maven / Gradle / Ivy

Go to download

Lots of Nifty example code! You can find the source for nearly all demos/tutorials in here.

There is a newer version: 1.4.3
Show newest version
<?xml version="1.0" encoding="UTF-8"?>
<nifty xmlns="http://nifty-gui.lessvoid.com/nifty-gui"
        >
  <useStyles filename="nifty-default-styles.xml" />
  <useControls filename="nifty-default-controls.xml" />

  <screen id="start">
    <layer childLayout="center">
      <panel childLayout="horizontal" align="center" valign="center" width="50%" height="50%" backgroundColor="#55a5" padding="10">
        <control id="scrollbarPanelId" name="scrollPanel" horizontal="true" height="100%" width="100%">
          <!-- first child is the content, the area to scroll around -->
          <panel id="myScrollStuff" width="1000px" height="1000px" childLayout="vertical">
            <effect>
              <onActive name="gradient" direction="vertical">
                <value offset="0%" color="#ffff" />
                <value offset="100%" color="#f00f" />
              </onActive>
              <onActive name="gradient" direction="horizontal">
                <value offset="0%" color="#ffff" />
                <value offset="100%" color="#0f0f" />
              </onActive>
            </effect>
          </panel>
        </control>
      </panel>
    </layer>
  </screen>
</nifty>




© 2015 - 2025 Weber Informatics LLC | Privacy Policy