Setting the background of a vi running in a subpanel to transparent

Does anyone know of a way to set the background of a vi running in a subpanel (or just running at all for that matter)  to transparent while maintaining 100% opacity for all other items on the front panel?
Thanks,
Nate

Hey Nate,
I may have found a property node that might be useful to you. It is a property of SubPanel and is called PanelTransparent. I found it by using one of the most overlooked, but one of the best, tools in LabVIEW called the class browser. Go to View>>Class Browser. Select the appropriate Object Library and Class and all of the properties and methods for that class are displayed. You can even drag and drop from the browser to the block diagram!
Let us know if this property helps out.
Chris C
Message Edited by Chris_C. on 01-31-2007 11:30 AM
Chris Cilino
National Instruments
LabVIEW Product Marketing Manager
Certified LabVIEW Architect
Attachments:
subpanel.JPG ‏77 KB

Similar Messages

  • Can I invoke a SubVI in an event? and how do I set the background color of a pipe to #0000ff?

    When I click an image or a glass pipe(which belongs to Industry/Chesmitry category in palette), I want a SubVI to be invoked.
    The purpose is to fetch an OPC-UA data from a web service and to write to it via the service.
    We are building an HMI solution which displays an interactive water plant diagram.
    When users click pipes and motors in the diagram, clicked devices should be turned on and off and change their animations or colors accordingly.
    OPC-UA is for communication with devices.
    I couldn't even set the background color of a pipe to "#0000ff", but setting it to "Red" or "Blue" was possible, and I don't know how to invoke SubVIs in event scripts.
    The documentations in NI.com are confusing and lack depth.
    Even silverlight references are confusing.
    How do I do all of these?

    Hi iCat,
    Can you provide some more information about your current implementation so that we can help to answer your questions. Some questions I have for you are:
    Are you creating this project in the NI LabVIEW Web UI Builder or in LabVIEW?
    How are you publishing your webservice? Is this also in LabVIEW?
    How is your webservice interacting with an OPC-UA server?
    How is the certification set up with OPC-UA so that you can communicate between the server and the client?
    Best Regards,
    Allison M.
    Applications Engineer
    National Instruments
    ni.com/support

  • How to set the Background Color of a Text Field in a Tabular Report.

    Hello,
    I tried to set the Background Color of a Text Field in a Tabular Report.
    But I was not able to change this colur.
    In the report attributes --> column attributes
    I tried already:
    1. Column Formating -- >CSS Style (bgcolor: red)
    2. Tabular Form Element --> Element Attributes (bgcolor: red)
    but nothing worked.
    Can anybody help me?
    I Use Oracle Apex 2.2.1 on 10gR2
    thank you in advance.
    Oliver

    in "Report Attributes" select the column to move to the "Column Attributes" page. In the "Element Attributes" field under the "Tabular Form Element" region enter
    style="background-color:red;"
    I will also check if there is a way to do this via the template and post here again
    edit:
    in your template definition, above the template, enter the following:
    < STYLE TYPE="text/css" >
    .class INPUT {background-color:red;}
    < /STYLE >
    (remove the spaces after the < and before the >)
    change "class" to the class that the template is calling
    (I'm using theme 9, the table has: class="t9GCCReportsStyle1" so I would enter t9GCCReportsStyle1)
    A side-effect of using this second version is that ALL input types will have a red background color--checkboxes, input boxes, etc.
    Message was edited by:
    TheJosh

  • How do i set the background of the table( not of cell / row / column).

    How do i set the background of the table( not of cell / row / column).
    What happens when i load the applet the table is blank and displays the background color is gray which we want to be white.
    We tried using the setBackGround but it is not working maybe we are not using it properly. Any help would be gr8.
    Thanks in advance.

    I don't understand very well, but i guess that the background is gray when the table content's empty, isn't it?
    When the table model is empty, the JTable doesn't paint, so its container displays its background (often gray).
    In this case, what you must do is force the table to paint, even if the model is empty. So, you have to create your own table and override three methods :
    public class MyTable extends JTable
    //specify the preferred and minum size when empty
    myPreferredWidth = 200;
    myPreferredHeigth =200;
    myMinimunWidth = ...;
    myMinimunHeigth = ...;
    public Dimension getPreferredSize()
    if(getModel().getRowCount() < 1)
    return new Dimension(myPreferredWidth, myPreferredHeigth);
    else
    return super.getPreferredSize();
    public Dimension getMinimumSize()
    if( getModel().getRowCount() > 0)
    return new Dimension(myMinimunWidth, myMinimunHeigth);
    else
    return super.getMinimumSize();
    protected void paintComponent(Graphics g)
    if (getModel().getRowCount<1 && isOpaque()) { //paint background
    g.setColor(Color.white);
    g.fillRect(0, 0, getWidth(), getHeight());
    else super.paintComponent(g);
    }

  • How do I set the background color of a page_item?

    I've been pasting "background-color:#5CD65C" in a number of places, like "HTML Table Cell Attributes" under the Label and the Element tabs, but get no results. Can anyone tell me how to set the background color of a cell, please?

    Hi Doug,
    Dynamic Actions is an alternative also, especially if it is conditional.
    Action Set Style
    Fire When Event Result Is True
    Style Name background-color
    Value #5CD65C
    Selection Type DOM Object
    DOM Object your item name
    Set your Condition Type and you have it.
    Jeff
    Edited by: jwellsnh on May 24, 2011 3:55 PM

  • How can I set the background color of JLabel?

    Can any one tell me how to set the background color of a JLabel?
    I have:
    JLabel prop = new JLabel("blahblah");
    prop.setBackground(Color.red);
    Thank you in advance...

    JLabel prop = new JLabel("blahblah");
    prop.setBackground(Color.red);
    prop.setOpaque(true);

  • How 2 set the background color in j2me

    Can any body tell me how to set the background color to midlet.??

    if you are using Screen then you can call its setBackColor()
    or if you are using Canvas then you can call
    g.setColor(r,g,b);
    g.fillRect(0,0,getWidth,getHieght);
    where g is the Graphics instance of Canvas,for further information consult documentation

  • TDMS : How to set the background colour programatically for .tdms file

    Hello every one 
    is there any method to set the background colour of .tdms file programatically
    Thank you
    Raja

    Hi Raja,
    "TDMS" is a file on your harddisc. How should a file have a background color?
    Or the other way around:
    How do you set the background color of a simple text file?
    Best regards,
    GerdW
    CLAD, using 2009SP1 + LV2011SP1 + LV2014SP1 on WinXP+Win7+cRIO
    Kudos are welcome

  • Problem in setting the background color of jtable with Nimbus

    Hi
    I have created a java swing application. In which I am using JTable.
    When creating a simple JTable and displaying with Nimbus, the row background color alternates between white and a light blue-grey.
    I want the table with single colour. Only the first column should be grey colour and other should be white.
    I used this code to set the background and foreground colour.
    public Component prepareRenderer
        (TableCellRenderer renderer, int index_row, int index_col){      
                Component objComponent = super.prepareRenderer(renderer, index_row, index_col);         
                Color objGreyColour = new Color(240,240,240);
                Color objWhiteColour = new Color(255,255,255);
                if(index_col == 0){
                    objComponent.setBackground(objGreyColour);
                    objComponent.setFont(new java.awt.Font(CommonClass.getFontName(),java.awt.Font.BOLD, CommonClass.getFontSize()));
                    objComponent.setForeground(Color.BLACK);
                }else{               
                    setSelectionBackground(Color.BLUE);
                    objComponent.setBackground(objWhiteColour);
                    objComponent.setForeground(Color.BLACK);
                return objComponent;
            } Look wise it is fine but when i try to select the cell it is not highlighting the cell and also i m not able to select multiple cell with ctrl key.
    Any help would be appreciated
    Thanks
    Sonal

    Hello,
    1) if you want better help soone,r please post an SSCCE (http://sscce.org) instead of a code extract.
    2) selection highlighting is lost because your code... doesn't handle selection. To take selection into account, you can use <tt>if (super.isRowselected(index_row)) {...}</TT>.
    Regards,
    J.

  • Why does the eyedropper tool set the background color swatch instead of the foreground?

    Whenever I try to use the eyedropper tool in Photoshop CS5, the eyedroper sets the background color instead of the foreground. I know you can swap the colors with the arrows, but Photoshop used to be able to just put the color in the foreground swatch without me doing any extra manual work. How do I restore it?

    Click on Windows and color.  There is a setting there to change from
    foreground to background.  The one with the box around it is the default setting.

  • Setting the Background Graphics for a JFrame

    Hi,
    I am designing a GUI-based game and intend to set the background of my JFrame to a specific jgp graphic...I can't seem to find any method for setting the background in the JFrame API.
    Kindly assist!
    Cheers.

    Your search is perhaps marred by being too specific to frame. It is generally considered a bad idea to do any 'custom' thing directly to a frame. Try this search instead.
    [http://www.google.com/search?q=background+panel+java]

  • [SOLVED] nitrogen fails to set the background with openbox

    Hi guys !
    I have a strange issue . Yesterady everything was working fine . nitrogen would set my wallpaper at each boot . This morning for some reason nitrogen sets the background for about one second
    and then it goes back to the default openbox background (the gray one) . I don't remember changing anything yesterday , i just added the multilib repository so i don't think this is an issue .
    Here is my .xinitrc
    nitrogen --restore &
    xfce4-panel &
    exec ck-launch-session openbox-session
    What i'm doing wrong ?
    Last edited by shak (2010-08-28 12:59:45)

    I've finally found the solution . Apparently i forgot to edit my autostart.sh file , so when i 've isntalled the xfce4-panel there was conlfict and the background was reset to the defaul .
    After deleting the content of autostart.sh file and putting there the nitrogen and xfce4-panel commands and leaving the exec openbox-session at the .xinitrc file everything is fine

  • Can I write a new email + set the background 2 anything apart from white?

    This has been driving me mad all day (and last night!) and i am sure I am being really stupid!
    I want to write a new email to a group and I want the background to be a different colour other that white - I can see how i can change the colour of the font but not the background of the actual email.
    Please help as this is seriously doing my head in!!!
    Thanks

    Hi!
    Ok, it took me some time to find it out, but here is how it works:
    * Compose the message and make sure it's composed in Rich Text.
    * Click the Fonts button in the toolbar
    * Pick the 4th icon from the left (Document color)
    Here comes the buggy part:
    * Set the background color (it doesn't reflect in the message)
    * Save the message as Draft and close it
    * Re-open the message
    --> colored background
    Not the most intuitive solution…but it works.
    Rupert
    <Edited by Moderator>

  • Why is there a scroll bar though I set the background image to "scale to page size"?"

    Why is there a scroll bar though I set the background image to "scale to page size"?"

    The current build of iTunes may occasionally draw the scroll bar off the edge of the screen. It should be possible to resize the window to reveal the scroll bar.
    You can restore much of the look & feel of the previous version with these shortcuts:
    Ctrl-B to turn on the menu bar.
    Ctrl-S to turn on the sidebar.
    Ctrl-/ to turn on the status bar.
    Click the magnifying glass top right and untick Search Entire Library to restore the previous search behaviour.
    You can also open the menu bar temporarily by pressing Alt.
    tt2

  • Chess UI Code Posted... Problems setting the background of JLabel.

    import javax.swing.*;
    import java.awt.*;
    import javax.swing.border.*;
    class chess
         JLabel l[];
         JPanel p;
         public chess()
              l = new JLabel[65];
              p= new JPanel();
              p.setLayout(new GridLayout(8,8));
              p.setBorder(new MatteBorder(2,2,2,2,Color.black));
              for(int i = 1; i<=64; i++)
                   l[i] = new JLabel(""+i);
                   p.add(l);
              JFrame f = new JFrame ("Hello");
              f.getContentPane().add(p);
              f.setSize(500,500);
              f.setVisible(true);
         public static void main(String args[])
              new chess();
    hello, i have created an array of JLabel and i wannt to set the background of JLabel white n black.. But when i write this statement it does not work..though it shud.
              if (i%2==0)
                   l.setBackground(Color.black);
              else
                   l[i].setBackground(Color.white);
    where i am going wrong n wht is the way to do this...

    can u tell wht shud i use in the if else block coz... the output is not wht i was expecting....u nd 2 chng clr wn lb @ % 8

Maybe you are looking for

  • Photoshop CS5 on Macbook Pro 10.6.8 Crashes

    All of a sudden, since this morning, my Photoshop has been crashing and I cannot figure out why. Could a file I'm using on photoshop be corrupt? Please help! I have reinstalled, deleted preferences, gotten rid of MM fonts. I do not know what to do an

  • Automatic payment not specify by business area

    Hello, I am trying to run an automatic payment program for one vendor and the system splits the open items by Business area. But I donu2019t want that. I would like to aggregate line items in one, if my payment is just one. I've check my customizatio

  • Mail Server issues: non-SMTP command from localhost

    I just installed Yosemite server. Noticed these messages showing up in the log: Oct 28 06:32:08 my_server.net postfix/smtpd[28380]: warning: non-SMTP command from localhost[127.0.0.1]: From: Mrs. M.M Macheda <[email protected]> Oct 28 06:32:08 my_

  • I got a question but, it is too long to type here.

    the question I have is how can I pop() strings off a Stack and test the first on with the next one and so on. I am trying to write a recursive algorithm (push down automana) that recieves a Stack and tests each item in the stack with the next item in

  • Windows XP (sp2) will not update after replacing the hard disk of my Presario V4435NR with a new one

    Hi, I had to replace my Presario V4435NR hard disk (80 GB) with a new 160 GB hard disk from Samsung. The original hard disk did not crash but was churning all the time and did not have enough space for all I wanted to put on it. I installed the new 1