Here you go Gene.

JT

On 2/17/2016 9:55 AM, Gene Heskett wrote:
Greetings pyvcp gurus;

See attached screenshot please. Right side created by the pyvcp-panel.xml
which is also attached.

With the help of a validating xml editor, xmlcopyeditor, I've somewhat
cleaned up and made the spindle related LED's look decent.  BUT those 3
leds take up 2x the vertical screen space they need.

I've taken the led's height to as low as 10 pixels but there is still the
wasted space below the text and above the rectled. 40 pixels at least.

My attempts to assign  <height>"some number string"</height> to a vbox
are always an error.

Is this ability something that is totally missing from pyvcp?

Cheers, Gene Heskett


------------------------------------------------------------------------------
Site24x7 APM Insight: Get Deep Visibility into Application Performance
APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
Monitor end-to-end web transactions and take corrective actions now
Troubleshoot faster and improve end-user experience. Signup Now!
http://pubads.g.doubleclick.net/gampad/clk?id=272487151&iu=/4140


_______________________________________________
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users

<?xml version='1.0' encoding='UTF-8'?>

<pyvcp>
<!-- 
Include your PyVCP panel here.
The contents of this file will not be overwritten when you run stepconf again.
-->
<!-- the RPM meter -->
  <hbox>
    <relief>RAISED</relief>
    <bd>3</bd>
    <meter>
      <halpin>"spindle_rpm"</halpin>
      <text>"Spindle"</text>
      <subtext>"RPM"</subtext>
      <size>235</size>
      <min_>0</min_>
      <max_>2750</max_>
      <majorscale>500</majorscale>
      <minorscale>100</minorscale>
      <region1>0,2250,"green"</region1>
      <region2>2250,2600,"yellow"</region2>
      <region3>2600,2750,"red"</region3>
    </meter>
  </hbox>
<!-- end of tach, matches to here -->

<!-- the LED box -->
  <vbox>
  <!-- the spindle power on led -->
	  <hbox>
      <relief>RAISED</relief>
      <bd>2</bd>
      <vbox>
        <relief>RAISED</relief>
        <bd>2</bd> -->
        <label>
          <text>"SP-PWR"</text>
          <font>("Helvetica",14)</font>
          <width>6</width>
        </label>
        <!-- <label width="2"/> removed extra blank label for you-->
        <rectled>
          <halpin>"on-led"</halpin>
          <height>"30"</height>
          <width>"71"</width>
          <on_color>"green"</on_color>
          <off_color>"red"</off_color>
        </rectled>
      </vbox>
    <!-- the FWD LED -->
      <vbox>
        <hbox>
          <relief>RAISED</relief>
          <bd>2</bd>
          <vbox>
            <label>
              <text>" FWD "</text>
              <font>("Helvetica",14)</font>
              <width>6</width>
            </label>
            <!-- <label width="2"/> -->
            <rectled>
              <halpin>"fwd-led"</halpin>
              <height>"30"</height>
              <width>"71"</width>
              <on_color>"green"</on_color>
              <off_color>"red"</off_color>
            </rectled>
          </vbox>
        </hbox>
      </vbox>
    <!-- the REV Led -->
      <vbox>
        <hbox>
	        <relief>RAISED</relief>
	        <bd>2</bd>
	        <vbox>
	          <label>
              <text>" REV "</text>
              <font>("Helvetica",14)</font>
              <width>6</width>
            </label>
            <!-- <label width="2"/> -->
            <rectled>
              <halpin>"rev-led"</halpin>
              <height>"30"</height>
              <width>"71"</width>
              <on_color>"green"</on_color>
              <off_color>"red"</off_color>
            </rectled>
          </vbox>
        </hbox>
      </vbox>
    </hbox>
    
  </vbox>  <!-- end of vbox for all 3 buttons -->

<!-- here we have to re-invent the camview missing stuffs -->
  <labelframe text="Calibrate machine">
    <button>
      <halpin>"checkbutton1"</halpin>
      <text>"CamOn"</text>
      <font>('Helvetica',10)</font>
    </button>
    <hbox>
      <button>
        <halpin>"button1"</halpin>
        <text>"CamOff"</text>
        <font>('Helvetica',10)</font>
      </button>
      <button>
        <halpin>"button2"</halpin>
        <text>"CamRec"</text>
        <font>('Helvetica',10)</font>
      </button>
      <button>
        <halpin>"button3"</halpin>
        <text>"CamCtr4"</text>
        <font>('Helvetica',10)</font>
      </button>
    </hbox>
  </labelframe>

<!-- The following alignment code is added to your .xml file inside the <pyvcp> </pyvcp> tags --> 

  <labelframe text="Align Sheet">
    <button>
      <halpin>"align-start"</halpin>
      <text>"Align Start"</text> 
      <font>('Helvetica',10)</font>
    </button>
    <hbox>    
      <button>
        <halpin>"align-y"</halpin>
        <text>"Align Y"</text> 
        <font>('Helvetica',10)</font>
      </button>    
      <button>
        <halpin>"align-x"</halpin>
        <text>"Align X"</text> 
        <font>('Helvetica',10)</font>
      </button>    
    </hbox>
    <button>
      <halpin>"clear-offset"</halpin>
      <text>"Clear Offset"</text> 
      <font>('Helvetica',10)</font>
    </button>    
  </labelframe>
</pyvcp>
------------------------------------------------------------------------------
Site24x7 APM Insight: Get Deep Visibility into Application Performance
APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
Monitor end-to-end web transactions and take corrective actions now
Troubleshoot faster and improve end-user experience. Signup Now!
http://pubads.g.doubleclick.net/gampad/clk?id=272487151&iu=/4140
_______________________________________________
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users

Reply via email to