On Monday 25 January 2016 08:31:58 John Thornton wrote:

> can you attach the xml file so I can "see" what your seeing?
>
> JT

Attached.  Its the one that generated the snapshot.

If I reduce the widths of the leds, the first one on the left stays 
moderately well centered horizontally, but the 2nd and 3rd are placed in 
the lower left corners of their respective boxes.

FWIW, I found that a whole stanza of code with a bad entry can be 
commented out, as everything between the '<!-- ' and the next ' -->'goes 
away even it its a 100 LOC.  You might want to put that in the wiki too.

> On 1/24/2016 8:03 PM, Gene Heskett wrote:
> > How do I go about setting the vertical size of a <vbox> ... </vbox>
> > construction?
> >
> > How do I set the vertical position of the text?
> >
> > How do I move the led so as to center it in the box?
> >
> > Thanks pyvcp experts. :)  A URL link would be great, but my
> > google-foo hasn't found one.
> >
> > 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=267308311&iu=/4140
> _______________________________________________
> Emc-users mailing list
> Emc-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/emc-users


Cheers, Gene Heskett
-- 
"There are four boxes to be used in defense of liberty:
 soap, ballot, jury, and ammo. Please use in that order."
-Ed Howdershelt (Author)
Genes Web page <http://geneslinuxbox.net:6309/gene>
<?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,2400,"green"</region1>
      <region2>2400,2600,"yellow"</region2>
      <region3>2600,2750,"red"</region3>
    </meter>
  </hbox>

  <!-- the On Led -->
  <hbox>
    <relief>RAISED</relief>
    <bd>2</bd>
    <vbox>
      <relief>RAISED</relief>
      <bd>2</bd>
      <label>
        <text>"SPWR"</text>
        <font>("Helvetica",12)</font>
        <width>8</width>
      </label>
      <hbox>
        <label width="1"/>
        <rectled>
          <halpin>"on-led"</halpin>
          <height>"20"</height>
          <width>"55"</width>
          <on_color>"green"</on_color>
          <off_color>"red"</off_color>
        </rectled>
      </hbox>
    </vbox>

    <!-- the FWD Led -->
    <vbox>
      <relief>RAISED</relief>
      <bd>2</bd>
      <label>
        <text>"FWD"</text>
        <font>("Helvetica",12)</font>
        <width>8</width>
      </label>
      <label width="1"/>
      <rectled>
        <halpin>"fwd-led"</halpin>
        <height>"20"</height>
        <width>"70"</width>
        <on_color>"green"</on_color>
        <off_color>"red"</off_color>
      </rectled>
    </vbox> -->

    <!-- the REV Led -->
    <vbox>
      <relief>RAISED</relief>
      <bd>2</bd>
      <label>
        <text>"REV"</text>
        <font>("Helvetica",12)</font>
        <width>8</width>
      </label>
      <label width="1"/>
      <rectled>
        <halpin>"rev-led"</halpin>
        <height>"20"</height>
        <width>"70"</width>
        <on_color>"green"</on_color>
        <off_color>"red"</off_color>
      </rectled>
    </vbox>
  </hbox> -->  
<!-- The following 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=267308311&iu=/4140
_______________________________________________
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users

Reply via email to