Reports 3: setting background colour.

Using Reports 3 how do I set the background colour for the
margin? I do mean the margin and not the objects in the margin
(they're easy).
Thanks for any help.
null

"katychapman85" <[email protected]> wrote in
message
news:g6svqs$eli$[email protected]..
> I'm retrieving different colours from a database and I
want to set the
> background colour of a canvas to the colour retrieved.
I've tried doing
> the
> following:
>
> <mx:TileList
> x="2" y="237"
> direction="horizontal"
> dataProvider="{MakeUpColours.lastResult.Colour}"
> backgroundColor="#FFFFFF"
> width="288" height="167.04999"
> themeColor="#FFFFFF">
>
> <mx:itemRenderer>
> <mx:Component>
> <mx:Canvas width="35" height="35">
> <mx:Canvas width="30" height="30" x="5" y="5"
> backgroundColor="{data.ColourNo}">
> <mx:Image
> source="
http://localhost/Flex/Personalised%20Palettes-debug/{data.@PictureSrc}"/
>>
> <mx:Label text="{data.@ColourNo}"/>
> </mx:Canvas>
> </mx:Canvas>
> </mx:Component>
> </mx:itemRenderer>
> </mx:TileList>
You're referring to both data.@ColourNo and data.ColourNo. Is
it an
attribute or an element?

Similar Messages

  • Unable to set background colour JTableHeader in Java 1.6_18

    We're moving our application from Java 1.4.2 to 1.6_18, so far without major problems but there's some small issues with the GUI. Originally we'd change the background colour of the JTableHeader, but in 1.6_18 that doesn't seem to work. Instead of colouring the complete header it just seems to draw an outline. It kind of gives the impression that there's something on top of the table header which hides the coloured background.
    The code below shows what I'm trying to do, and gives different results when compiled in Java 1.4.2 and Java 1.6_18. It makes no difference whether I'm using the UIManager or setting the background directly on the JTableHeader.
    The application still works fine of course, but it bugs me that I can't work out what the problem is, so any suggestions would be greatly appreciated! I've already had a look at bug [6521138|http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6521138], but it makes no difference whether a new JTableHeader is set, so I think it's different. Also, the workaround for bug [4776303|http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4776303] has no effect so I think that doesn't apply either.
        public static void main(String[] args) {
            try {
                UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());
                // Doesn't give the expected result in Java 1.6_18, the background remains white-ish with only a coloured border.
                // UIManager.put("TableHeader.background", Color.GREEN);
                // UIManager.put("TableHeader.foreground", Color.BLUE);
            } catch (Exception exception) {
                exception.printStackTrace();
            final JFrame frame = new JFrame();
            frame.getContentPane().add(createPanel());
            frame.getContentPane().setLayout(new FlowLayout());
            frame.setDefaultCloseOperation(WindowConstants.DISPOSE_ON_CLOSE);
            frame.pack();
            frame.setVisible(true);
        private static JPanel createPanel() {
            final JPanel panel = new JPanel();
            final DefaultTableModel model = new DefaultTableModel(3, 2);
            final JTable table = new JTable(model);
            // Tableheaders.
            final TableColumnModel columnModel = table.getColumnModel();
            columnModel.getColumn(0).setHeaderValue("First");
            columnModel.getColumn(1).setHeaderValue("Second");
            // Doesn't give the expected result in Java 1.6_18, the background remains white-ish with only a coloured border.
            table.getTableHeader().setBackground(Color.GREEN);
            table.getTableHeader().setForeground(Color.BLUE);
            final JScrollPane scrollPane = new JScrollPane(table);
            panel.add(scrollPane);
            scrollPane.setSize(400, 100);
            panel.setSize(500, 500);
            panel.setPreferredSize(panel.getSize());
            return panel;

    Hillster wrote:
    Ah yes, when I change that setting the background of the table header indeed gets the expected background colour. Unfortunately it also makes my desktop look hopelessly outdated :-( And I can't really expect my end-customers to change their settings just to run my little application. Still, I suppose this proves that the problem lies in the L&F?Seconded Jeanette's sentiment, this is definitely a feature, not a problem. You want system LaF, you get System LaF, with all the bells and whistles. If you're sure you don't want the system embellishments, you could consider using my [_default table header cell renderer_|http://tips4java.wordpress.com/2009/02/27/default-table-header-cell-renderer/].
    db

  • Setting background colour to transparent?

    Why does cropping a photo leave a green background instead of being transparent? I'm fairly new at using the Photo Elements 10, I had v.7 which I could select "reverse" and delete background, then copy and paste into a new picture. However, the "copy" has a feathered edge and when I flatten the image then try to re-size/crop image, the background of the copy is still dark green??
    I can't remember how to set the background colour to "clear" not coloured nor feathered .... Please help.
    Thanks in advance for your help.
    Leona Buckner

    Double click the background layer to turn it to a regular layer before you start. If you delete on a background layer, the empty space fills with the chosen background color.

  • Setting Background Colour with a Value Retrieved from a Database

    I'm retrieving different colours from a database and I want
    to set the background colour of a canvas to the colour retrieved.
    I've tried doing the following:
    <mx:TileList
    x="2" y="237"
    direction="horizontal"
    dataProvider="{MakeUpColours.lastResult.Colour}"
    backgroundColor="#FFFFFF"
    width="288" height="167.04999"
    themeColor="#FFFFFF">
    <mx:itemRenderer>
    <mx:Component>
    <mx:Canvas width="35" height="35">
    <mx:Canvas width="30" height="30" x="5" y="5"
    backgroundColor="{data.ColourNo}">
    <mx:Image source="
    http://localhost/Flex/Personalised%20Palettes-debug/{data.@PictureSrc}"/>
    <mx:Label text="{data.@ColourNo}"/>
    </mx:Canvas>
    </mx:Canvas>
    </mx:Component>
    </mx:itemRenderer>
    </mx:TileList>
    But it just makes the background colour black. Any
    suggestions?
    Thanks
    Katy

    "katychapman85" <[email protected]> wrote in
    message
    news:g6svqs$eli$[email protected]..
    > I'm retrieving different colours from a database and I
    want to set the
    > background colour of a canvas to the colour retrieved.
    I've tried doing
    > the
    > following:
    >
    > <mx:TileList
    > x="2" y="237"
    > direction="horizontal"
    > dataProvider="{MakeUpColours.lastResult.Colour}"
    > backgroundColor="#FFFFFF"
    > width="288" height="167.04999"
    > themeColor="#FFFFFF">
    >
    > <mx:itemRenderer>
    > <mx:Component>
    > <mx:Canvas width="35" height="35">
    > <mx:Canvas width="30" height="30" x="5" y="5"
    > backgroundColor="{data.ColourNo}">
    > <mx:Image
    > source="
    http://localhost/Flex/Personalised%20Palettes-debug/{data.@PictureSrc}"/
    >>
    > <mx:Label text="{data.@ColourNo}"/>
    > </mx:Canvas>
    > </mx:Canvas>
    > </mx:Component>
    > </mx:itemRenderer>
    > </mx:TileList>
    You're referring to both data.@ColourNo and data.ColourNo. Is
    it an
    attribute or an element?

  • Problem in setting background colour for jButton.

    Hi,
    I have a jButton in which I want to set the color of the body of the button to gray. But by setting the background color, the color of only the border surrounding the button is changed to red. How can I set the color of the the body of the button to gray?

    Maxideon wrote:
    Geeze. I never though it would be so hard to upload an image. It probably has to do with your location relative to where I uploaded (are you really in India?).Yes.
    Maybe those free hosting sights that show up in my google search are only US based.photobucket was the first result in my search, but I was surprised it isn't blocked ;-)
    I went ahead and created an account with photobucket. I'm assuming all I have to do is make the album public and provide a direct link (hopefully). Otherwise I just simply give up
    [Direct Link|http://i633.photobucket.com/albums/uu51/Maxideon/Button.png]
    [Share Link?|http://s633.photobucket.com/albums/uu51/Maxideon/?action=view&current=Button.png]
    Yup, I see it now. Tends to support what I said about system L&Fs (and you agreed)... I think if I was designing it, I would want to disallow even the red border :P
    Just a nitpick, but the whole purpose of the system L&Fs being to provide a user experience consistent with different OS'es, should one even be trying to change a button background? A splash of color can always be done with an Icon.I'm going to have to agree with you on this one.If the non-system look is absolutely necessary in a Vista L&F, a paintComponent override should be a solution. Or, in case multiple buttons are to be customized, a custom UI delegate inheriting from javax.swing.plaf.basic.BasicButtonUI.
    db

  • Chanage background colour of adjacent column in xMII 11.5

    Hi All,
    Is it possible to change background color of adjacent column based on values.
    e. g.
    col1     col2     col3     col4     col5     col6
    0     A     0     A     0     A
    1     B     1     B     1     B
    0     C     0     C     0     C
    1     D     1     D     1     D
    0     E     0     E     0     E
    is it possible to set background colour of col2 based on value of col1.
    col2 red if col1 value is 0 and col2 green if col1 value is 1
    Regards,
    Sachin
    Edited by: sachinjadhavar on Jul 20, 2011 1:10 PM
    Edited by: sachinjadhavar on Jul 20, 2011 1:11 PM

    Hi Sachin,
    I hope the columns are of iGrid. You can do it by writing iGrid methods.
    For all rows, get the cell value using:
    document.iGrid.getGridObject().getCellValue(ROWNUMBER,COLNUMBER)
    Write the logic of color and apply the color to specific column using
    document.iGrid.getGridObject().setCellBackgroundColor(ROWNUMBER,COLNUMBER,COLOR)
    Hope this solves your problem.
    Best Regards,
    Kedar

  • Background Colour Incorrect when exporting to PDF from Crystal Reports 2008

    Hello All
    When exporting to PDF from CR2008 the background colour of the crosstab is incorrectly displayed. The problem is as follows to create a crosstab with a grey header row and column details in white we have used the following trick.
    Format Cross Tab Border Background is set to Silver.
    Crosstab Expert Grand Total Background colour is set to white.
    The result is a crosstab with header in grey and details in white.
    This report displays correctly in CR2008, and exports as seen on screen to everything but PDF. When exporting to PDF the Crosstab is completely grey taking on only the Background colour of silver, and ignoring the Grand Total Background colour being set to white.
    What is strange that when I print to PDF the format is also displayed exactly as required,
    Any help on this matter would be greatly appreciated.
    Some additional details.
    CR2008 version 12.3.1.683
    Adobe Reader version 9.3.3
    Windows XP Professional
    Thanks
    Phillip
    Edited by: Phillip L on Nov 23, 2010 1:51 PM

    If this is a big issue for you then please purchase a case and a Rep can duplicate and escalate to R&D.
    As a work around export to Editable RTF and in Word 2007 you can get a PDF export plug-in and then export to PDF.
    Thank you
    Don

  • Setting background image for repeating frame in .pdf report

    Is it possible to set a background image for a repeating frame, and more specifically for a repeating frame rendered in .pdf?
    I do not see any standard property in the navigator for images of any sort and the documentation touches only on setting background images for graphs, which is not the intent in my case. I -did- add an HTML table property background="myimage.jpg" but the report is ultimately generated in .pdf format and I was not surprised to see that the image was not rendered.
    Does anyone know if setting a background image as described is even possible, and if so, how? A second but less optimum solution would be setting the image as the background for all report pages, again in .pdf.
    Many thanks.

    Hi Raj,
    Yes you can have an image in the background. Thats possible if you are using XML forms as an iview or ivew dev in WebDynpro...
    Also check this [link|regarding background color change in iview]
    Regards,
    Piyush
    Reward points if this helps!!!

  • 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

  • Setting a global/default background colour?

    Hi,
    Is there a way in which I can set all objects in my program to have the same background colour with a global command, rather than have to do it for every single object seperately.
    Dave.

    Thats sounds about right, but come to think of it, I
    dont want to set ALL components to the same backround
    colour. I want to keep things like certain buttons
    the same.What do you mean certain buttons ? With a Look and Feel class you can set the colors for ALL the buttons the same , and all the colors for say the text components the same , but if you want some buttons a certain color and other buttons another color I would Make my own button , say ColorButton that extends JButton, and then you pass a Color in the constructer and set se color ... Something like that ??

  • How to set background as white colour for Bitmap images in sapscripts?

    Hi,
    Can anyone let me know that How to set background as white colour for Bitmap images in sapscripts?Actually,I am getting grey as background as defualt for my Bitmap images.
    Sorry,in my previous question,I posted viceversa.I am mistaken.
    Thanks,
    Balaji

    Hi,
    The problem can be solved by changing the way you save the original image.
    Take a look at this thread which explains;
    Problem with logo
    Regards,
    Nick

  • Change background colour of full screen slideshow when set to fit content proportionally

    I've signed up for a demo of Muse and must say I'm very impressed. Having used Dreamweaver in the past at Uni, often getting bogged down in code, Muse is a designers dream. I've even told some friends about it, describing it as "InDesign for web designers". The features, and tutorials on Adobes site, are fab however I'm now needing a bit of assistance.
    I'd like several images to fit the whole screen on a specific section of my Muse website, right under the navigation bar. I've noticed the easiest way to do this is create a full screen slideshow. With this option I can add one, or multiple, pictures to fade in and out - communicating various messages and selling points. By default the widget options are set to Fill Frame, which expands my graphic to completely fill the browser. Unfortunately with this selected the image loses some quality and seems to zoom in, getting cropped in the process. When changing the settings to Fit Content Proportionally everything looks great. The graphic is smack bang right under my navigation like I desire however there is also a ghastly grey box either side because the graphic is now it's original size. The grey on either side seems to be the slideshow background colour but I am unable to figure out a way to alter this - from grey to black. Please see the link for more info: https://dl.dropboxusercontent.com/u/50403221/Screen%20Shot%202014-08-14%20at%2018.00.34.pn g
    Would any fellow Musers know of a way to get round this? Or perhaps should this be an enhancement request?
    Thanks, Chris

    Hi Chris,
    Can you select the slideshow widget that you have added and check the fill color in control panel.
    Please refer to the following screenshot :
    Regards,
    Akshay

  • Setting a page background colour

    Hi everyone,
    Im new to InDesign, and am (or at least i thought i was), in the final stages of completing a brochure (A4 landscape format) for my photography business.
    The brochure Im creating is intended as both a downloadable pdf and also for viewing on screen.
    My issue is this:
    Ive somehow managed to set it up so that the page background colour is black, which is what I want, as my text alternates between white and a shade of grey.
    However, when I PDF this document, or try to physically print it, the pages show up as white, and so a lot of my white text does not show and the grey text looks almost invisible.
    Can someone please enlighten me as to how I actually achieve what i would like to - i.e. black pages.
    Many, many thanks in advance.
    Stevieboy1970

    Thanks for your reply.
    I figured that would be the way to go. Though I'm getting a glitch when using image gallery widgets where the background colour flashes white when zooming on an image on the final ipad book. The background fade effect when zooming is set by default to start from white I presume. Hope they fix that soon.

  • Boring set of desktop background colours.

    A few months ago, soon after I first bought my Mac, I managed to achieve a choice of the full spectrum of colours for my desk top background colour, ending up with a delightful shade of grass green. I've no idea how, but now, wanting a change I can't find anything in desk top / screen saver except the same old boring set of solid colors and I can't seem to access the spectrum ball at all in relation to desk top.
    Incidentally, clicking on screen saver has of late resulted in a frozen screen and the beachball (Agh), necessitating the use of 'force quit' to return to normality.
    Can anyone set out an uncomplicated route to help give a change to my desk top ? Big thank you in anticipation.

    The background is just for the preview window.
    The spectrum ball is a part of the built it colour menu, easily accessed with command shift C or show colours in various apps.
    To get your apple green background using just apps available in Leopard.
    Open TextEdit > Format > Show fonts which brings up the font menu with various options along the top of the window. Forth box from left contains a blank page icon > click on the blank page and choose your colour from the colour menu.
    The TextEdit window will then be your colour > Make a big as possible > use command shift 3 to take a screen shot which will be on your desktop.
    Double click screen shot which will open in preview > draw a cropping box with the curser as big as possible > Tools > Crop > Save in User > Pictures.
    Access pictures folder from System prefs > Desktop >>
    An easier way would be to use a graphics app but not as much fun
    Maybe Paintbrush
    http://www.versiontracker.com/dyn/moreinfo/macosx/32559

  • [noob question] setting window background colour?

    Hi,
    Am just getting to grips with basics of Xcode, Coacoa and IB, been looking at some easy examples and just set myself my first exercise; to build the C# Introductory Video example app
    OK, basically all I want to do is open the colour picker from a button and set the window background colour. But still with nothing more than an empty window in IB I can't find any obvious means to define it's background colour (not even statically)?
    Hope someone can help with this dead easy question... (my Coacoa programming book is still on it's way from Amazon
    Ceers,
    Rich
    PS. just looking for a nudge in the right direction, please - not a step by step description how to write my sample app, as well meant as that might be. cheers

    +Although I'm guessing from the underlying tone you're already pretty experienced and it's been a long time since you sat down yourself and first started to "look through the documentation"?!?+
    Sorry didn't mean to let the tone bleed through that much.
    But seriously I assumed there was an NSWindow function that did it, checked the documentation, found it, mocked it up in 5 minutes (alright 10 I'm still getting used to IB in Xcode 3), tested it to make sure it worked as expected and then answered your post. Not that you should have been able to do that as quickly but I could do it because I have slogged through the process for other objects I had used.
    Really this is a pretty basic Cocoa kind of operation. I have object X supplied but Cocoa (eg NSWindow, NSTextBox, etc.) and I want to do operation Y. Operation Y is almost always already there for you just waiting to be used. Learning this process of finding these things in the documentation and using them is really crucial to being a proficient Cocoa developer.
    In Xcode 2 Help > Documentation will give you the searchable API and just type in NSWindow. In Xcode 3 selecting an object - like NSWindow - will change the Help > Documentation menu to point to NSWindow directly.
    Cocoa is a very "lived in" API and it has clearly been evolved by people who really used it so it has the buttons and levers right where you want them most of the time. I assumed that NSWindow had a function to change the color simply because it would make sense that it would. And when I checked it did, but my making that assumption and being able to find the function comes from doing the heavy lifting already on other objects.
    I'm just hoping you take this as an example of how to do this and next time dig into the docs and find the function. There is no way to be good at it without doing it and getting good at it gives you access to Cocoa's rich API and will get you very far because you get all that programming other people have done for you for (almost) free.
    Good luck,
    =Tod

Maybe you are looking for