Custom control color changes

I need to change a boolean control color based on certain cases. This is simple, I would normally just wire up a color array to the boolean property node and set the false color to be green, yellow, or red (whichever was needed). However, the control needs to be trapezoid shaped. Is there a way to change the shape of the control without importing images from clipboard? If I copy a custom image from clipboard, it is placed over the boolean control so the properties will be useless (i.e. the user can't see them). What would be best is if I could just take the normal, rectangular boolean images and make select parts of it transparent so it takes on a trapezoid shape. Suggestions?
CLA, LabVIEW Versions 2010-2013
Solved!
Go to Solution.

muks wrote:
Yup, thanks muks and ben. Perfect yeah i know i had to work a lot better to become a ben....
Don't we all. Now I am having a problem...again. When I overlay the image, I click the boolean but its not registering for some reason. Am I just brainfarting here? If I click real fast, eventually it gets it. It's set to latch when released and is a type def.
Message Edited by for(imstuck) on 03-12-2010 10:45 AM
CLA, LabVIEW Versions 2010-2013
Attachments:
problemvi.PNG ‏12 KB

Similar Messages

  • Custom control color property

    With the included controls like the OK boolean you can change the true or false color by going to Properties >> Apperance >>Colors.  Then click the color box to change the state color.  Is it possible to do the same with a custom boolean control?
      I have searched some and it does not sound like it is possible, but I figured that I would ask.  I have a diagram where I used some pipes from the DSC module image navigator to make some boolean pipes.  I just changed the properties for the different colors then pasted them into a boolean control for true/false cases.  But now I am thinking of changing the colors from gray/red to gray/green.  Is there an easier way than just starting over and making new booleans with the desired colors?  Or is there a better trick for custom controls I don't know?
    Thanks
    Solved!
    Go to Solution.

    Here is a sample of the control as a type def and a vi with the Colors(4) property cluster.  I must be doing this wrong or not explaining it correctly.  So if you could look at the files and be able straighten me out I would appreciate it. 
    Attachments:
    Control 3.ctl ‏8 KB
    test1.vi ‏12 KB

  • Hide the custom control while changing the tab

    Hello Experts,
    I am using many screens & subscreens in my application. In a tabstrip control, I am calling one subscreen which has Custom Control to display the text editor.
    When I change the tab say for ex from TAB1 to TAB2, the custom control with text editor remains at the same place. In TAB2 I dont want custom control of TAB1.
    Thank you to go through my query.
    Regards,
    Bhavina
    Edited by: Rob Burbank on Aug 23, 2010 5:12 PM

    Hello Alej,
    I have created one subscreen which i need in a tabstrip control. Now this subscreen has one Editor Control (CL_GUI_TEXTEDIT->TEXT_EDITOR)  which I put on Custom Control. Custom Control is placed in the subscreen with SE51.
    to put the editor control  of CL_GUI_TEXTEDIT, I need Custom Control on screen. And I didnt find any property using which we can hide custom control.
    Is there any way using classes or methods, can we put Editor Control without using the custom control of screen.
    I think in your prob, you had ALV, that we can put on another subscreen, but in my prob how can we remove custom control Please Explain.
    Thanks & Regards,
    Bhavina

  • ALE / IDOC / sales order customer control record change

    I'm trying to look for a "standard" answer.  Here's my problem:
    Record comes into SAP with a non-sap customer number that needs translated to SAP customer number.
    Options I'm looking into:
    1.  Use the user exit and pull the customer characteristic from the customer master.  Based on the characteristics then convert the control record.
    2.  Use the user exit at the sales order create.  Based on the characteristics then convert the sales order and do not convert the control record.
    3.  Use standard EDPAR and convert the control record.
    The problems:
    If I use code to change the sold to custmer number at the control record level, I'd like to do the same thing at the detail level.  The standard SAP code uses EDPAR.  There are many different user exits based on the IDOC type in the system.  I really don't want to change the code for each one.
    EDPAR is maintained by IS.  However, the customer master is in the business hands and is easily used.  The customer master would be the perfered way to do things.
    Any suggestions?  Has anyone else had a problem with the customer number in the control record?  We used to do it prior to moving the record into the SAP system.  We would like to move away from that.
    Thank you!
    Michelle

    OK so we have a strange setup.  Yes, sold-to and ship-to is in the sales order.
    The customer number in the control record is really our SAP sold-to number.  It also is the partner number.   It is required for WE20.  However when the IDOC comes into our system our customer doesn't always send the partner number.  They can send their number for our company, the DUNS number or others.  We have to take that number and convert it to our partner number.
    While conversion from X12 to IDoc, based on the ISA ID or Sold-to party number you should map the correct SAP partner number onto the control record.
    Coming to non-SAP sold-to party number in E1EDKA1 segment, the same non-sap sold-to number can be mapped to this segment but you should maintain EDPAR Entries. (VOE4).   Yes, I found that EDPAR seems to be the way SAP is expecting the conversions.  However, we want our customer service to maintain the conversion.   That means that it has to be in a good format.  So I could write a Z transaction over the EDPAR table for easier maintenance, or use the customer master screens.  The customer master seems to be a logical place for custmer service to enter in the conversions.  However, EDPAR is what SAP is expecting.  So I decided to have them update the customer master via characteristics, and then use a BADI to send the information to EDPAR.  Use "standard" functionality to change the control record.  I believe it is a user exit.
    Any questions??  I always have questions.   I think the above solution will work.   We haven't prototyped it yet.   That will happen soon.    My question was very generic and probably hard to follow.  
    Hopefully this clears up what I think we are going to do.  Any other solutions would be appreciated.   The control record may or may not be correct when it is recieved.  So we need to convert.  Another requirement is that customer service has to set up the conversion values.  VOE4 is not a good transaction for non-technical people to use.   So we need a better way.  
    Again we have voted to try the above solution.  But I welcome any other suggestions.
    Thannk you,
    Michelle

  • Fully custom controls

    Hello:
    I have struggled with this off and on for several years now. I need to build custom controls for industrial automation applications using LabVIEW and the DSC module. I need the ability to fully customize the appearance of the existing controls while maintinaing color and blink properties. It would also be nice to preserve smooth control apearance when resizing.
    I have figured out how to acheive transparency using Photoshop CS and png files. Other information is obviously lost when an image in a custom control is changed.
    Since the built-in controls scale smothly, can I assume that they are vector graphics based? Can their images be better edited using a vector-based tool?
    Is there a special channel which allows for color properties to be applied to a control's image? Is it possible to manipulate this into custom controls?
    In general, I would like to know how to edit graphics for custom controls so that I can maintain the original ability to use property nodes to control the appearance of a custom control.

    Thank you for the link. It dies answer some of my wuestions, but still leaves me without a solution. Can you provide more information on the "picture in c code" format? I can not find any information on it online. I am a C++ and C# programmer, but I am not familiar with PICC.
    Is it possible to access the source code for the controls included with LabVIEW and truly customize them?
    Thank you,
    plaskey

  • Changing colours of Custom Controls

    I've made a custom control by adding a logo to a standard boolean square button. I want to be able to change the colour of the background (the light/dark green). How do I do this? I have tried using the colours[4] property attribute, but although this reports that the colour has been changed, the control remains unaffected.
    Thanks for your replies.
    Richard

    I think the problem lies in how you have imported your image. Rather than importing the image as a decal, you have actually replaced the images on the control with it, which will of course prevent you from changing their colors.
    When you initially edit the control, don't switch into edit mode (the tweezers). Leave the control in customize mode (the wrench).
    Select Edit->Import Picture From file and find your image, note that you should probably try to create an image with a transparent background.
    Right Click on the button and select Import Picture->Decal.
    That should place your picture on the button, without modifying the background of the button, now you can change the background statically, or dynamically. I'm attaching a control that uses a decal in the middle. You can replace the boolean in the VI I posted previously with it to see the desired result.
    Regards,
    Ryan K.
    Attachments:
    My control.ctl ‏18 KB

  • Cretit control area field - Customer master - mass change

    Hi Gurus:
    I want to use the customer master mass change program (T.code XD99) to assign a default credit control area for all the customers. However when i try to save the mass changes it does not update the credit control area, and shows an information message "0000500004 : No batch input data for screen SAPMF02D 0900" . Did anybody come across such situation ? and how to resolve this ?
    Thanks in advance.

    Refer to note 552066, The system is attempting to maintain some ETM data that may not be relevant. May be this applies to you.
    Symptom
    During the start of the mass maintenance with Transaction XD99, the system generates batch input sessions for the import of the data in the background. In the process the system also tries to supply fields RF02D-D0900 and RF02D-D0910 on screen SAPMF02D 101 with data, although these fields do not exist on the screen. Then the batch input processing terminates.
    Solution
    The correction of the source code for the generation of the batch input data is described in the corresponding correction instruction. A solution that allows also the mass maintenance of ETM data with Transaction XD99 is in preparation.

  • Changing control color.

    Hi,
    1. Is it possible to change List column colors?
    2. I changed controls colors using Caption string override property as follows
    font color=red> First Name </font
    The field name(First Name)color changed to red color but my requirement is i want to display "First" in Red color and "Name" in Green color. Is it possible if possible plz reply me.
    Thanks & Regards
    Edited by: Forum User on Jun 27, 2011 2:18 AM

    Hi Joseph
    Thank u for ur reply. I try it but it is not working for List Applet.
    Thanks & Regards

  • Customizing Cursor Color and/or appearance:  Does anyone know if you can change cursor color?

    Customizing Cursor Color and/or appearance:  Does anyone know if you can change cursor color in Mountain Lion? Any software for customizing and saving different cursors for Mountain Lion? Already have cursor size changed, but would like more options. Are more cursor customization options coming in future Mac OS X versions?

    There may be some haxies/3rd party s/w that can do this, but I've not heard of them.
    Customisation is limited on macs, unless you start hacking deep into the coreservices of the system - dodgy at best and almost certainly to get reset on the next update from Apple central
    Think different? Nooo....that was just a slogan.

  • How to select "ISO A" (auto) using Custom Controls with lever assigned to ISO change?

    On 7D Mark II with firmware 1.0.4, I have used Custom Controls to assign ISO change to the lever.  However, it is not possible to change ISO to "ISO A" (auto).  How to select "ISO A" (auto) using Custom Controls with lever assigned to ISO change? 

    Follow Up:
    Ok so ive changed things up a bit and have had some more success.
    I have used a Switch statement in my For loop to perform different actions based on the item selected.
    The code looks like this:
    Workbook.Content.Table1.Row3.AppropriationDetails.Row4.Cell1::change - (JavaScript, client)
    var fFrom = xfa.resolveNodes("Workbook.Content.Table1.Row3.AppropriationDetails[*] .Row4.Cell1");
    var fTo = xfa.resolveNodes("Workbook.Content.Table2.Row3.AppropriationDetails[* ].Row4.Cell1");
    for (var i=0; i <= fFrom.length-1; i++) {
         switch (fFrom.item(i).rawValue)
         case "Option 3":
         fTo.item(i).rawValue = "Enter the details in the field below";
         break;
         default:
         fTo.item(i).rawValue = fFrom.item(i).boundItem(xfa.event.newText);
         break;
    This code solves my problem but has thrown up a new issue:
    When i select Option 1 or 2 from the dropdown list  the change in the text field is instantaneous, however if I select Option 3 it wont appear in the text field until I either select Option 3 a second time or select another item. Its as if the text field is a selction behind what I have enterd in the dropdown list.
    Any thoughts?

  • TABLE CONTROL LINES COLOR CHANGE

    <i>Hi Friens.,
    I need small help ie.,
    Let us assume we have table control like this.,
    col1 |  col2  |  group |
    a1   |   b1   |  1
    a2   |   b2   |  1
    a3   |   b3   |  2
    a4   |   b4   |  2
    a5   |   b5   |  3
    a6   |   b6   |  3
    1) User need differentiation between groups to look and feel.,thats why I want to change the Line colors based on Group.,
    2) I am getting this one .,but I made case on Sy-stepl.,  while scrolling it is not showing correct .,
    3) Is there any good way to do this., like in ME21   CONDITIONS TAB at Item level</i>
    If any body have Idea., share with me.,
    <b>Thanks.,</b>
    <i><b>Surendher Reddy.Baddam</b></i>

    Re: TABLE CONTROL LINES COLOR CHANGE
    Posted: Nov 5, 2004 6:47 AM        Reply      E-mail this post 
    PBO >>>like thise.,
    LOOP AT itab WITH CONTROL tc4_400 CURSOR tc4_400-current_line.
    MODULE check_rej_hld_400.
    MODULE radio_checkbox_400.
    ENDLOOP.
    >>>
    MODULE radio_checkbox_400.
    DATA : l_stf TYPE i.
    DATA : l_hyd TYPE i,l_knr TYPE i.
    l_hyd = 1.
    LOOP AT SCREEN.
    IF screen-name = 'ITAB-BATCHNO'.
    IF itab-group = l_hyd. " this is group
    screen-intensified = 1.
    MODIFY SCREEN.
    ELSEIF
    screen-intensified = 0.
    MODIFY SCREEN.
    ENDIF.
    ENDIF.
    ENDLOOP.
    ADD 2 TO l_hyd
    ENDMODULE.
    I made logic like this.,
    Thanks.,
    Surendher Reddy.Baddam

  • Controlling Selective Color Changes in Lightroom | The Complete Picture with Julieanne Kost | Adobe TV

    In this episode of The Complete Picture, Julieanne demonstrates how to use Hue, Saturation, Luminance and the Adjustment Brush to selectively control color in Lighrroom Note: although this video was recorded in Lightroom, the same techniques are available in Adobe Camera Raw in Photoshop CS6.
    http://adobe.ly/YarzUC

    Julianne, I have photoshop CS5. It will not open my camera raw pictures from my new Nikon D5200 (2013) raw pictures. I? I love that you di am being told to upgrade to CS6. Do I have to? Scott Kelby suggest converting the files to DNG, but will that give full use of CS5 tools. And then I have to convert each picture at a time. Also should I get Lightroom? Isn't it enough to have CS5 which cost me tons of money.
    Brooke

  • ITunes 11 custom color changes all the sudden (album)

    Because I use iTunes 11 between 2 PCs, I've noticed this slight issue since, where one particular album on 1 PC gives a slightly different palette of colors than the other.
    All the sudden today, my Kelly Clarkson Greatest Hits: Chapter 1 Deluxe album decided to change colors. It went from this.... :
    To this:
    That said, what makes iTunes decide the color changes? By the way I did not change the album art at all to cause this. Both files are their exact same copies from their respective PCs.
    The last thing I did with my PC was using a software called "calibrize" to calibrate my PC monitor. Did that have something to do with it? Anyone else who have this similar situation?

    Found another thread in Discussions- Closing down then re-opening Itunes solves the problem.
    Worked for me.

  • How a custom control is advised it gains or looses focus?

    Hey, at least I have a question to ask, instead of answering them... :-)
    Actually, I already asked it in another thread, in one of my answers: [onMouseClicked Event Is Failing To Fire|http://forums.sun.com/thread.jspa?threadID=5391008] but I fear it is lost in a rather lengthly message, so I ask it in its own thread, because I was to bring the attention of knowledgeable people (hello Sun people! :-D).
    The question is simple: In a custom control in JavaFX 1.2, with skin and behavior, how a control is advised when it gains or looses focus?
    The purpose is to let the skin to change the look of the component upon these events, like it is done for standard controls (eg. putting a border around the focused control).
    If the control is clicked, you know (unless it is disabled) that it will have the focus. But I see no way to see the lost of focus, nor when we gain (or loose) it with Tab/Shift+Tab (if it has focusTraversable to true).
    I looked for onFocus() and onBlur() events (or similar), but found nothing. No mixin, nothing related in javafx.scene.input.TextInput and friends, etc.
    I explored the Web but since 1.2 is still new, I found not much information. Only a fragment of source code in [Re: Further location optimizations|http://markmail.org/message/gsevtlkeq45rrdun] where I see scene.getFocusOwner() but this one isn't easily usable because it is package protected (and it is not an event, anyway).
    A possible solution would be to have a timer to inspect the state focused of the nodes, but it is so kludgy I didn't even tried to implement it!
    I hope I just missed the information... If there is no easy/official/working way in 1.2, I hope this will be corrected for next version!

    That's a very good remark, handling of focus highlight shouldn't be done at control (model)'s level. I hesitated to put it in behavior, but it feels more natural in the skin, so I did as you suggested.
    you'll need an interface, and JavaFX does not do thatYou have mixins. But I didn't used them here.
    focused variable never is set to trueHave you included the
    public override var focusTraversable = true;
    line?
    To support multiple skins, my control becomes:
    public class StyledControl extends Control
      // Data related to the control (the model)
      public var count: Integer;
      public override var focusTraversable = true;
      init
        if (skin == null)  // Not defined in instance
          // Define a default styler
          skin = ControlStyler {}
      package function Incr(): Void
        if (count < 9)
          count++;
    }quite bare bones (I intendedly keep the model simple).
    Note I still define a default skin in case user doesn't provide it: they shouldn't care about this detail unless they want to change it.
    I defined an abstract default skin, implementing most variables (particularly the public ones that can be styled) and the focus change:
    public abstract class DefaultControlStyler extends Skin
      //-- Skinable properties
      public var size: Number = 20;
      public var fill: Color = Color.GRAY;
      public var textFill: Color = Color.BLACK;
      public var focusFill: Color = Color.BLUE;
      package var mainPart: Node; // Decorations (id, focus) are kept out of layout
      package var focusHighlight: Node;
      package var idDisplay: Text;
      package var valueDisplay: Text;
      init
        behavior = ControlBehavior { info: bind control.id }
        node = Group
          //-- Behavior: call controller for actions
          onMouseReleased: function (evt: MouseEvent): Void
            (behavior as ControlBehavior).HandleClick(evt);
      postinit
        // Once defined by the sub-class, insert into the node
        insert [ mainPart, idDisplay, valueDisplay ] into (node as Group).content;
      public abstract function ShowIncrement(): Void;
      var hasFocus = bind control.focused on replace
        if (hasFocus)
          ShowFocus();
        else
          HideFocus();
      // Default handling of  focus display, can be overriden if needed
      public function ShowFocus(): Void
        insert focusHighlight into (node as Group).content;
      public function HideFocus(): Void
        delete focusHighlight from (node as Group).content;
      public override function contains(localX: Number, localY: Number): Boolean
        return mainPart.contains(localX, localY);
      public override function intersects(localX: Number, localY: Number,
          localWidth: Number, localHeight: Number): Boolean
        return mainPart.intersects(localX, localY, localWidth, localHeight);
    }and the concrete skins implement the mainPart, idDisplay, valueDisplay, focusHighlight nodes, override ShowIncrement with an animation, override getPrefWidth and getPrefHeight to set to mainPart size and might override ShowFocus or HideFocus (if we want it behind mainPart for example).
    The behavior is:
    public class ControlBehavior extends Behavior
      public var info: String; // Only for debug information...
      // Convenience vars, to avoid casting each time
      var control = bind skin.control as StyledControl;
      var csSkin = bind skin as DefaultControlStyler;
      public override function callActionForEvent(evt: KeyEvent)
        println("{info}{control.count}: KeyEvent: {evt}");
        if (evt.char == '+')
          Incr();
      package function HandleClick(evt: MouseEvent): Void
        control.requestFocus();
        Incr();
      function Incr(): Void
        control.Incr();
        println("{info}: Ouch! -> {control.count}");
        csSkin.ShowIncrement();
    }and knows only the abstract default skin (to apply feedback of user input to skin).
    I use it as follow:
    Stage
      title: "Test Styling Controls"
      scene: Scene
        width:  500
        height: 500
        content:
          HBox
            translateX: 50
            translateY: 100
            spacing: 50
            content:
              StyledControl { id: "Bar" },
              StyledControl { /* No id */ layoutInfo: LayoutInfo { vpos: VPos.BOTTOM } },
              StyledControl { id: "Foo" },
              StyledControl { id: "Gah" },
              StyledControl { id: "Bu", skin: AltCtrlStyler {} },
        stylesheets: "{__DIR__}../controlStyle.css"
    }BTW, I tried layoutY: 50 in place of the layoutInfo definition, but the control remained at default place. Am I reading incorrectly the ref. or is this a bug?

  • How do you Create a Custom Control

    Is it possible to create a custom control under LabWindows ?
    I want to creat a control that represents a mobile phone.
    It will be a rectangle with about 4 lines of text displayed in it witch needs to be programmatically entered and the back ground colour needs to be able to be change to represent different states also programmatically.

    I don't know if it's possible to create custom controls under CVI. I can suggest you some hint to help solve your problem.
    As for the second part of your question, you could use a picture ring with different pictures (with different background color) associated with the different states in your program. When program state changes you will only have to SetCtrlVal (panel, control, state) to have the picture ring display the desired colour. I guess this is a simple indicator, so you can put Control mode to indicator and hide inc/dec arrow in order to exclude operator's managing of the control.
    As a workaround about the four line of text to be displayed, what about putting on top of the picture ring a simple text box or text message with transparent backgroud col
    our and frame colour? At the cost of managing two different controls, the matter should work...
    Roberto
    Proud to use LW/CVI from 3.1 on.
    My contributions to the Developer Zone Community
    If I have helped you, why not giving me a kudos?

Maybe you are looking for

  • Exporting data from table to Excel in a particular format using BSP.

    Hello all,       I am creating a application in BSP  wherein i have to export data to excel sheet.   I am able to do that but the output in excel sheet is not formatted. it is displaying the data in a single  column. For example, the internal table w

  • Boot partition error message

    My mid 2010 iMac i7 will not boot past the apple logo? I'm running 10.7.3. I have tried restoring from TM backup from recovery mode (worked the last time this happened) however upon completion it returns to the recovery screen? I made a disk of Lion

  • Error message when updating iphone 5 to iOS 8.0.2

    I'm getting an error message when trying to install iOS 8.0.2 on my iPhone 5. 

  • Can CS4 be used on a computer not connected to the internet?

    Does anyone know if CS4 be activated on a computer which is not connected to the internet? Thank you, ~Shawn

  • How to Get HD Trailers to Work

    Hi Guys. I recently upgraded to Quicktime Pro 7 on my pc which is running Windows XP. I'm wondering what it is I have to do to be able to watch High Definition trailers from apple.com/trailers? Is it even possible to do so on a non-mac? Thanks for yo