I like the theme.

Vexi equivalent :-

<vexi xmlns:ui="vexi://ui" xmlns="vexi.widget">
  <surface />
  <ui:box frametitle="Simple Counter" shrink="true">
    <pad cols="1" padding="5">
      <ui:box>
        <ui:box width="5" /> // pad the 'Count'
        <ui:box shrink="true" text="Count:" />
        <textfield id="output" margin="5" />
      </ui:box>
      <ui:box vshrink="true">
        <button id="dec" margin="5" text="Dec (-)" />
        <button id="clear" margin="5" text="Clear" />
        <button id="inc" margin="5" text="Inc (+)" />
      </ui:box>
    </pad>
    vexi.ui.frame = thisbox;
    thisbox.value ++= function(v) { $output.text = v; }
    $dec.action ++= function(v) { value--; }
    $inc.action ++= function(v) { value++; }
    $clear.action ++= function(v) { value = 0; }
    value = 0;
  </ui:box>
</vexi>

Attachment: vexi_count_win2k.png
Description: PNG image

Reply via email to