How to erase background in a customize control

Hello,
Does anyone know how to modified a date and time indicators to show just the letters and numbers on top of a picture and not the indicator´s background
see picture
Solved!
Go to Solution.
Attachments:
hora.jpg ‏64 KB

Pick the time stamp indicator from the Classic palette.  Then paint the background and the border transparent.

Similar Messages

  • How to get background color of controls ?

    Hello everyone.
    How to get background color of controls ?
    When we use AWT/Swing,
    we can get background color of component by using Component.getBackground()
    It is regret that I can not find any method for such a method in JavaFX.
    And how do we detect the change of background color of controls ?
    Best regards.

    Hi Tadashi,
    try this.
    @Override
    public void start(final Stage primaryStage) {
        primaryStage.setTitle("Test ChangeListener");
        Button btn = new Button();
        btn.setText("change background");
        btn.setOnAction(new EventHandler<ActionEvent>() {
            @Override
            public void handle(ActionEvent event) {
                primaryStage.getScene().setFill(Color.rgb(
                        (int)(Math.random() * 255),
                        (int)(Math.random() * 255),
                        (int)(Math.random() * 255)));
        StackPane root = new StackPane();
        root.getChildren().add(btn);
        primaryStage.setScene(new Scene(root, 300, 250));
        primaryStage.getScene().fillProperty().addListener(new ChangeListener<Paint>() {
            @Override
            public void changed(ObservableValue<? extends Paint> arg0, Paint arg1, Paint arg2) {
                System.out.println(
                        "old color: " + arg1.toString()
                        + ", new color: " + arg2.toString());
        btn.getOnAction().handle(null);
        primaryStage.show();
    }Peter

  • How to change the background of the StackPanel control when any child element has focus?

    Hello folks!
    I need to change the background of the StackPanel control when any element within the StackPanel has focus. I am executing the code snippet below. The code works fine with elements within the Grid control named "main". It doesn't work when I focus
    an element within the Grid control named "header".
    <StackPanel x:Name="techReportStackPanel" Width="250" Background="{Binding ColorBrush}" >
    <StackPanel.Style>
    <Style TargetType="{x:Type StackPanel}">
    <Style.Triggers>
    <DataTrigger Binding="{Binding ElementName=techReportStackPanel, Path=IsKeyboardFocusWithin}" Value="True">
    <Setter Property="Background" Value="Gray" />
    <Setter Property="Opacity" Value=".5" />
    </DataTrigger>
    </Style.Triggers>
    </Style>
    </StackPanel.Style>
    <Grid x:Name="header">
    <TextBlock x:Name="headerColumn" Text="{Binding Name}" Style="{StaticResource ColumHeader}"/>
    <Button Visibility="{Binding ElementName=headerColumn, Path=Text, Converter={StaticResource delButtonVisibilityConverter}}" Command="{Binding DelCommand}" Content="x" ToolTip="{l:Translate TechReportDeleteToolTip}"/>
    </Grid>
    <Grid x:Name="main">
    <Grid.ColumnDefinitions>
    <ColumnDefinition Width="*" />
    <ColumnDefinition Width="*" />
    </Grid.ColumnDefinitions>
    <wpftoolkit:WatermarkTextBox Grid.Column="0" Style="{StaticResource OrdinaryTextbox}" Watermark="{l:Translate LengthLabel}" ToolTip="{l:Translate BoreholeSpacingInRow}" Text="{Binding BoreholeSpacingInRow, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged, StringFormat=F2, Converter={StaticResource zeroToEmptyDoubleConverter}}" />
    <wpftoolkit:WatermarkTextBox Grid.Column="1" Style="{StaticResource OrdinaryTextbox}" Watermark="{l:Translate WidthLabel}" ToolTip="{l:Translate BoreholeSpacingBetweenRow}" Text="{Binding BoreholeSpacingBetweenRow, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged, StringFormat=F2, Converter={StaticResource zeroToEmptyDoubleConverter}}" />
    </Grid>
    </StackPanel>
    Any advice and suggestions will be greatly appreciated!

    >>It doesn't work when I focus an element within the Grid control named "header".
    You mean when the Button in the "header" Grid is focused? A TextBlock is not focusable so when the Button is not visible no element in the "header" Grid will be focused since you only have two elements in the "header" Grid.
    But when the Button is visible it should work. Please refer to the following code:
    <StackPanel x:Name="techReportStackPanel" Width="250" Background="{Binding ColorBrush}" >
    <StackPanel.Style>
    <Style TargetType="{x:Type StackPanel}">
    <Style.Triggers>
    <DataTrigger Binding="{Binding ElementName=techReportStackPanel, Path=IsKeyboardFocusWithin}" Value="True">
    <Setter Property="Background" Value="Gray" />
    <Setter Property="Opacity" Value=".5" />
    </DataTrigger>
    </Style.Triggers>
    </Style>
    </StackPanel.Style>
    <Grid x:Name="header">
    <TextBlock Text="text..."/>
    <Button Visibility="Visible" Content="Button" />
    </Grid>
    <Grid x:Name="main">
    <Grid.ColumnDefinitions>
    <ColumnDefinition Width="*" />
    <ColumnDefinition Width="*" />
    </Grid.ColumnDefinitions>
    <TextBox Grid.Column="0">main grid...</TextBox>
    <TextBox Grid.Column="1">main grid...</TextBox>
    </Grid>
    </StackPanel>
    When the Button is focused the Background colour of the StackPanel is set to Gray as expected.
    If you want to be able to focus the TextBlock you should set its Focusable property to true:
    <Grid x:Name="header">
    <TextBlock Focusable="True" x:Name="headerColumn" Text="{Binding Name}" Style="{StaticResource ColumHeader}"/>
    <Button Visibility="{Binding ElementName=headerColumn, Path=Text, Converter={StaticResource delButtonVisibilityConverter}}" Command="{Binding DelCommand}" Content="x" ToolTip="{l:Translate TechReportDeleteToolTip}"/>
    </Grid>
    Hpoe that helps.
    Please remember to close your threads by marking helpful posts as answer and then start a new thread if you have a new question. Please don't ask several questions in the same thread.

  • How to Use an Image to Customize the Static Button Widget

    Can I just get someone to help me figure out how to use an image to customize the static button widget, please?
    I have tried using several different types of images, but none of them seem to actually change the appearance of the button.
    Thanks!
    Laura
    Captivate 5.5

    I tried to use the tools within the widget itself - it offers you the opportunity to use an image (see screenshot below).
    I also opened it in Flash and tried to replace the images for one of the button styles there w/ my own, but in re-publishing the SWF from there I broke the widget.  When I attempted to use the edited widget, there were no customization controls available after I inserted it (see screenshot two below).

  • How to make table that will include controls such as drop list?

    How to make table that will include controls such as drop list?
    I need to create table as Property Browser of ActiveX, that include rows with differnt types such as drop list, color, ...

    Hi Nadav,
    I figured out where I missed your point. When you wrote
    table as Property Browser of ActiveX, that include rows with differnt types such as drop list, color, ...
    I was thinking mixed data-types in a [2d] table!
    Looking at the property browser again it looks like no single LV function can do all of that. It can be developed as a pop-up (like the browser is set-up) and then code all of the elegance using an event structure to control the background color of a string indicator while controling the visability of rings that are only made visable when a mouse down is detected. That will get you pretty close.
    So no, my previous response ws not correct for what you are trying to do if you want to duplicate all of the wistles and bells of the property browser pop-up window.
    Please forgive my distraction.
    Ben 
    Ben Rayner
    I am currently active on.. MainStream Preppers
    Rayner's Ridge is under construction

  • How to add external images onto a control and still be able to resize

    Hello,
    I'm a LabVIEW newbie.  I'm trying to customize the appearance of my VIs, and one of the things I like to do is to import external image and paste it onto the faceplate of the gauge indicator.  I've followed the instruction in the Labview application note using the control editor and was able to paste the picture into indicator.  But when I use it in the front panel and resize the gauge indicator, the image (added as a decoration) doesn't resize together with the indicator.  My questions are:
    1. How to add external images onto a control/indicator and still be able to resize the image automatically when I resize the control/indicator?
    2. How to "add" a new part to an existing control/indicator?  It looks like I can only customize/modify the existing parts of the control/indicator in the control editor. 
    Any help is appreciated.  Thanks.

    1/ Do not use the image as an added decoration. Instead replace part of the control with the image. Tis is illustrated in the attached vi : the arrow was pasted as a decoration, and also used to replace the slide cursor. Changing the control size do not affect the decoration, but changes the cursor.
    2/ What do you mean by adding new parts to a control. We have just seen that it was possible to modify a control. Now, if you want to include additionnal functionnality, that's another story. You can replace parts of the control, and this can give interesting results.  You can edit a slide control, and replace the numeric indicator by another control, including a numeric indicator, that you can replace with etc...
    But there, it still the same info displayed under different forms. If you want to have several independant functions on the same control, such as a string display and a boolean and a numeric indicator, then that's a job for a cluster...
    Chilly Charly    (aka CC)
             E-List Master - Kudos glutton - Press the yellow button on the left...        
    Attachments:
    Slide with Arrow.vi ‏13 KB

  • How to remove background colours in photoshop?

    Hello everyone....I'm only just learning how to use the content-aware tool in photoshop cs5. This image had a picture of a girl in it, but I think I've been able to erase her using the content-aware tool, though you can still see a slight shadow. There is also a small area of red between the subject's chin and the top of his left arm. Can you please teach me how to erase the shadow as well as the small red area? I tried using the content-aware tool for that, but for some reason it didn't work. Thanks so much

    Hello there..Thanks for your help. I've tried doing it both ways and I've actually managed to do it - shock! - but I think it was a
    fluke because I can't do it again. The obstacle is how to change the background colour. I don't know quite how to do that. Could you please give me a step by step guide on what to do once i've selected the area with the lasoo tool? i know that i have to click on one of those two boxes at the bottom of the tools palette - set background or foreground colour - but i'm lost once the colour palette appears on the screen. thanks again!

  • How to ERASE a rasterized image? Erasing tool doesn't work

    Hi there. I have one problem. I don't know why I can't deleting/erasing my imported image. When I select that tool it can't do anything. I show this on film below. What is it? Can you help me? How to erase images?

    I agree with the previous 2 posters that Photoshop has the best controls for editing bitmapped images.
    If you wanted something crude and fast in illustratror
    draw using the blob brush a shape to use to erase your imaeg
    Select image and your shape
    In transparency palette click on make mask,  Since I used black ink I had to take unchecked clip.

  • Row background color in dataTable control based on criteria

    It is relatively straightforward to give a pattern of color to rows in a dataTable control, for instance to alternate colors from white to gray.
    However, I have not yet figured how the row background color could be decided based on data fields associated with each row. For instance, I would like to set the row background color based on the value of a boolean attribute associated with the row, e.g. white if value is false and gray if it is true.
    Is there an easy way to do this?
    Martin

    of the text, but not the whole cell. I need to find a
    way to change the span at the row level (on the <tr>
    tag). ANy ways to do this?
    MartinThis is a question of how to let the renderer adjust its behaviour depending on the current state of the model. My renderer changes the background for the selected row by changing the style class:
            writer.startElement("tr", table);
              if (table.getRowSelector())
                   if (table.isAtSelectedRow())
                        writer.writeAttribute("class", "selectedRow", null);
    etc.(of course, to be able to do this you must write your own renderer)
    erik

  • How to erase hardrive during reboot to restore to factory settings?

    How to erase hardrive during reboot to restore to factory settings?

    I was told to hold down Control R while rebooting, which I did, and then once I'm in disk utility thats where I will erase the hard drive.  The problem is I dont know what I'm really looking at once I get there.  I actually see what looks like 2 hard drives.   one labeld:  500.11 GB ST3500418A and one right below it named Macintosh HD, which one do I select to erase or should I do both?

  • Reg:How to delete the column in table control also from database table.

    Hi Experts,
    Once again thank u all for giving the responses.
    one more doubt is how to delete the columns of table control and also the record shold delete from ztable.
    With Regards,
    Saroja.P.

    Hi,
    If you want to delete the rows in the table control and simultaneously delete it from the database table, then you can implement a 'DELETE' functionality specific to your table control. Have a MARK field (you will find that in the screen attributes of the table control -> give a name for the MARK field, you will find an additional MARK column at the beginning of your table control). You can check whatever rows you want to delete from the table control, call the delete module.
    "This portion of code inside the LOOP...ENDLOOP.
    IF sy-ucomm eq 'F_DELETE'.
       gt_itab2-check = mark.  " Store the MARK field status into your internal table's correspoding field 'check'
      MODIFY gt_itab INDEX tabcontrol-current_line.
    ENDIF.
    iF sy-ucomm eq 'DELETE1'.
      DELETE gt_itab WHERE check eq 'X'. "Your internal table does not have rows that you want to delete
    ENDIF.
    Now you can modify your database table using the MODIFY statement.
    MODIFY ZDB FROM TABLE gt_itab.

  • How to allow multiple domains under Access-Control-Allow-Origin

    Hi,
    We have a domain where will get CORS request from another domain hosted on seperate DC. We can't set
    Access-Control-Allow-Origin as * due to security concerns & IIS can't take more than 1 value at a time. Kindly suggest how to pass multiple httpheader  for
    Access-Control-Allow-Origin.
    Regards,
    Dhiraj

    Hello Dhiraj,
    This is not the suitable forum for your question, you may post in
    IIS forums for more help.
    Thanks for your understanding.
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • How to erase all data on macbook pro and reinstall operating system

    how to erase all data on macbook pro and reinstall operating system

    OS X Snow Leopard
    https://support.apple.com/en-us/HT3910
    http://www.thesafemac.com/how-to-reinstall-mac-os-x-from-scratch/
    OS X Yosemite
    https://support.apple.com/kb/PH18869?locale=en_US&viewlocale=en_US
    Best.

  • How do I set up different hardware controls for different patches in mainstage?

    I'm using Mainstage 3.0.4 and a Novation Impulse.
    I created a concert, with the drawbar organ as my first and most important patch. I assigned the hardware controls on the Novation exactly how I wanted them, with the sliders controlling the drawbars, and the rotary controls changing the distortion, reverb, etc. It was perfect. I was happy.
    Then I added a new instrument (a new patch, not a new channel or anything like that), a Wurlitzer. Once again I assigned my hardware controllers as I wanted them, and was happy with that.
    When I saved the concert, and went back to my organ patch, my settings didn't stay the same, but they still work for the Wurli.
    My question is this - do I have to have a new concert for each instrument patch I want to use, if I need to assign different controllers for each patch? This would be stupid! If not, what I am doing wrong, that I can only set up one set of hardware controls per concert, instead of per patch?
    Thank you in advance for the help!!!

    Hi
    matthewabennett wrote:
    CCTM, thank you! I have a small idea what you mean, but I still can't implement it :-)
    You have some fundamental choices:
    A) If you want to see Drawbar Controls for organ Patches, and then have other types ( knobs/sliders etc) for other Patches, you could simply make all the screen controls you need, then assign and map them as required.
    B) you could simply use drawbar screen controls only and remap them to other parameters for non-organ patches
    C) You could use Smart Controls ( which will update their appearance in a 'smart' way
    D) You could make your own Drawbar type controls using standard faders
    The basic process in a 2 part thing:
    Assign incoming MIDI messages from your controller to Screen Controls in Layout mode. This is global for concert. Per patch ( or Set or globally for the Concert) you then map the Screen Controls to parameters for each patch as needed.
    Smart Control MIDI assignment is done in the Assignments and Mappings pane
    CCT

  • How to add a column in table control

    Hi ,
       Can any one tell me how to add a column in table control? My requirement is to add two columns ( custom fields ) into table control ( It is a standard program). I have added the column in the table and also in the table control. But when I am running the standard program, The newly added column is not there. But I have added in the perticular screen. Change is not reflected.
       Can anyone help me on this please.
    Thanks in advance.
    Regards,
    Lakshmi.

    Hi,
    Ensure the following :
    1. After adjusting the database, you`ll have to use the database utility and activate the table.
    2. If you have changed the standard screen, in tcode se80 -- right click on the program and click activate all. This activates all objects related to that program.
    Now execute the program.
    Reward if helpful.
    Regards

Maybe you are looking for

  • My safari wont open it keeps saying it quit unexpectedly

    My safari wont open. when i press the icon a message pops up and says it quit unexpectedly. we keep pressing the icon and the message keeps popping up. weve tried everything. also we just got it back from apple, they've replaced our hardware but all

  • Need help with sync

    How do I set up 2 different ipads in itunes?

  • Wait function waiting double the normal time

    When using either the "Wait (ms)" or "Wait Until Next ms Multiple" functions on most machines with the interval set to 1 ms, the function actually waits 2 ms. However, when using our simulator system (which was set up by my predessessor), both functi

  • Iphone cant recognize router, HELP!!!

    I have a Wireless G Broadband router, the model number is wrt54g2. I also have iPhone 3G. I never had problems with my iPhone and I was always able to connect to wifi until today. For some reason my iphone wont recognize my router, it tells me "CANT

  • Hostname not recognized

    Ever since doing a system upgrade and rebooting a few hours ago, my hostname has mysteriously changed at the command prompt.  I made no system changes, only did an upgrade and reboot.  I've never had this issue before. The prompt should display: user