Re:Grant -- Changing foreground Color -- it works!

I would have never thought to use the Set_item_instance property-
- but what you showed me on the last message works great!
Thankyou, thankyou, thankyou!
Jeff

Ask and it shall be done! ;-)
DECLARE
--v_color varchar2(8) := 'r100g0b0';
x int;
BEGIN
IF :emp.sal <400 THEN
message ('doing it');
set_item_instance_property('emp.sal',CURRENT_RECORD ,
visual_attribute, 'v_color');
END IF;
END;
Here's the code - put it in a post_query trigger and define a
visual attribute called v_color with the settings you need.
Regards
Grant Ronald
Forms Product Management

Similar Messages

  • Changing foreground color

    I created a pre-block trigger with the following code to change
    the color of the text to red in instances when the value is less
    than zero. Unfortunately is does not work. Can anyone see what
    I am doing wrong here?
    DECLARE
    v_color varchar2(4) := 'R100';
    BEGIN
    IF :tbl_sales.points < 0 THEN
    set_item_property('tbl_sales.points',
    foreground_color, v_color);
    END IF;
    END;
    Thanks in Advance,
    JS
    Title : re:Changing foreground color O/S : MS Windows
    Author : Grant Ronald Type : Question
    Date : Jan 7, 2002 06:48 PT
    POST :REPLY (W/QUOTE)
    Color is an RGB value - so specify the full color value.
    DECLARE
    v_color varchar2(8) := 'r100g0b0';
    BEGIN
    IF :emp.sal <100 THEN
    message ('doing it');
    set_item_property('emp.sal',
    foreground_color, v_color);
    END IF;
    END;
    Regards
    Grant Ronald
    Forms Product management
    Title : re:re:Changing foreground color O/S : MS Windows
    Author : Jeff Starr Type : Question
    Date : Jan 7, 2002 07:00 PT
    POST :REPLY (W/QUOTE)
    I made the changes suggested but without sucess-- perhaps it is
    the type of trigger I am using?? I've tested using several
    different triggers without success. Now I am totally perplexed.
    JS

    First rule of debugging - keep it simple!!
    You'll notice I based this on the EMP table (keep it simple).
    I added a message line so I knew the code was being executed
    (simple).
    And I added the code in a "Key Print" trigger (fired when you
    select print from the default menu.
    It works.
    Try it with a new form and do the steps above.
    Grant

  • Change Background Color Of Work Area

    I am a user of Acrobat 8 Professional and just loaded Acrobat
    9 Professional. Does anyone know if you can change the background
    color of the work area (documentation pane and navigation pane ).
    When I view a PDF the document is ok but the background color of
    the navigation pane and documentation is black.
    Is this the new look for Acrobat 9?
    Is there a way that I can change the color?
    I have searched Acrobat>Help and
    Acrobat>Support>Knowledgebase and find nothing.
    I would appreciate any help I can get.
    Ted

    Thank you for your post. These forums are specific to the
    Acrobat.com website and its set of hosted services, and do not
    cover the Acrobat family of desktop products. Please visit the
    following forums for any questions related to the Acrobat family of
    desktop products:
    http://www.adobeforums.com/cgi-bin/webx/.3bbeda8b/
    Note: The color scheme of Acrobat 9 cannot be changed.

  • How do I add "change background/foreground color" to the configurator, and color buttons?

    How do I add "change background color" and "change foreground color" in the configurator?
    Also is there a way to color buttons?
    Regards,
    Glen

    No matter whether you mean the application Configurator or a Panel created with Configurator you would probably do well to post the question on the Configurator Forum.
    Configurator

  • Is there a way to disallow web pages to modify foreground color of elements if background of those elements was not changed as well (and vice versa)?

    I have very sensible defaults for my display; i.e. I have dark GTK scheme (dark gray background, light gray text) that suits me way more when working on my computer while it's dark around. I, however, like looking at web pages as how they were mean to be seen. Unfortunately, most of web designers don't think about anyone having non-default colors set up.
    Example one ( http://www.cedok.cz ):
    This site's CSS style has "color: rgb(45, 45, 45);" for the whole <body> but for <select> elements there is no "background-color" set. This means there is a select box rendered with dark gray background and dark gray foreground (text color). This is pretty badly readable (obviously).
    To mention one particular element from this site: e.g. <select id="ctl00_ContentPlaceHolderLevySloupec_HledaniMultiTab1_HledaniZajezdu1_ddlTypZajezdu">
    Example two ( https://support.mozilla.org/en-US/questions/new/desktop/customize/form ):
    On this page (where I'm currently filling in this question) the <textarea id="id_content"> has "background: ... rgb(255, 255, 255);" set, but with my default font color, this textarea is rendered as light gray text on a white background. Again, pretty unreadable (and eye-hurting).
    I can provide screenshots and more reasoning if needed.
    I'm asking if there is (or might be) an option (even disabled by default) or at least an add-on which would keep default colors unless both foreground and background colors were specified. I think this might make Firefox very usable for many people which like to have their default colors configured.
    In case you won't be able to help me by fixing this, could you redirect me to the right place where I could get this requested in a way that might be really possible to happen (bugzilla?).
    Thank you very much in advance.

    Thanks for the reply, but I'm sorry, no. I don't want any addon that customizes colors, I want to use default colors and only prohibit changing them unless both background and foreground colors are changed.
    I have made no color changes WRT to Firefox *only*, I just changed the default for the whole toolkit (gtk in this case). The thing I need is to disable changing *only one* property out of two ({back,fore}ground). Whenever the second one gets set as well, this new setting (both of them) may get reflected, but not before that. It'd be nice to keep this when changing the colors back (deleting the style), but that's not necessary.
    I hope that's understandable, feel free to ask for if that's not the case.
    To express what I mean a bit more precisely, see the attached image. In that image there are four textareas (one of the elements that gets affected by this). First one is a default one (which I want to have if the page has nothing set), the second one is nicely modified to fit for example to a blue-ish page (this one I like as well).
    Second row of textareas shows how the final element looks like if the page has only one of these elements set up. First one changes background without changing font color, the second one vice versa. Both of them are very badly readable, especially with low lighting around.
    This is consequently the same case when it comes to default page background which I cannot set at all, because too many pages have only "color:" set without changed background and that is completely messed up then. Going to extremes, I might mention all color-related modifications (see how ugly the borders look when the background is changed and nothing is done to these borders, their size and color is kept default), but I understand that's too much.

  • Foreground color change from inside a class

    Hey,
    For a project I'm working on, I wrote a class that extends awt.Label. In this new class, I had to override the paramString() method to return what I wanted it to. This all works great. What I was wondering, is whether or not it was possible to change the foreGround color of the label from inside the class decleration. I was thinking maybe whenever the paramString() method was called. Any help would be appreciated.
    Thanks,
    Jarrod

    Gday,
    I you use the mothed setForeground(Color c) it should set the foreground colour (color for you Americans) to what you would like.
    see for more info
    http://java.sun.com/j2se/1.3/docs/api/java/awt/Component.html#setForeground(java.awt.Color)
    or
    http://java.sun.com/j2se/1.4/docs/api/java/awt/Component.html#setForeground(java.awt.Color)
    if you have jdk1.4
    You dont need to make this method in your class just call it when you want. ie
    setForground(Color.RED);
    or
    Color c = new Color(255, 0, 0);
    setForeground(c);
    Good luck,
    Jack 573

  • Changing JCheckbox's foreground color..

    Hi Guys...
    I want to change the foreground color of the checkmark that appears in the jcheckbox when it is checked.. Is this possible to do? I have read problems with the disabled background color... But I have not found anything on how to change the foreground color of the checkmark when its checked... I tried doing "setForeground(Color.red)" but it does not work..... Thanks alot in Advance...

    I tried the change color when selected, it doesn't seem to work. However, you can change the icons used on a JCheckbox, the appended code does just that, it uses a collection of CD Player icons for the example, but you could draw or load anything you want. You might also find the CD icons useful for other purposes.
    import javax.swing.*;
    import java.awt.event.*;
    import java.awt.*;
    class TestChk extends JFrame
         Container cp;
         JCheckBox c2;
         TestChk()
              cp = getContentPane();
              addWindowListener(new WindowAdapter()
              {public void windowClosing(WindowEvent evt){System.exit(0);}});
             JCheckBox cb = new JCheckBox();
             CdIcon ic = new CdIcon(CdIcon.CdiStop,16,16,Color.BLACK);
             cb.setIcon(ic);
              CdIcon sic = new CdIcon(CdIcon.CdiPlay,16,16,Color.RED);
              cb.setSelectedIcon(sic);
              JPanel p = new JPanel();
              p.add(cb);
              cp.add(cb,BorderLayout.NORTH);
              pack();
         static public void main(String[] args){new TestChk().show();}
    class CdIcon implements Icon
         public static final int CdiStop = 0;
         public static final int CdiPlay = 1;
         public static final int CdiPause = 2;
         public static final int CdiRewind = 3;
         public static final int CdiFastBack = 4;
         public static final int CdiFastForward = 5;
         int type;
         int height, width;
         int iheight, iwidth;
         int left, top;
         Color clr;
         CdIcon(int t, int h, int w, Color c)
              type = t;
              height = h;
              width = w;
              iheight = (int)(.75*(float)height);
              iwidth = (int)(.75*(float)width);
              top = (int)(.125*(float)height);
              left = (int)(.125*(float)width);
              clr = c;
         public int getIconWidth(){return width;}
         public int getIconHeight(){return height;}
         public void paintIcon(Component c, Graphics g, int x, int y)
              int itop, ileft;
              itop = y + top;
              ileft = x + left;
              int[] xp;
              int[] yp;
              int xd;
              if(c.isEnabled())g.setColor(clr);
              else g.setColor(Color.gray);
              switch(type)
                   case CdiStop:
                        g.fillRect(ileft,itop,iwidth,iheight);
                        break;
                   case CdiPlay:
                        xp = new int[]{ileft,ileft+iwidth,ileft};
                        yp = new int[]{itop,(itop+(iheight/2)),itop+iheight};
                        g.fillPolygon(xp,yp,3);
                        break;
                   case CdiPause:
                        xd = iwidth /4;
                        g.fillRect(ileft,itop,xd,iheight);
                        g.fillRect(ileft+iwidth-xd,itop,xd,iheight);
                        break;
                   case CdiFastForward:
                        xd = iwidth /2;
                        xp =new int[]{ileft,ileft+xd,ileft};
                        yp =new int[]{itop,(itop+(iheight/2)),itop+iheight};
                        g.fillPolygon(xp,yp,3);
                        xp =new int[]{ileft+xd,ileft+xd+xd,ileft+xd};
                        g.fillPolygon(xp,yp,3);
                        break;
                   case CdiFastBack:
                        xd = iwidth /2;
                        xp =new int[]{ileft+xd,ileft,ileft+xd};
                        yp =new int[]{itop,(itop+(iheight/2)),itop+iheight};
                        g.fillPolygon(xp,yp,3);
                        xp =new int[]{ileft+xd+xd,ileft+xd,ileft+xd+xd};
                        g.fillPolygon(xp,yp,3);
                        break;
                   case CdiRewind:
                        int xm = iwidth/8;
                        int xleft = ileft+xm;
                        xd = (iwidth-xm)/2;
                        g.fillRect(ileft,itop,xm,iheight);
                        xp =new int[]{xleft+xd,xleft,xleft+xd};
                        yp =new int[]{itop,(itop+(iheight/2)),itop+iheight};
                        g.fillPolygon(xp,yp,3);
                        xp =new int[]{xleft+xd+xd,xleft+xd,xleft+xd+xd};
                        g.fillPolygon(xp,yp,3);
                        break;
                   default:
                        g.drawRect(ileft,itop,iwidth,iheight);
                        break;
    }

  • Is there a way to change the color of the Bezier Curves and points to a different color other than black  I find it perplexing while setting points and curves working on a photo that needs to be separated from it's background for placement on transparent

    Is there a way to change the color of the Bezier Curves and points to a different color other than black  I find it perplexing while setting points and curves working on a photo that needs to be separated from it's background for placement on transparent backgrounds. Any thoughts?

    Yes. Well, sort of: instead of a "path", set the pen tool to "shape" in the tool properties. Then set the fill colour to transparent, and the stroke colour to the colour you want. You can also set the stroke width.
    Not perfect, but at least you can see the path more clearly - the anchor points and handles still remain the default colour. Open the path panel, and right-mouse click the path shape to create a selection based on that shape. The Paths panel menu also allows you to create work paths based on that shape.
    Unfortunately when you try to move the handles the black thin outline appears again until you release the mouse button.
    This is one of several things that works better in Photoline: in Photoline, once the path is set to a specific colour, editing the path uses the actual colour and stroke width. which is extremely handy for creating path based selection with awkward background colours and/or a high resolution screen. In Photoline the handles and bezier points are also much, much larger, which makes it rather simpler to work with as well - especially on a higher resolution screen. And when selected the handles and points are a clear red with a black outline - again easier to spot and identify. I just works better, in my opinion.

  • In working on a simple home budget,  how can I change the color of a negative number to red,  during the period the number is negative.    Thanks,

    Using Numbers spreadsheet and In working on a simple home budget,  how can I change the color of a number to RED when it  comes up negative.  (only during the time that it's negative)  Thanks,  ( I hope I did this right!!) 

    The Inspector offers choices of format for negative numbers when you choose Number of Currency as the format for a cell. Also offered when the format is set to Automatic, IF the selected cell(s) contain number(s).
    The choices are in the pop-up menu beside the box for number of decimal places.
    Regards,
    Barry

  • Error message when trying to change Foreground/Background color

    Just in case anyone is having this problem in Photoshop CC where when you try to change/exchange or set to default the Background/Foreground colors and you get an error message of something like "Could not complete because of program error". I found the cure for this in an archive from when CS6 was in beta testing. Basically you have to delete the preferences file and restart the program. Here's a link to the article  http://forums.adobe.com/message/4336237. Apparently this "beta" problem can still occur as I am using the most recent version  of Photoshop CC.

    If you are trying to change the settings of your Router using the LELA software, and if you are getting an error message "Unable to Save the Data" its better you can exit from the LELA software and change all the Configuration settings on your Router Manaully.
    Open an Internet Explorer browser page on your wired computer(desktop).In the address bar type - 192.168.1.1 and press Enter...Leave Username blank & in Password use admin in lower case...
    For Wireless Settings,  Click on the Wireless tab
    Below you can make the changes on your Router ( SSID, Channel and let the SSID Broadcast should be Enable) and click on Save Settings... 
    For Wireless Security : -
    Click on the Sub tab under Wireless > Wireless Security...
    Change the security Mode to WPA Personal and under Passpharase type in your Security password and click on Save Settings.. 
    Once done, Now on your computer try to connect to your Wireless Network. Once connected you should be Online from your Computer. 

  • How do I change the color of the background (working) space in Adobe Elements 11 from that awful olive green color to light gray or black or white?

    How do I change the color of the background (working) space in Adobe Elements 11 from that awful olive green color to light gray or black or white?

    Thanks so much for responding! I tried right clicking on the space around the image and nothing happens. No drop down menu appears for me to select a different color! Appreciate your help . . . Diane

  • In elements 10 how to change screen color around photograph being worked on?

    In elements 10 how to change screen color around photograph being worked on?

    If you mean just the background of the tab or image window, right click it and choose what you want. If you mean for the whole program, no can do, sorry.

  • Cant change color on visited sites without changing background /foreground colors that hide options on the sitec

    I want to change the color of visited sites, but am forced to set background and foreground colors which don't properly
    show all of the colors for controls etc on many websites.
    I have to uncheck the button to Allow pages to choose their own colors....
    Google is a good example after doing a search, then change visited sites color, uncheck the allow pages button and then you can't see the search button and most of the options in the top right corner in google.
    I am a little color blind, so can't differentiate blue and purple for links on visited sites...
    thx

    I think the problem is that many sites use background colors to create buttons, so you lose that when you override the page's colors.
    Maybe you could use an add-on to fine-tune colors instead of Firefox's all-or-nothing setting. I found a couple extensions that say they can change page colors, but I haven't tried them myself:
    * [https://addons.mozilla.org/firefox/addon/color-that-site/ Color That Site!]
    * [https://addons.mozilla.org/firefox/addon/colorific-1/ Colorific]
    * [https://addons.mozilla.org/firefox/addon/toggledocumentcolors-198916/ ToggleDocumentColors_]
    * [https://addons.mozilla.org/firefox/addon/color-toggle/ Color toggle]
    For a truly custom approach to link colors, there are two general purpose ways to apply your own style rules to specific sites: the Stylish extension and a userContent.css files. You would need to set a preferred text ''and'' background color for visited and unvisited links so that you are guaranteed to be able to read the text.
    Hope one of these fits the bill!

  • Changing the foreground color ......

    I don't want the viewer to change the text, so I did
    setEnabled(false);
    on my JTextArea.... but then my text color stays at gray no matter what foreground color I give it.
    Is there anyway to overwrite this?
    Thanks!!

    call setaEditable( false ), that won't disable it just make it un-editable.

  • In Photoshop CS6 Hue Saturation does not work with forground/background Jitter set at 100 percent no change in color is observed. Help

    In Photoshop CS6 Hue Saturation does not work with forground/background Jitter set at 100 percent no change in color is observed. I have Added a screen Shot of the Brush settings and a demonstration of what the brush produces.
    I also notice That when I make a pattern of a single color, when I fill a selection with the pattern I get a rainbow of different colors.
    I am running a 64 bit version of Photoshop from the CS6 Masters Collection
    I am on a PC with a Intel i7 1366 4 physical cores and 8 threads, 24 Gig of DDR memory, A Crucial 512 Gig SSD and a NVIDIA GTX 570 with 2 Gig of memory.
    The document size is 2100 by 1500 Pixels at 300 PPI   only two layers

    In Photoshop CS6 Hue Saturation does not work with forground/background Jitter set at 100 percent no change in color is observed. I have Added a screen Shot of the Brush settings and a demonstration of what the brush produces.
    I also notice That when I make a pattern of a single color, when I fill a selection with the pattern I get a rainbow of different colors.
    I am running a 64 bit version of Photoshop from the CS6 Masters Collection
    I am on a PC with a Intel i7 1366 4 physical cores and 8 threads, 24 Gig of DDR memory, A Crucial 512 Gig SSD and a NVIDIA GTX 570 with 2 Gig of memory.
    The document size is 2100 by 1500 Pixels at 300 PPI   only two layers

Maybe you are looking for

  • HT201303 Random Apple id password resets - how to stop this?

    A couple of months ago I started getting emails from Apple titled "How to reset your Apple Id password" and then more worryingly "Your Apple Id password has been reset".  This happened several times over the next few days and I know this was not done

  • Can i use the airport express in my hotel with wired connection?

    I'm going to be traveling quite a bit coming up and staying in hotels with wired internet connections in the room.  Can i use the airport express to connect with the hotel's internet connection and then my ipad and/or iphone 4S?  I'm new to Apple pro

  • Data Insertion in BPC.

    Dear Experts! I am New to BPC. I have a Data file something like below: Account,Entity,Category,Time,Amount Bills,Inr,Budget,2009.Jan,777 Here, "Amount" is taking only "numeric" values. Can i enter "Characters" for Amount. Is there any other way to e

  • I plugged my iphone into itunes and now it says that it can't activate.

    My iphone is now saying that it could not activate, how do i fix this?

  • Help on Cisco AP1142

    Hi, i want  to  Use  Cisco AP 1142 in  my network. Also  new to the enterprise  edition  AP. I have configured AP  WEB  mode  the SSID  and  able  to connect  without  the Security Key. Also  want to  enable  MAC Address filter  on the AP please help