Selected tab highlight hint color

Hi,
Is it possible to change the highlight hint color on a tab control?  What I'm refering to is the orangeish color that shows up at the top of the active tab on a tab control, as seen in the screenshot.  I can't find an attribute for this, nor can I seem to be able to paint it in the UI editor.  Oddly I'm only seeing this in Windows 7 - it does not seem to show on Windows XP.
Thanks.
Solved!
Go to Solution.

The pic you posted is the way the tab control draws when the panel attribute ATTR_CONFORM_TO_SYSTEM_THEME is turned off.
On Windows 7, when ATTR_CONFORM_TO_SYSTEM_THEME is turned on, the tab control draws like this:
To answer your question about if you can change the orangish color, the answer is no.

Similar Messages

  • Color of selected tab panel tab

    Hello all,
    I'd like to know the orange like color of the upper part of a selected tab panel tab, see the picture below.
    Actually, these are two colors, orange and a darker, 'shaded' orange. I don't mind which color value I can obtain, but I'd like to use the same color for other controls (LED, decoration frame) as well.
    Does this color depend on the Windows theme? If so, I'd be happy about a possibility of obtaining this property programmatically.
    If this color is always the same, I can obtain it myself using Photoshop...
    Thanks a lot,
    Wolfgang
    Solved!
    Go to Solution.

    When the panel has ATTR_CONFORM_TO_SYSTEM_THEME set, CVI lets Windows draw the tabs by calling DrawThemeBackground with partIDs such as TABP_TABITEM, etc. The picture that you posted is the XP theme. The Windows 7 theme is different and it looks like this...
    I checked out the Windows function GetSysColor, but didn't see a way to get that color. Anyway, since the tabs draw differently on XP and Vista/Windows 7, you may not want to use that color in different controls.

  • Changing Colors of selected tab in JTabbedPane.

    Do someone has some code that can show how to
    change the color of the selected tab with JTabbedPane.
    I can change the other tabs colors with setBackground and setForeground, setBackgroundAt........ but it is the selected
    tab that will not change from the default grey color.
    thanks

    try this code, it works.
    public class TabBackgroundChange extends JFrame {
    private JTabbedPane tabPane = null;
    public static final Color selTabColor = Color.red;
    Color nonSelectedTabColor = null;
    public TabBackgroundChange() {
    try {
    UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());
    catch(Exception ex) {
    ex.printStackTrace();
    tabPane = new JTabbedPane();
    tabPane.add("One", new JPanel());
    tabPane.add("Two", new JPanel());
    tabPane.add("Three", new JPanel());
    this.getContentPane().add(tabPane);
    this.setSize(200, 200);
    this.setVisible(true);
    tabPane.addChangeListener(new TabChangeListener());
    tabPane.setSelectedIndex(1);
    tabPane.setSelectedIndex(0);
    public static void main(String[] args) {
    TabBackgroundChange tabBackgroundChange1 = new TabBackgroundChange();
    private class TabChangeListener implements ChangeListener {
    public void stateChanged(ChangeEvent ce) {
    int iSelTab = tabPane.getSelectedIndex();
    Color unSelectedBackground = tabPane.getBackgroundAt(iSelTab);
    for(int i=0; i<tabPane.getTabCount(); i++) {
    tabPane.setBackgroundAt(i, unSelectedBackground);
    tabPane.setBackgroundAt(iSelTab, Color.red);
    }

  • Tab Set Label Colors - How do I change the selected tab label color?

    No matter what color I tell it to use for the Labels - Selected color I get white.  Is this a known bug in the system or am I not doing something correct.  I have a tab set component and a label based menu selector component on my display.  I've set up the labels and backgrounds for both components exactly the same but I can only get white for the selected tab set label.
    Edited by: Maureen LaComb on Feb 19, 2009 5:38 PM

    Hi, Maureen
    You can set the color of Tab Set by using the Following Steps.
    --> Select the Tab Set
    --> From the the Properties Window
    --> Select Appearance
    --> There are Two Tabs "Text" and "Color"
    --> From the Color Tab you can Select the Background Color
    --> Tab BackGrounds Or Labels from here you can select the color.
    But this setting will Apply to all the Tabs in a Tab Set, I think you can't set the Specific Setting for a single Tab in a Tab Set.
    Please Reply if any Issue,
    Kind Regards,
    Faisal

  • Updating a JTabbedPane's selected tab color dynamically

    Hi
    I have set the selected tab color for my JTabbedPane
    using:
    UIManager.put("TabbedPane.selected", Color.RED);Now I would like to change the color dynamically to green.
    However, just calling:
    UIManager.put("TabbedPane.selected", Color.GREEN);doesn't work.
    It seems that if the JTabbedPane is visible while I change the color through the UIManager, it has no effect.
    On the other hand, all the other JTabbedPanes in my application (which are not visible - in hidden dialogs), are effected.
    How can I effect ALL the JTabbedPanes in my application at the same time?

    Try to call
    SwingUtilities.updateComponentTreeUI(selectedPane);
    best regards
    Stas

  • Setting the color on selected Tab

    Hi,
    I can't seem to figure out how to set the color on the
    selected tab in a JTabbedPane. I've added a
    ChangeListener but when I try to use it, it only
    changes the color after the tab has been selected.
    I want to change it while it is selected.
    How can I do this?

    Maybe this helps:
    http://www2.gol.com/users/tame/swing/examples/SwingExamples.html
    Kurta

  • Want to change the Background Color of Selected Tab

    Hi All,
    I want to change the Background Color of Selected Tab of the tabstrip visible in Content Admin Role (Browse, Overview etc.).
    I have changed the Background Color of Selected Tab - Tabstrips-Complex Elements through Theme Editor, but that did not take effect.
    Only the other webdynpro components tabstrips took effect.
    Regards,
    Vishal

    Hi Andre,
    I don't know if you have already figured out how to change the background color of the tabstrip, but I will explain how we have done it.
    You might have tried to change the background color in "Tabstrip" (under the menu "Complex Elements") in Theme Editor. When you change the property "Background color of selected/unselected tabs", this will not change the color of the images on the tabstrip (ex. the triangle on the side of the tab). These images are on the server. We copied these images and then made changes to them, before we uploaded them again through the Theme Editor.
    The path to find the images is /usr/sap/~/JC01/j2ee/cluster/server0/apps/sap.com/irj/servlet_jsp/irj/root/portalapps/com.sap.design.urdesigndata/themes/portal/the name of your theme/common/tablist
    If this didn't work for you, you might have to change the properties in "Pattern Containers" (under Complex Elements") in Theme Editor. The tablist properties are under the header "Tab Container".
    I think it should work for you then. We also found that there was some problems when we tried to view the changes in Firefox, but haven't figured out how to solve this.
    /Ellen

  • How to highlight selected tab instead of getting the first tab by defaultly

    Hi All ,
    I had one problem with the Jquery accordian. When I am selecting one tab in Jquery accordian then that tab is not getting highlited.
    By defaultly the first tab is getting highlited or selected. The page for that selected tab is opening but the tab is not opening. By defaultly the first tab in accordian is getting selected.
    Can some one help me on this.
    Thanks & Regards,
    P.Mohan Reddy

    My question is like when we click on the first tab in the accordian then that page will open and in the accordian the 1st tab will be opened and other tabs r closed in the jquery accordian. But in the same way when i am selecting the 2nd tab or other tabs in the accordian then that particular tab is not opening even in that case also the 1st tab is opening and the selected tab is not opening.

  • Custom Action to change selected column's Background color for a table in CEWP

    I have a OOTB CEWP. When I insert a table to this, I would like to see a context menu that would give me an option to change the selected cell's/row's/table's properties like cell padding/cell spacing/background color etc.
    How can this be achieved using SP2013 ribbon's custom actions. It would be great if we could add all these properties on a separate contextual tab when row/cell/table is selected.
    Rajasekar A.C

    Hi,
    If the table in Content Editor Web Part, we don’t need to use SharePoint Ribbon to achieve it.
    We can insert some input button and use jQuery to change the table tr/td background color.
    The code like this:
    <style type="text/css">
    .highlight {
    background-color: red;
    </style>
    <script src="http://code.jquery.com/jquery-1.11.1.min.js" type="text/javascript"></script>
    <script type="text/javascript">
    $(function () {
    $("#TableID tr").click(function () {
    $(this).toggleClass("highlight");
    </script>
    Thanks,
    Dennis Guo
    TechNet Community Support
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
    [email protected]
    Dennis Guo
    TechNet Community Support

  • Changing highlight text color / using Highlighters

    I've subclassed JTextArea, and among other things, am trying to add the functionality for drawing the active selection even when the TextArea doesn't have focus. I've overridden processFocusEvent like so:
    public void processFocusEvent(FocusEvent e){
            Highlighter h = this.getHighlighter();
             if (e.getID() == e.FOCUS_GAINED){
                //remove the inactive highlight
                h.removeAllHighlights();
            //this will put the selection highlight back in for us, among other things,
            //if we just gained focus.
            super.processFocusEvent(e);
            //now add the inactive-selection highlight if we just lost focus
            if (e.getID() == e.FOCUS_LOST){
                try {
                    h.addHighlight(
                            this.getSelectionStart(),
                            this.getSelectionEnd(),
                            new DefaultHighlighter.DefaultHighlightPainter(
                                new Color(212,212,212)
                } catch (Exception ex){
                    ex.printStackTrace();
        }and it works quite nicely. Notice that I draw the inactive selection gray.
    There's a slight problem with this: JTextArea doesn't treat the text in the highlighted section any differently, as opposed to how it would when the component is focused (i.e. rendering it in the highlighted text color). I'm guessing this is because it knows that it's not focused, and therefore assumes that there's no highlighting to be drawn. So as a result, all text in the text area is rendered in the same color --- the foreground color --- when the textArea doesn't have focus, regardless of what is being highlighted. For this reason, setSelectedTextColor() has no effect.
    But I want to be able to change the highlighted text color, since, in theory, the user's system could be configured to show text in the exact same gray that I'm highlighting with. I want to just be able to set it to be white or black.
    I am rather averse to using a TextPane, since what I'm writing is designed to edit plain text, and a TextArea has many wheels that I don't want to reinvent, like setTabSize(), for example.
    Clearly, there is code already in place somewhere to draw text a different color for highlighted portions of a TextArea. Is there some way I could perhaps trick only the drawing code into thinking that it has focus? What is the cleanest way to accomplish what I want, i.e. the way that involves rewriting the least amount of functionality?
    Any suggestions/leads would be greatly appreciated.

    Here's a better way to keep the selection visible. All those hard-coded colors are a big no-no, but this is just to demonstrate the technique.
    import java.awt.Color;
    import javax.swing.text.DefaultCaret;
    import javax.swing.text.Highlighter;
    import javax.swing.text.DefaultHighlighter;
    * usage:
    * textComponent.setCaret(new GhostCaret());
    public class GhostCaret extends DefaultCaret
      private static final Highlighter.HighlightPainter unfocusedPainter =
          new DefaultHighlighter.DefaultHighlightPainter(new Color(230, 230, 210));
      private boolean isFocused;
      protected Highlighter.HighlightPainter getSelectionPainter()
        return isFocused ? SimpleHighlighter.defaultPainter : unfocusedPainter;
      public void setSelectionVisible(boolean hasFocus)
        if (hasFocus != isFocused)
          isFocused = hasFocus;
          super.setSelectionVisible(false);
          super.setSelectionVisible(true);
          getComponent().setSelectedTextColor(isFocused ? Color.WHITE : Color.BLACK);
    }

  • How to make start and end curve pieces of selected tab transparent in custom theme in FF33?

    I created my own theme using a background image but it seems I cannot code it right in browser.css to make the start and end curve pieces of selected tab transparent. They remain colored, I guess using the operating system's (which is Win XP) dialog color. The middle piece is fine, though, as well as the hovering.
    I built my theme based on https://developer.mozilla.org/en-US/docs/Building_a_Theme but customised it.
    Your answer would be highly appreciated!
    Best regards,
    Chaperon

    There is a Theme Development forum over here - http://forums.mozillazine.org/viewforum.php?f=18&sid=8c2f1ca97805f897689772e80e351023
    You'll need to register and login to that website, which isn't part of Mozilla Support, but far more theme developers hang out over there then what we get here.

  • How to debug an OLAP variant which is in Infopackage Data selection Tab

    Hi experts,
    How can I debug an OLAP variant used in the data selection tab for an infopackage? The loading is done via process chains. I am trying to debug the SAP delivered OLAP variant 0P_PPER3 of infoobject 0FISCPER3 (SAP exit). If I am not mistaken I believe the function module is RSVAREXIT_0P_PPER3. Thanks.

    Hi Mark !
    This method is always good (if you have authorization to work in SM50):
    put before your code an endless loop like this one:
    data flag type c.
    clear flag.
    do.
    if flag = ' '.
    exit.
    endif.
    enddo.
    then start your load...go to SM50 and here you will see your process looping on the same pgm...highlight the process and access into it in debug mode from the menu...
    here you can change flag in 'X', exit from the loop and continue all the process in debug !!!
    Hope it helps!
    Bye,
    Roberto
    ...and please don't forget to reward the answers...it's THE way to say thanks here !

  • Skinning UI Shell selected Tabs

    Hello everybody. I've been skimming through the net a while for a simple but yet annoying problem.
    We've built our webapp based on the UI Shell architecture: http://www.oracle.com/technetwork/developer-tools/adf/uishell-093084.html
    Everything works great and our styles are fine as well, but there is one small problem. Older monitors lack contrast, so our tabs are not distinguishable from the background.
    http://img211.imageshack.us/img211/5184/pic1sn.png
    http://img140.imageshack.us/img140/171/pic2md.png
    As you can see, I've tried to work with the style sheet and set the panelTabbed background color to Orange. It shows up(very ugly) on the wrong tab. The "main" tab isn't rendered this way. So obviously my skinning didn't apply to this one.
    This is the root tag of the .jspx file: +<af:document id="d1" theme="dark">+
    This is in my customCSS file:
    af|panelTabbed::tab:selected
    +{+
    color:Yellow;
    background-color: Orange;
    cursor: crosshair;
    +}+
    Any ideas, why only the one tab renders the orange, the main one however doesn't?

    Okay so I made some progress with this but still can't quite figure out exactly how to get the look I want.
    I modified the .css file:
    af|navigationPane-tabs::tab:selected af|navigationPane-tabs::tab-start{
    background-color: red;
    However it doesn't set the tab itself to be red but rather the area behind the tab. It doesn't do anything if I set color:red;
    This is how it looks atm:
    http://img211.imageshack.us/img211/6329/tabbed.png
    As you can see, the red isn't supposed to be behind the tab but rather the selected tab itself should be red. I know I will have to set tab-content and tab-end as well, but thats not whats important.
    Here's also a firebug screenshot:
    http://img819.imageshack.us/img819/426/firebugh.png
    Any ideas how to get the "tab content background" or whatever one should call it to be skinned?
    Any help is greatly appreciated!
    Thanks,
    Pascal

  • Driver does not appear in the selection tab Windows8

    NDIS protocol driver does not appear in the Selection Tab and hence I can not run any tests on it. The client operating system is Windows 8 64bit Pro Premium. I tried reinstall driver several times, reboot client and studio machines, but with no results.
    Client itself is connected to the studio and is in "Ready" state.
    There was no problem running the test on the same driver with Win7 64bit client OS.
    HCK version is 8.59.29854
    The driver is build with DDK7.1.0
    Any hints on how to debug this would be helpful.
    Dmitry

    Have you uninstalled and re-install the HCK client on the test system?  This can cause the entry on the controller to not match up with the actual client system.  If this is the case, and you have done no testing on the system (as all results will
    be lost), please try this:
    1) Uninstall the DTM client from the test system.
    2) Delete the client entry from HCK studio in the machine management section.
    3) Reinstall the DTM client on the test system.
    4) Wait for client entry appear in the "Default Pool"
    5) Change client status to "Reset", wait for it to become "Ready", and try locating the target as I describe above.
    Paul - This posting is provided "AS IS" with no warranties, and confers no rights.

  • Tabbed Panel - Different selected tab gifs

    Is it possible to have different gifs show up for a selected
    tab in the Tabbed Panel example? From what I can see there's only
    one style called in the .js file. Here's my example:
    http://cftest.mccormick.com/zatstage/index.cfm
    When you click on the tabs I would like them to match the tab body
    color.

    If you mark each of your tabs with an ID then you could do
    something like this:
    .TabbedPanelsTabSelected#MostPopularTabbedPanelsTab {
    background-image: url(MostPopularTabButtonSelected.gif);
    .TabbedPanelsTabSelected#TopRatedTabbedPanelsTab {
    background-image: url(TopRatedTabButtonSelected.gif);
    .TabbedPanelsTabSelected#SearchTabbedPanelsTab {
    background-image: url(SearchTabButtonSelected.gif);
    --== Kin ==--

Maybe you are looking for

  • Why do my applications blink?

    I don't remember them doing that and it seems wrong. When I single click "Chess" the preview column blinks, and not steady, rather sporadically. Is something wrong? HELP!

  • Effects Control panel in the source window

    Is there a way to prevent Premeire 5.5 from burying the Effects tab on the source/viewer window (the one on the left) - I don't know what I'm doing wrong, but I have to keep expanding that panel's workspace just to find the effects tab. Thanks everyo

  • Where are the media files?

    I can't believe I'm asking such a basic question but I can't find the answer! Where are the media clips stored in iMovie 6? In past versions, the media was kept in a folder titled "Media". I've searched my computer for clips I want to export to FCE b

  • Error #2047: Security sandbox violation

    Does anyone know how to fix this problem? i have upload one swf (generated from proggram which made 3d galleries) on server and when my main swf load this i have this error at about 80% of loading.

  • No way to scroll a partly typed SMS message on Nok...

    One can scroll them after they are sent, etc, but once one gets past about 7 lines of typing, there is no way to review/edit the whole message. Finger scrolling does not work - one just gets the cut/copy menu popping up. Is there a better SMS app whi