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

messagebox.messagebox.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" controller="de.lessvoid.nifty.examples.messagebox.MessageBoxStartScreen">
    <layer id="layer" childLayout="vertical">
      <panel width="100%" height="50%" childLayout="center">
        <control id="messagebox" name="nifty-messagebox" messageBoxType="ERROR"
                 message="Hello! This is a message box! Fear it!" buttonCaptions="Yes,No,Maybe,Go away" />
      </panel>
      <panel width="100%" height="50" childLayout="horizontal">
        <panel childLayout="center">
          <control id="setInfo" name="button" label="As Information" align="center" valign="center">
            <interact onClick="changeMessageBoxType(INFO)" />
          </control>
        </panel>
        <panel childLayout="center">
          <control id="setWarn" name="button" label="As Warning" align="center" valign="center">
            <interact onClick="changeMessageBoxType(WARNING)" />
          </control>
        </panel>
        <panel childLayout="center">
          <control id="setError" name="button" label="As Error" align="center" valign="center">
            <interact onClick="changeMessageBoxType(ERROR)" />
          </control>
        </panel>
      </panel>
    </layer>
  </screen>
</nifty>




© 2015 - 2025 Weber Informatics LLC | Privacy Policy