Display colored text

Hi all, I want to display a text element in the forms with the colors. If the value of this item of text is negative, I want to display in a color and if it's positive another color. Can anyone suggest me how to achieve this.

Any help is appreciated,
Thanks in advance!

1. create two visual attributes (VA_RED = RED VA_GREEN = GREEN foreground color foreground color)

2. Add the following code after REQUEST and WHEN-VALIDATE-ITEM

IF :EMP.COMM < 0 THEN
 Set_Item_Instance_Property('EMP.COMM' , CURRENT_RECORD, VISUAL_ATTRIBUTE,'VA_RED');
ELSE
  Set_Item_Instance_Property('EMP.COMM' , CURRENT_RECORD, VISUAL_ATTRIBUTE,'VA_GREEN');
END IF; 

Best regards
Franck Giri

Tags: Oracle Development

Similar Questions

  • addons page displays white text on white background

    I'm legally blind. It became a never-ending struggle to get Firefox to display the colors correctly. I use the black contrast theme. and Firefox is configured to display white text on black background. Recently, I needed to adjust the color for unvisited links. I could not because the colors of the palette are all black. I found a solution here to switch the State of (I think) browwser.treference.inconfig. This gave me the screen options of old back and it worked. Now, I can't go back because the screen addons and about: config white text on white background.

    Last post on this topic-, it is a known bug, #1207084, which is marked as resolved.

  • How to set remote spaced further icon to display more text for the name below?

    Windows 7 desktop has many icons with similar names. I want that name under the icon. How to set remote spaced further icon to display more text for the name below?

    Right-click on the desktop and select Personalize.

    Select the color of the window

    Select the appearance settings advanced.

    Select the drop down next to the element

    Go down and select icon spacing (Vertical)

    change spacing next to size according to the needs.

  • In a sequence of CTF, is it possible to obtain a text file of sequence clips display? There is a display of text file for clips (cmd-9). Zoom the timeline cancels the ability to see the whole sequence of the time line.

    In a sequence of CTF, is it possible to obtain a text file of clips in sequences display (name and duration)? There is a display of text file for clips (cmd-9). Zoom the timeline makes this visible annotation for shorts, cancels but the ability to see the whole sequence of the time line. Of course, it would help my editing.

    TIA

    In Final Cut Pro 7, you can use editing > find command to search on used clips in the sequence. See if there is an equivalent command in FCE. Unfortunately, I can't determine that at first hand on my system. (In addition, if you are still interested whereas FCP X, there the so-called Timeline index which provides quick access to a list of markers, clips, effects, etc..)

    Good luck.

    Russ

  • How to set the font for this SuperNova will display the text properly

    I have a problem with the use of Firefox with Supernova. Supernova is a program for the Visual disabled allowing you to enlarge the office. When you visit the page

    http://www.raadvanstate.nl/Uitspraken/zoeken-in-Uitspraken/Tekst-uitspraak.html?ID=73735 & summary_only =

    you will see orange colored text in the main text block. It appears correctly. However when I enlarge the screen with Supernova this orange text is barely readable due to the fact that the letters seems constructed points instead of a smooth line.

    Note that this happens even with this page where I enter these details of the issues. Supernove enlarged rhe screen, texts outside of the text box are horrible while the text in this text box is good.

    I ask this question here because when I use Internet explore this problem does not occur.

    I tried to make a screenshot, but the screenshot feature only "sees" the screen is enlarged. So when I zoom to 100% with Supernova, the text in the screenshot seems to agree.

    I realize that this is a difficult question to reproduce, but any help is welcome. Note that it is not a real option for me to enlarge the font with the Firefox options. Supernova expands the full screen, not only the text on the Web page. In this way, I am also able to see the menu / bookmarks of Firefox itself.

    Thank you very much
    Hans

    You can use an extension to set a page zoom and the size of the default font on the web pages.

    Try disabling hardware acceleration in Firefox.

  • Firefox does not display a text on some pages.

    I noticed that on some pages, Firefox does not display some texts. I have the latest version of Firefox installed and my flash and java are updated. The text appears correctly on Chrome and IE. Please see my example in the screenshots of the stevenson.edu Web page. Does anyone know what I can do to solve this problem or if there is some kind of plugin need me to see some content? Thank you.

    Screenshot of Firefox: http://i47.tinypic.com/123359k.jpg
    Screenshot of Chrome: http://i48.tinypic.com/2uy3ay1.jpg

    The site appears to be using an old 1.2.0 version of MooTools which is not compatible with curent releases Firefox.

    Quote: Mootools 1.2.x incompatible with Firefox 18 and newer. Fixed in Mootools 1.3 and newer (see 789036)

    • bug 789036 - MooTools 1.2.x has been broken by the addition of String.prototype.contains

    (please, do not comment in the bug reports: https://bugzilla.mozilla.org/page.cgi?id=etiquette.html)

  • Satellite A210-127: display colors began to be weird

    Hi friends

    Well I installed win xp pro sp2 on my laptop. I managed to find all the drivers for xp.
    A week ago I noticed that while my laptop worked for about 2 hours or more, the display colors began to be weird.
    A shade of blue covers parts of the screen and in some cases, I see a few icons or a part of the pictures (like desktop) to tremble.

    As I have some experience of it I tried to close the cover (screen) and then to open it to know if the sceer has a problem, but no, the problem was still there.
    I restarted the laptop and everything is ok. AFEW more hours of work and the problem again apeard. I tried a bios update and reinstalled the display drivers.

    The problem was not resolved. So I disconnected all usb devices and battery and rebooted.
    After a few hours, the same problem has happened so I looked in the case where the viewer and that there was no error. I am convinced that I have to blame the display drivers, but I'd like to hear opinions.
    My graphics card is ati mobility radeon 2600

    Thank you

    Hello

    I don t think it is a software problem and therefore in my opinion the update of the graphics driver is simply not necessary.
    For me, it looks like a hardware problem. Probably the fault of operation of the FL-ups!

    I recommend to connect the external monitor to the laptop while the shade of blue is displayed on the internal screen for laptop!
    If you see the same thing on the external monitor that maybe the GPU causing this strange issue.
    But if the problem isn't on the outside monitor then either display laptops or the FL inverter causes this problem.

    In both cases it s advisable to contact the service provider allowed in your country, because the part which malfunctions must be replaced.
    I think that the guarantee is valid and this is why everything should be done for free!

    Good luck

  • Display a text box before running a program

    I am designing a new interface for a pulse on LabView duplicator and I wanted to display text on the front before running the program. I managed to create text boxes that appear after the code begins to run, but I was wondering if there was a way to display these text boxes before the code runs.

    Maybe I'm misunderstanding / simplistic, but if you have a string indicator (text box - as you call it) you can simply type in what you want the initial value of the being, and then right click and select 'data operations.  Then choose "Use current default".

  • Display the text in Hindi language

    Hello

    I need to display the text in Hindi language in Labview 8.2.1. Is it possible to do? If possible, help me to do.

    Thanks in advance.

    Kind regards

    Raja

    Hi Hillman,

    I followed the steps you mentioned, & also, I added a line UseUnicode = TRUE at the end of the configuration LabVIEW LabVIEW.ini file located in C:\Program NIUninstaller Instruments\LabVIEW.

    Then I read the hindi text from a file & I posted it in a string indicator. Also, right-click on the indicator chain & enable Force Unicode text. So that the texts do not display correctly as it is in the file.

    Thank you

    Raja

  • messed up display color

    Display colors are medium - black are blue, red are "purple", etc.

    Hi Rustydog13,

    The first thing I would check is that the monitor cable wiggled loose. Even if it seems trendy I could look a little longer. If that doesn't fix it, you may need to reload the display driver.

    If you want to know the answer just to the display driver.

    Matt
    Matt Cameron

  • Canon MX300 all in 1 printer not print color text or images in Windows 7

    I have a toshiba satellite A505-S6965 computer and a Canon MX300 all-in-1 printer

    * original title - my printer print black words computer and drafts of sheets of colored text or photos, I tried but you can't not to print all colored matl. Too much. The color cartridge is comprehensive

    Printer in Windows problems
    http://Windows.Microsoft.com/en-us/Windows/help/printer-problems-in-Windows

    The tutorial consists of 3 parts:
    Step 1:
    Check the hardware
    Step 2: Use a troubleshooting tool
    Step 3: update
    drivers

    Application Microsoft Support Fix It:
    http://support.Microsoft.com/mats/printing_problems/en-us

    Try this Windows tutorials:
    It consists of many themes that you can click and read the tutorials.
    There also an Fix It application
    http://Windows.Microsoft.com/en-us/Windows-Vista/troubleshoot-printer-problems

    Here is the main link with: Support for Windows
    Technical problems of Vista and troubleshooting - printing
    http://support.Microsoft.com/ph/11732#tab11

  • Computer will display the text but not the graphics

    I have a computer that is running Windows 7 Pro 64 bit that will display the text, but will not be graphic print (what I get is several pages of garbled text and what looks like Morse code).

    The problem is the same with a HP Officejet Pro 6230 or an Officejet Pro 8100.

    The problem occurs if I am connected with a domain users account or the local administrator account.

    The problem occurs using the re-discovery of HP network port monitor or the standard TCP/IP port.

    Two other computers connected to the printer and also running Windows 7 Pro 64 bit, you do not have the problem.

    HP printing and doctor Scan didn't find any problem and is not the problem of printer Microsoft Fixit fix anything.

    I will try to assign another driver by following the instructions at:

    http://h30434.www3.HP.com/T5/printer-all-in-one-software-drivers/how-to-assign-alternate-print-drivers-in-different-versions/TD-p/1957011

    but I do not know what driver to use.

    This Technet article:

    http://blogs.technet.com/b/perfguru/archive/2008/08/06/print-spooler-crash-troubleshooting-steps.aspx

    suggests that a third-party port monitor may be to blame. I tried to remove the rediscovery of HP Network Monitor, but I get an error and I can't remove it. As far as I can tell, this is the third port only installed on the computer monitor.

    I have searched this forum, but could not find a similar problem that has a solution.

    What other information should I provide?

    Thank you!

    Jeffrey Pike

    Groton public library

    ELSA:

    Further investigation of this issue today, I learned that probably, printing problems don't were not due to the computer or printer, but a bad pass that the computer is plugged into. I ordered a new switch, and I hope that it will be the end of my troubles. Thank you for the help that is available to you.

    Jeffrey Pike

    Groton public library

  • Analyze and display a text string that has HTML tags on blackberry java screen

    Hello world

    I have a string of text that has some HTML in there. I want to display this text string to the screen of blackberry java by analyzing these HTML tags.

    Here is the text of the string.


    Large bright digital display
    Six output Modes
    Automatic test systems

  • Sound signals

  • Discrete outputs
  • Isolated circuit
  •  
  • Digital error detection
  • Thanks in advance!

    Vinay.


    Hello

    Displag a String with HTML tags problem solved!

    Here is the code snippet.

    BrowserField _bf11 = new BrowserField();
    prodDescManager.add (_bf11);

    String Highlight2 ="
    Seat and head radiolucent
    Manual control for instant CPR
    IV pole;

    _bf11.displaycontent (Highlight2, "http://localhost");

    Vinay.

  • CustomBitmapField to display the text

    I want my custom BitmapField to display stationary text from the image and this is my code:

    package com.codemobiles.orientthai.field;
    
    import net.rim.device.api.system.Bitmap;
    import net.rim.device.api.ui.DrawStyle;
    import net.rim.device.api.ui.Font;
    import net.rim.device.api.ui.Graphics;
    import net.rim.device.api.ui.Ui;
    import net.rim.device.api.ui.component.BitmapField;
    
    public class CustomBitmapField extends BitmapField {
    
        public String aText = "";
        public Bitmap focusBitmap;
        public Bitmap unfocusBitmap;
        private boolean hasfocus;
        public Font FONT_PLAIN;
        public int m_MarginTop;
    
        protected void onFocus(int direction) {
            // TODO Auto-generated method stub
            hasfocus = true;
        }
    
        protected void onUnfocus() {
            // TODO Auto-generated method stub
            hasfocus = false;
        }
    
        public CustomBitmapField(String aText, Bitmap onfocusB, Bitmap unfocusB) {
    
            this.aText = aText;
            this.focusBitmap = onfocusB;
            this.unfocusBitmap = unfocusB;
            FONT_PLAIN = Font.getDefault().derive(Font.PLAIN, 5, Ui.UNITS_pt);
    
        }
    
        protected void layout(int width, int height) {
            // TODO Auto-generated method stub
            super.layout(width, height);
            setExtent(focusBitmap.getWidth(), focusBitmap.getHeight());
        }
    
        protected void paint(Graphics graphics) {
            // TODO Auto-generated method stub
            if (focusBitmap instanceof Bitmap) {
                m_MarginTop = (focusBitmap.getHeight() - FONT_PLAIN.getHeight() / 4);
                if (hasfocus == true) {
                    graphics.drawBitmap(0, 0, focusBitmap.getWidth(), focusBitmap.getHeight(), focusBitmap, 0, 0);
                } else {
                    graphics.drawBitmap(0, 0, unfocusBitmap.getWidth(), unfocusBitmap.getHeight(), unfocusBitmap, 0, 0);
    
                }
                graphics.drawText(aText, 0, m_MarginTop, DrawStyle.ELLIPSIS,
                        getWidth() - 15);
                invalidate();
            }
        }
    }
    

    I tried this code and it showing on the picture just of the screen.

    I did something wrong?

    Help, please

    Thank you

    Concerning

    It works now. I changed the drawtext to become this:

    graphics.drawText(aText, getWidth()/3, getHeight()/3, DrawStyle.ELLIPSIS,
                        focusBitmap.getWidth() );
    

    Hope it will help.

    Concerning

  • How to display a text in Notepad in hindi font.

    If I copied a text to an HTML page that is found in 'hindi' language fonts in Notepad, then it is not printed in English language characters in Hindi language fonts. Please guide me to get the text which I am faced in Notepad is in a font of "Hindi".

    Thank you

    The respect of
    Bhushan K. Pinjarkar

    Hi Bobo KP,

    I see that you want to display a text in Hindi font. I'll help you with this problem.

    1. you have Hindi fonts installed on the computer?

    2. what security software is installed on the computer?

    3. What is the brand and model of the computer?

    4. have you installed the suite Microsoft Office?

    Try these steps and check the status.

    1 click the Windows 'Start' button and select 'Control Panel '.

    2 - Select "Uninstall a program" under the heading programs.

    3 - Click the program the list entry to the version of Microsoft Office is installed and select the button 'change '.

    4 - Select "Add or remove components," and then click "Next" or "continue".

    5 - Click the like next to 'Office shared components' to expand the category, choose expand the category of the "International support".

    6 - click on "Police Hindi" or "Universal Police" according to the version of Office, and then click "run from my computer.

    7 - click on "continue" to complete the installation of the police. Insert the office disc if you are prompted. Restart the computer.

    Once this is done, open a new word document and copy the HTML page which is in Hindi language and then try to print.

    Let us know if you need assistance with any windows problem. We will be happy to help you.

Maybe you are looking for

  • Office 365 for free for iPad 9.7 pro

    It is free or not. Or just free to view only not for editing. Thank you

  • HP deskjetF4580 printer range has limited connectivity and uses IP 169 instead of 192

    My wireless printer has suddenly displayed the error message saying ' printer has limited connectivity. Sound by using the property intellectual 169... that is not compatible with 192... Sytems contact administrator '. (that's me and I don't have a c

  • No USB in Device Manager.

    First of all, this problem started when I tried to add a USB for my IPOD. After that, I couldn't access a windows login. restarted > bios > compatible USB > windows will not start. But windows started if I disabled the USB controller in the BIOS. Hel

  • No monitor showing in Device Manager

    I have a Hannspree 28 "monitor with a hdmi connection to an Asus Radeon 4890 graphics card. This facility works great under Vista Ultimate 32 bit in the default resolution of 1920 x 1200 screens... Since I installed Windows 7 64 bit, in a dual-boot s

  • BlackBerry Smartphones SMS sending / is not receiving

    Hello everyone, I am working on a Sprint 8530 on a BES server: Software: v5.0.0.654 Platform: 4.2.0.298 Work e-mails, MMS works to send and receive internet works, and it can receive SMS messages, it can not just send SMS. I can't understand it, ther