Color of a frame

Dear fellows,
I want to change the color of a frame programmatically. How can i do it?
Is it possible to change the background color of your frame through code? If yes then how? I am using forms 6i.
Please help.
Mirza Imran Baig

Hi,
Basically, the way to change a color programmatically is to use one of the SET_..._PROPERTY commands.
Parameters are <element ID>, <property name> and <value>.
<element ID> is text (the name of the element) or ID (which you can get with a FIND_... command, depending on the object).
<property name> is like BACKGROUND_COLOR, ...
<value> has to be of RGB type, but it seems that the values are not in percent, but from 0 to 256 !!
i.e. White color is r256g256b256 if you set it programmatically, but it's r100g100b100 if you set it directly into an object property. Dunno why.
Exemple to change the background color of a visual attribute:
declare
attribute_id Visualattribute;
begin
attribute_id := Find_VA('myVisualAttribute');
set_va_property(attribute_id, background_color, 'r0g256b0');
end;
Hope it helps...

Similar Messages

  • I would like to change my back ground color in one frame for a logo that i am using I am able to change it on the canvas but not on the timeline?

    I would like to change my back ground color in one frame for a logo that i am using I am able to change it on the canvas but not on the timeline?

    Are you using FCPX? It doesn't have a canvas. Do you really mean one frame, like 1/30th of a second? Add a custom generator underneath the logo. Make it whatever color you want. Make it however short you want.

  • Delete color from multiple frames

    I have an animation upwards of 250 frames. Each frame has a green background that I would like to make transparent.
    (The images are computer generated with no anti-aliasing; in other words, edge blending is not an issue)
    I know how to remove a color on a single frame, with the color selection tool, but I'd have to re-select the color for each frame, which is an option I'd obviously like to avoid.
    Is there any way to remove the background color on every layer at once?

    BTW, just in case this is relevent (it probably is), I'm using Adobe Photoshop CS6.

  • Background Color When Adding Frames - PSE8 or PSE9

    When adding a frame to an image, the background color that is outside of the new frame, and which borders it, always comes up white for me.  Can that area be made to come up another color, and if so, how?  Thanks!

    Hi,  I understand that, but what I really want to do, and perhaps I didn't express myself clearly, is select a background color other than white and have it come up as the default color until such time as it's changed.  Thanks!
    Date: Thu, 10 Mar 2011 06:43:04 -0700
    From: [email protected]
    To: [email protected]
    Subject: Background Color When Adding Frames - PSE8 or PSE9
    For the background, you can either choose any background from the content panel or
    choose any color from the color palette
    select Paint bucket tool
    Click on a New layer icon in the layer's panel with Control/Command pressed.
    Click on the white area around the frame.
    the area is filled with the color selected.
    >

  • DefaultLookAndFeel is giving blue color border and frame is visible

    Hello,
    When i am running my application with DefaultLookAndFeel,i am getting my screen with blue color border and Frame is visible.According to my requirement that blue color border and frame should not be visible.This problem is not there when i am giving my own LookAndFeel.So,please give me the solution for this.

    This is my code. And i don't want external border which is not visible on maximized.
    please respond to this.....
    thanks...
    import java.awt.BorderLayout;
    import java.awt.Container;
    import java.awt.Dimension;
    import javax.swing.JButton;
    import javax.swing.JFrame;
    import javax.swing.JLabel;
    public class BorderLayoutDemo {
        public static boolean RIGHT_TO_LEFT = false;
        public static void addComponentsToPane(Container contentPane) {
    //         Use BorderLayout. Default empty constructor with no horizontal and vertical
    //         gaps
             contentPane.setLayout(new BorderLayout(5,5));     
            if (!(contentPane.getLayout() instanceof BorderLayout)) {
                contentPane.add(new JLabel("Container doesn't use BorderLayout!"));
                return;
            if (RIGHT_TO_LEFT) {
                contentPane.setComponentOrientation(
                    java.awt.ComponentOrientation.RIGHT_TO_LEFT);
            JButton jbnSampleButtons = new JButton("Button 1 (PAGE_START)");
            contentPane.add(jbnSampleButtons, BorderLayout.PAGE_START);
            jbnSampleButtons = new JButton("Button 2 (CENTER)");
            jbnSampleButtons.setPreferredSize(new Dimension(200, 100));
            contentPane.add(jbnSampleButtons, BorderLayout.CENTER);
            jbnSampleButtons = new JButton("Button 3 (LINE_START)");
            contentPane.add(jbnSampleButtons, BorderLayout.LINE_START);
            jbnSampleButtons = new JButton("Long-Named Button 4 (PAGE_END)");
            contentPane.add(jbnSampleButtons, BorderLayout.PAGE_END);
            jbnSampleButtons = new JButton("5 (LINE_END)");
            contentPane.add(jbnSampleButtons, BorderLayout.LINE_END);
        private static void createAndShowGUI() {
            JFrame.setDefaultLookAndFeelDecorated(true);
            JFrame frame = new JFrame("BorderLayout Source Demo");
            //frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
            //Set up the content pane and add swing components to it
            addComponentsToPane(frame.getContentPane());
            frame.pack();
            frame.setVisible(true);
        public static void main(String[] args) {
            javax.swing.SwingUtilities.invokeLater(new Runnable() {
                public void run() {
                    createAndShowGUI();
    }

  • Color Corrector's Frame Viewer Split Not Showing Up On External Monitor

    Kind've a long title - sorry - but . . . here's my question:
    Why am I not able to see the Frame Viewer's split on my external monitor?
    A further, more detailed explanation of the problem:
    I recently purchased Ripple Training's Color Correction with Andrew Balis. It's very, very imformative and I think will help a lot when it comes time to begin color correcting the feature I'm working on. The section I'm on shows the Frame Viewer tab in the Tool Bench window that presents itself when one opens Color Correction under the Arrange area. In other words, Arrange>Color Correction sets up your windows for color correcting with your Viewer, Canvas, and Tool Bench windows aligned from left to right. When one opens up the 3 Way Color Corrector on a clip and makes a change in the clip, the Frame Viewer tab in the Tool Bench window will show a split screen where on one side you'll have your clip with the color correction you just did, and the other side un-color corrected. Isn't this (split) image supposed to show up in your external monitor just as the images in the Canvas and the Viewer?
    That doesn't seem to be happening on my external monitor.
    I'm not sure if this problem/issue I'm having is related to the muticlipl issue I posted in an earlier thread http://discussions.apple.com/thread.jspa?threadID=1330596&tstart=0
    perhaps.
    Any help on this issue would be greatly appreciated.
    Thanks in advance,
    Javier Calderon

    Ahhh, Shane. So it's as simple as that? So then there's nothing wrong with my setup or my external monitor? FCP's just not designed to show the Tool Bench's Frame Viewer image in your external monitor? Wow . . . Well that answers that then I guess. And you're right . . . that IS indeed kind've lame . . .
    Thanks.
    Javier
    . . . um . . . doesn't that kind've defeat the purpose of proper color correction then (regarding the Tool Bench's Frame Viewer anyway)? If the only place you can see your color corrected Frame Viewer split images is on a monitor that's NOT suited for color correction? Anyway . . . just a thought . . .

  • Uneven color between background text frame and underlying frame fill

    Hi. I'm using InDesign CS3 on Windows XP.
    On my document, the main heading is in a frame with a fill of 'None'. The heading text has a bevel and emboss. The text frame sits on a background A4 frame which is filled with a Pantone spot colour.
    When I print the cover page, the color filling the text frame is slightly different from the background Pantone color, even though the text frame has no color fill.
    When I checked the document before printing in View>Overprint Preview, it appeared to be fine. The PDF also looked fine. In both situations, I could not discern a color difference but it is there in the printed document.
    To provide a color behind the text which matches the fill color of the frame occupying the whole page, what should I do? My gut feel is to select the background frame and the text frame and check the knockout box on the effects panel or something like that.
    I hope I have explained sufficiently clearly the problem I am experiencing.
    Look forward to hearing your suggestions.
    Thanks
    Frank

    http://indesignsecrets.com/eliminating-ydb-yucky-discolored-box-syndrome.php

  • When trying to frame a text box, I can't figure out how to color the frame.

    When trying to frame a text box, I can't figure out to change the color of the frame.

    Could you please tell us what software you are using?

  • Can you change the frame colors in the .chm file?

    In RoboHelp 8, HTML Help Output with .chm deliverable, is it possible to change the color of the frame borders?

    Hi there
    I'd say it depends on what you are referring to. Some influence is there but not much. Which "Frame" is it? Can you post a screen capture pointing out what you hope to change?
    Cheers... Rick
    Begin learning RoboHelp HTML 7 within the day - $24.95!
    Click here for Adobe Certified Captivate and RoboHelp HTML Training
    Click here for the SorcerStone Blog
    Click here for RoboHelp and Captivate eBooks

  • Problem in Resetting the Frame Color to default

    Hi Gurus,
    When I was working with Frames, in property pallette, mistakenly I selected a color for the Frame background. Before that it was "<Unspecified>".
    Now I want to set the Color of the Frame to Default.
    Can anyone help me on this regard, because it is not allowing me to leave that property as blank. Also I tried with automatic. the bg color changes to black.
    Please provide me a solution on this regard.

    Hi,
    Awesome. I tried this is Forms 6i. it worked. I will try in 9i also and confirm.
    Thanks a lot for your quick response.
    Thanks and Regards,
    Basskey.

  • I want to know the exactly when the Kinect gives depth frame and color frame in a period of one frame

    Hi, I'm currently using Kinect for Windows v2 to get a blurry sequence of color frames as well as corresponding depth frames. 
    It seems to me that the depth frame is acquired after the exposure time of the color frame. I am using the sample in the CoordinateMappingBasic to acquire the depth frame and the color frame at the same time. 
    But as i've found out by the aligned depth map with color frame, i think Kinect gives depth frame at the end of the exposure time of color frame. I've tried to obtain timestamps by calling a function iColorFrame->get_relative_time, and for the same number
    the timestamps show that depth frame is acquired prior to color frame, which opposes what i said above.. 
    Is there some way that i can know the exact time the Kinect gives depth frame and color frame in a period of one frame.
    Thank you in advance.

    Depth is generated based on IR information so when you acquire the frame, that is when it was created. Using the Multisource Frame Reader(MSFR) this does a lot under the covers to align the color and depth frame. If you want to do your own synchronizing,
    you can use a polling thread to acquire depth on one and color on the other and do your own mechanism that is similar to MSFR. You will never get Color and Depth to align exactly on a particular timestamp. Since color is its own camera, the only thing
    you can be assured of is when the color frame is acquired, the runtime will give you the closest depth frame that will align to it.
    Carmine Sirignano - MSFT

  • Frame Background color?

    Hello
    How can i change the background color of a frame? Because this wont work and i dont know what i have made wrong. So , please take a look.
    Heres my code:
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    public class Main {
    private static void createAndShowGUI() {
            //Create and set up the window.
            JFrame frame = new JFrame("Game");
            frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
            frame.setDefaultLookAndFeelDecorated(true);
            //Display the window.
            frame.pack();
            frame.setBackground(Color.BLACK);
            frame.setVisible(true);
            frame.setSize(800, 576); //x 32 * 25 y= 18
            frame.setLayout(null);
            frame.setResizable(false);
    public static void main(String args[]) {
    javax.swing.SwingUtilities.invokeLater(new Runnable() {
                public void run() {
                    createAndShowGUI();
    }Thanks
    /javaguy387

    write this
    Container con=frame.getContentPane();
    con.setBackground(Color.black);

  • Change colors of frames

    When using Artwork Frames, how can you change the color of the frame?

    Click on the Layer Styles icon on the layer thumbnail in the layers palette.
    That will bring up a box, which lets you edit several things, the color
    being one of them.
    Juergen

  • Change frame's border color in JFrame

    How can I change border color of frame?
    I mean a border that contains title of frame.
    Thanks.

    You can do this, although I think the outcome is terrible:
    JFrame.setDefaultLookAndFeelDecorated(true);
    UIManager.put("activeCaption", Color.RED);
    JFrame frame = new JFrame();

  • Adding color to a picture frame

    I am brand new to Macs, and I have been checking out iworks. I am working on a blank page layout. I have added text boxes, and a photo from my gallery. I want to frame the photo, and have figured out how, using the inspector. What I can't figure out how to do is how to add color to the frame. Can anyone help me out?

    Hi Farmer Matt
    Welcome to the forum.
    fruhulda has shown how to change the color of simple strokes, however there are some frames you can not color change. Only "line" strokes can be changed, pdf files, jpegs, Photoshop and Pages' Picture Frames can not be changed.
    Check whether the frame/stroke you have in your file is a graphic or not by selecting it:
    +Inspector > Metrics > File Info+
    Peter

Maybe you are looking for