Changing border colour

How I can change the borders colour of a button to red on click event
thanks

Can be done with script on clik event of the button.
1. Go to "border properties" of button , and update the "Raised - 3D"(this may be default value) to "Solid" from the drop down.
2. If you need any default color for border before click you can select a color from the pallet elase select white color.
3. now assign the red color for the border on click event of the button, place the below script on click event of the button.
     this.border.edge.color.value = "255, 0,0";
4. now you can see the red border for button on click event, if need more wider of the border can be increased the size from "border properties" of button.
Hope this will help.

Similar Messages

  • Help changing border colours. Indesign.

    Hi, Thank you for taking the time to look at this post! I have a border made up of different shapes all colour blue but with different tones. I want to change these to say yellow but keep the tones as in some are light some are dark. Is it possible to do this one go or do I have to alter each one separately?
    All the best,
    Bradaz21

    This is a screenshot of the swatches and the layout. Each shape has its own corresponding colour on the swatch, some colours I've repeated elsewhere.

  • Change the colour of the tile dynamically:

    Hi,
    I have 12 tiles in my application. Depending upon some condition, few tiles colour should be changed and also to the same tiles image should be added. (I'm creating tiles using Border)
    Can anybody suggest how can I achieve this?
    Thanks,
    Santosh

    Please close your previous threads before you start a new one.
    Also, you have asked this very same question before here:
    https://social.msdn.microsoft.com/Forums/vstudio/en-US/b3752b09-2ee2-46ac-a941-dc7baad78110/change-the-colour-of-the-rectangle-dynamically?forum=wpf#b3752b09-2ee2-46ac-a941-dc7baad78110.
    Please don't ask the same question twice.
    You could use DataTriggers and/or converters to change the property of some UI element based on some condition as already suggested in the previous thread.
    Of course you must post your code, or even better upload a reproducable sample of your issue to OneDrive and post the link to it here, for anyone to be able to provide a specific solution.
    But note that the forums are not for anyone else to do the entire work for you. You were given code samples of how to use data triggers and converters in the previous thread. That should certainly give you the idea.
    Please remember to close your threads by marking helpful posts as answer and please start a new thread if you have a new question.

  • Change the colour of the rectangle dynamically:

    Hi,
    I've some tiles in wpf application. (non clickable, drawn using Rectangle). I want to change the colour of the tile depending upon condition Ok, Warning, Error to the colour Blue, Yellow, Red respectively. 
    Can you please let me know how can I achieve this?
    Thanks,
    Santosh

    Thanks for the response.
    I'm using Datatemplate like below:
    <DataTemplate x:Key="Template1" DataType="{x:Type BusinessObjects:BindableCapability}">
                <Border x:Name="CapabilityBorder"
                              Background="{StaticResource GlobalHeaderBackgroundBrush}"
                              BorderBrush="{StaticResource TileBorderBrush}"
                              BorderThickness="1"
                              Margin="8"
                              Height="200"
                              Width="420">
                    <Grid>
                        <TextBlock x:Name="CapabilityTextBlock"
                                     Text="{Binding CapabilityIdentifierDescription}"
                                     Style="{StaticResource TileTitleTextStyle}"/>
                    </Grid>
                </Border>
                <DataTemplate.Triggers>
                    <DataTrigger Binding="{Binding IsAvailable}" Value="False">
                        <Setter TargetName="CapabilityBorder" Property="Background" Value="{StaticResource TileErrorBrush}"/>
                        <Setter TargetName="CapabilityTextBlock" Property="Foreground" Value="{StaticResource TileErrorForegroundBrush}"/>
                    </DataTrigger>
                </DataTemplate.Triggers>
            </DataTemplate>
            <DataTemplate x:Key="Template2" DataType="{x:Type BusinessObjects:BindableCapability}">
                <Border x:Name="CapabilityBorder"
                              Background="{StaticResource GlobalHeaderBackgroundBrush}"
                              BorderBrush="{StaticResource TileBorderBrush}"
                              BorderThickness="1"
                              Margin="8"
                              Height="200"
                              Width="202">
                    <Grid>
                        <TextBlock x:Name="CapabilityTextBlock"
                                     Text="{Binding CapabilityIdentifierDescription}"
                                     Style="{StaticResource TileTitleTextStyle}"/>
                    </Grid>
                </Border>
                <DataTemplate.Triggers>
                    <DataTrigger Binding="{Binding IsAvailable}" Value="False">
                        <Setter TargetName="CapabilityBorder" Property="Background" Value="{StaticResource TileErrorBrush}"/>
                        <Setter TargetName="CapabilityTextBlock" Property="Foreground" Value="{StaticResource TileErrorForegroundBrush}"/>
                    </DataTrigger>
                </DataTemplate.Triggers>
            </DataTemplate>
    Like Temlate1 and Templdate2, I should have one more template which fills the color dynamically for the above templates. I've 12 tiles (rectangles), I need to give some blue, some yellow and some red depending upon some condition.
    Please suggest how I can achieve this?
    Thanks,
    Santosh

  • Changing the colour of frame window

    How can I change the colour of frame window and set some other colours?
    Rony

    Yes I did. I got this code by Rodney.
    JFrame.setDefaultLookAndFeelDecorated(true);
    UIManager.put("activeCaption", Color.RED);
    JFrame frame = new JFrame();It is a good one. But the extreme outer border still looks blue. Also, a window like icon is shown and some dots are shown near to minimize button. How to avoid these?
    Rony

  • Border colour of Free Text Annotaion

    Hi
    I'm using the SDK to Acrobat 9.1 pro, writing a plugin in c++. I wish to change the colour of the border of a free text annotation. I've tried a couple of techniques but they only result in changing the fill colour of the annotation:
    PDColorValueRec colourRed;
    memset(&colourRed, 0x00, sizeof(colourRed));
    colourRed.space = PDDeviceRGB;
    colourRed.value[0] = fixedOne;
    colourRed.value[1] = fixedZero;
    colourRed.value[2] = fixedZero;
    PDAnnotSetColor(annot, &colourRed);
    CosObj arrayObj, floatObj;
    arrayObj = CosNewArray(cDoc, false, 3);
    CosArrayPut(arrayObj, 0, CosNewFloat(cDoc, false, 1));
    CosArrayPut(arrayObj, 1, CosNewFloat(cDoc, false, 0));
    CosArrayPut(arrayObj, 2, CosNewFloat(cDoc, false, 0));
    CosDictPutKeyString(annot, "C", arrayObj);
    I've scanned the section in the PDF specification regarding annotation dictionaries, and it seems the C key only governs the colour of the border when the annotation is a Link annotation, and I can't find any other way of defining the border colour. Yet I can still change the colour of the border using Acrobat, which leads me to believe that it's done in a non-standard but nonetheless valid way. The BS (borderstyle) key defines the style of the border but maked no mention of the colour of the border.
    Am I trying to do the impossible?

    Thanks Irosenth, that worked for me. I was adding a DS key to style the rich text contents, but it seems I also need to specify the DA key in order to change the border colour. For those interested, the string "1 0 0 rg /Helv 12 Tf" gave me the plain red border I was after.
    Andrew.

  • Changing line colour of Webhelp

    hello again helpful peeps,
    Just trying to change the colour of some lines in the webhelp. I have succesfully changed one of the lines (see diagram below) using the brilliant "Skinny on Skins" help, but now also need to change the one above it. Is it possible?
    Thanks!

    you need to edit the output of webhelp,
    Go to the webhelp output folder and open the file whskin_mbars.htm in notepad.
    search for <body tag and add the following style
    style="border-top: 1px solid red;"
    in case you want to make the border top as red color or make it any color you want.
    thanks
    Praful

  • Setting selected border colour of a JToggleButton

    Hi
    I am wanting to be able to change the selected border colour of a JToggleButton. I have already been able to do a similar thing for changing the selected background colour for the JToggleButton by:
    button.setUI(new MyUI(Color.gray));
    class MyUI extends javax.swing.plaf.metal.MetalToggleButtonUI
    Color color;
    public MyUI(Color c){color = c;}
    public Color getSelectColor(){return color;}
    however I want the background colour of the toggle button to remain the same whether selected or not (so I'm not using this).
    I realise that I can use a MouseListener to do this (I have already done that to change the rollover border colour), but it is more of a pain for the selected border colour, so I was wondering if anyone knew of a similar way to change the selected border colour to the above method?
    Thanks

    your layerpane lives on top of a container. set the
    background of the container.
    here is a sample code. In the createAndShowGUI you
    can add a line,
    frame.setBackground(Color.white) ;
    http://java.sun.com/docs/books/tutorial/uiswing/compon
    ents/example-1dot4/LayeredPaneDemo2.javaThe program uses JLabels on different layers to display the colours, I would prefer not to use a large white JLabel as my background.
    I have tried to set my JFrame background colour using-
    frame.setBackground(Color.white) ;It will not work for me

  • Change the colour of events in iCal

    I need to change the colour of events/appointments in the Mac iCal.  I have imported all of my Outlook calendar via google sync and all my appointments are now just one colour.  I have my medical appointments coloured in orange so they stand out each week (I have many) and all my personal events a different colour, and my volunteer work a different colour so that I can see at a glance in week view what I am up to. Looking at one week with every appointment in one drab colour is not nice.
    I notice that different calendars are different colours, but I dont want separate calendars as I need to sync with google to share the calendar with Android phone and iPad.
    Please can you let me know how to turn this feature on.  Many thanks.

    Click calendars at the bottom of the page the click on the i symbol for info and then you can select the colour you'd like.

  • Change the colour of the outer line of a circle

    Hello everyone,
    I drew up a circle with no fill inside, to show where the location of my highway storm culvert will be.
    I changed the thickness of the outer line of my circle shape by creating a stroke effect at layer → blending options → stroke; then I changed the thickness of the line by right clicking in stroke at the layers panel and then choosing "scale effect."
    But the problem I have is that the outer line is gray, and I want it to be black.
    The outer line was originally red though so I changed my image → mode to grayscale, because I couldn't find a way to change the colour while keeping my image in RGB colour.  So I've managed to make the outer line gray by changing the image mode but I still can't change the colour of the outer line to black.
    I'm sure there must be other ways of changing the outer line colour without having to change the image mode, but I'm clueless.
    Here is my drawing:
    The text next to the circle says «Obra de desagüe». That's spanish for "drainage construction site."
    You see, I can't change the colour because I have no clue at where the "change colour option" is. I tried going to layer → layer properties, but in there there's only 7 colours to choose from. I chose a random colour, just to see what happens and what truly changed colour was the layer, within the layers panel; not the shape contained within the layer.
    So I'm lost here, any help please?
    Unfortunately I'm still not an expert in Photoshop just yet.
    Thank you for reading my post.

    Set shape layer opacity 100% Fill 0% to make fill transparent or add an empty layer make a circular selection stroke it black.

  • Best way to draw an asset if I want to change the colour of it?

    If I draw something manually, can I still change the colour by actionscript?
    I want to draw a cat, and the cat colour depends on the the user choice in the previous 'screen'.  How should I go about this?
    Thanks.

    Yes, there are a couple ways. You can use the ColorTransform class. Or you can use one of the Tweening engines - it's really easy to tint objects using TweenLite. You can even test in the demo at http://blog.greensock.com/tweenlite/
    Scroll down a bit to the demo... pick a color in the tint box and hit Tween.

  • How to make this image compatible as a laser cut file by changing stroke colour?

    My final aim with this image is to make it compatible as a laser cut raster engrave design, so the laser cutter will fill the black areas or white (either would be fine). If this is not possible then even as a laser cut outline would be suitable
    This is how the image will look when in Illustrator. however when I use the preview screen (ctrl+y) it creates an outline. This is how the laser cutter will read the image which is why it is very important the preview image is is what i would expect the final outcome to be.
    As a raster the laser cutter requires the stroke line to be blue r:0 g:0 B:255. Currently I cannot edit the colour, yet I can change the stroke weight. Also how I would I fill the engraved areas as a stroke? At the moment when I try converting the stroke to blue it turns grey.
    I am also unsure as to how I would make this feasible even to be cut out when I cannot change the stroke colour to red. This is required for laser cut designs as the laser cutter reads red lines to be cut.
    I can usually change stroke colours easily so I assume this is due to the fact that I have brought this file through from Photoshop so it is not yet fullu editable. I have used the live trace and live paint function in illustrator so far.
    Any help would be appreciated

    You need to expand the artwork and convert the strokes to genuine outlines to in turn be able to apply anotehr thin stroke to them again...
    Mylenium

  • How do I stop B/W photos changing to colour?

    I am running LR 2.7 on a Mac and this weekend for the first time, I set my camera to black & white mode and took a series of raw photos. When I imported them they all came across in the filmstrip as black & white but as soon as I started viewing them they changed to colour. I know the raw file contains all the colour data etc.  but I really wanted to work on the black & white image from the camera and not have to start from a colour image? What did I do wrong? How can I stop it changing in future when I shoot raw files?

    Lightroom knows little to nothing about your in-camera process settings. So, setting the camera to B&W and expecting the images to be correctly rendered is futile. The following post from the FAQ forum should help explain the reasons http://forums.adobe.com/thread/358016?tstart=0
    If you really want your images to appear as B&W in Lightroom you can apply one of the B&W develop presets during import.

  • How can i change the colour of the keys on my mac? is it possible to get them changed?

    i was looking at a macbook i was today and it's keys on the keyboard were in a rainbow formation, with different colours. Is there a way to bring mine in to change the colours of the keys? or did i have to order it like that?

    Ask the person who owned the computer or do a Google & Bing search. 

  • Is it possible to change the colour of the highlighted fields in a form? And if so how?

    Hi there,
    I would like to know how to change the highlighted fields that show up on a form once it has been designed and PDF'd. I know i can turn it on or off but i would like to just change the colour so it matches our styling of the company.
    Is there a way to do this and if so how??? If not thats fine i just need to know if there is a way.
    Thanks
    Jennah

    Hi,
    What do you mean by travel? Is that when it wont change all settings across the board? e.g another staff member with adobe acrobat wont have the same settings as i do?
    I am the only one creating the forms and using any adobe settings anyway so i guess it wont really matter that they dont have the same settings as i do but its not hard to change them on all pc's anyway.
    Thanks though.

Maybe you are looking for

  • How to place the PO no in VL10B

    Hi All, when i click on the PO number from  ALV display, thecall transation will direct to VL10B. my requiremnt is to place the PO number in VL10B which is there in the second tab automatically. please help me out to achieve this. thanks in advance s

  • Incorrect power injector

    I have purchased several AIR-LAP1242AG-E-K9 but had no POE switches so I needed power injectors; we ended up purchasing AIR-PWRINJ-FIB without noticing that they were also media converters. Is there any converter I can use to convert back to copper?

  • RFBIBL00 - File format

    Hi all, I would like to use standard program RFBIBL00 to perform journal postings. I have read a lot of documentation and discussions on it. However one thing I could not find is what the file format should be i.e. fixed length, coma-delimited, tab d

  • Inquiry about oracle Fusion Application(New Oracle ERP product) and ADF

    Please i want to know what the java technology oracle fusion application is developed by,java ADF or another?! and about ADF ?how i can build my approval process for specific transaction ?!is it any tools for that integrated with ADF ?! Thanks in adv

  • Itunes can not start! InpageError! HELP

    Today when I started my PC, and opened iTunes. Suddenly, it shows a windows, says; "iTunesHelper Module needs to be closed" When I clicked to close, then the whole iTunes crashed--It doesnot start anymore. Then I uninstalled iTunes, and re-installed