discuss-gnustep
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Renaissance - how to use Grids?


From: Nicola Pero
Subject: Re: Renaissance - how to use Grids?
Date: Tue, 29 Jun 2010 10:30:24 +0100

Hi Paul

check the Renaissance documentation for how to use grids - you need Renaissance from subversion (trunk) to get the actual
implementation, and in there there is also the documentation. :-)

So, once you have the version from trunk, you can browse the documentation - start from

 renaissance/Documentation/Pregenerated/index.html

look at the tag reference, there is documentation for <grid> and related tags.

I had a quick look at your example, and creating the grid layout was the very easy bit :-) ... the part that I was a bit confused about is whether the 'Set byte value' were buttons or not, and whether the colored spaces were form fields (but then, wouldn't then submit/action
button naturally follow the input field, instead of coming before it ?).

Anyway, here's an edited version showing how you can do the layout using the grid -- you can then adapt the buttons/input fields/controls
to be and behave however you need/want them --

<gsmarkup>
  <objects>
<window title="LPT Interface" backgroundColor="E0E064" closable="yes" >
      <vbox>
        <vspace />
        <label font="Big" textColor="FF0000">LPT Interface for
          Educational Purposes - Terminal Fórum</label>
        <vspace />
        <hbox>
          <hspace />
          <box title="LPT Data Port"  valign="top">
            <grid>
              <gridRow>
                <gridEmptyCell />
                <label font="big" textColor="006000">Byte Value</label>
              </gridRow>
              <gridRow>
                <button title="Set byte value" />
                <textField />
              </gridRow>
              <gridRow>
<label font="big" textColor="006000">(bits 01234567)</ label>
                <label font="big" textColor="006000">Bits Value</label>
              </gridRow>
              <gridRow>
                <button title="Set bit 0" />
                <textField />
              </gridRow>
              <gridRow>
                <button title="Set bit 1" />
                <textField />
              </gridRow>
              <gridRow>
                <button title="Set bit 2" />
                <textField />
              </gridRow>
              <gridRow>
                <button title="Set bit 3" />
                <textField />
              </gridRow>
              <gridRow>
                <button title="Set bit 4" />
                <textField />
              </gridRow>
              <gridRow>
                <button title="Set bit 5" />
                <textField />
              </gridRow>
              <gridRow>
                <button title="Set bit 6" />
                <textField />
              </gridRow>
              <gridRow>
                <button title="Set bit 7" />
                <textField />
              </gridRow>
            </grid>
          </box>
          <hspace />
          <box title="LPT Control Port" valign="top">
            <vbox type="proportional">
              <label font="big" textColor="600060">Byte Value</label>
            </vbox>
          </box>
          <hspace />
          <box title="LPT Status Port"  valign="top">
            <vbox type="proportional">
              <label font="big" textColor="000060">Byte Value</label>
            </vbox>
          </box>
          <hspace />
        </hbox>
      </vbox>
    </window>
  </objects>
</gsmarkup>

Thanks


reply via email to

[Prev in Thread] Current Thread [Next in Thread]