Grid control

14 views
Skip to first unread message

Sy

unread,
Sep 24, 2014, 2:41:02 AM9/24/14
to svg...@googlegroups.com
I've added support for a grid layout to the XML which aids in creating blocks of controls rapidlly which can be easily aligned and sized.

Example:
[code]
<grid id='g1'
      x='880' y='300'
      bdr_hl_color="#ffffff"
      bdr_sh_color="#333333"
      bdr_style='Raised'
      bdr_stroke='1'
      bdr_width='2'
      x_min_size='48'
      y_min_size='48'>
  <row>
    <cell anchor='left-top'>
      <panel id='pnl4'
             bg_color='#7722ff'
             width='200'
             height='200'
             styles='fillOpacity:0.5;'
             bdr_hl_color="#3333ff"
             bdr_sh_color="#000066"
             bdr_style='Eched'
             bdr_stroke='2'
             bdr_width='8' />
    </cell>
    <cell anchor='right-top' colspan='2' rowspan='2'>
      <button height='32'
              type='Momentary'
              align='center-center'
              id='btn2'
              default='true'
              fg_color='#000000'
              bg_color='#FFCCCC'
              update='upd:ref,tag:ref'
              bdr_style='Eched'
              bdr_hl_color='#FFFFFF'
              bdr_sh_color='#333333'
              bdr_stroke='1'
              bdr_width='8'
              text='Boo!'
              rotate='0'
              font_size='18'
              upvalue='0'
              dnvalue='1' />
    </cell>
  </row>
  <row>
    <cell anchor='center-center'>
      <button height='32'
              type='Momentary'
              align='center-center'
              id='btn3'
              default='true'
              fg_color='#000000'
              bg_color='#FFCCCC'
              update='upd:ref,tag:ref'
              bdr_style='Eched'
              bdr_hl_color='#FFFFFF'
              bdr_sh_color='#333333'
              bdr_stroke='1'
              bdr_width='8'
              text='Bah!'
              rotate='0'
              font_size='18'
              upvalue='0'
              dnvalue='1' />
    </cell>
    <cell anchor='right-top'>
      <panel id='pnl5'
             bg_color='#33aaff'
             width='200'
             height='200'
             styles='fillOpacity:0.5;'
             bdr_hl_color="#5555ff"
             bdr_sh_color="#000066"
             bdr_style='Eched'
             bdr_stroke='2'
             bdr_width='8' />
    </cell>
    <cell anchor='center-center'>
      <panel id='pnl6'
             bg_color='#ffaaff'
             width='200'
             height='200'
             styles='fillOpacity:0.5;'
             bdr_hl_color="#5555ff"
             bdr_sh_color="#000066"
             bdr_style='Eched'
             bdr_stroke='2'
             bdr_width='8' />
    </cell>
  </row>
</grid>
[/code]
Reply all
Reply to author
Forward
0 new messages