[CLOSED] Change Color Window's Header Background Color

  1. #1

    [CLOSED] Change Color Window's Header Background Color

    Hi, with this code, how can I change the window's header background color?

     Window _w = new Window
                        {
                            ID = "wndTC",
                            Title = "SomeInfo",
                            Icon = Ext.Net.Icon.Phone,
                            Height = 395,
                            Width = 740,                       
                            BodyPadding = 1,
                            Modal = true,
                            CloseAction = CloseAction.Destroy,
                            Loader = new ComponentLoader
                            {
                                Url = "isome.aspx",
                                Mode = LoadMode.Frame,
                                AutoLoad = true,
                                LoadMask =
                                {
                                    ShowMask = true
                                }
                            }
                        };
    
                        _w.Render();
                        _w.Show();
    Thanks.
    Last edited by Daniil; Jan 30, 2015 at 2:40 PM. Reason: [CLOSED]
  2. #2
    The following video should help:

    https://vimeo.com/10076549

    Geoffrey McGill
    Founder
  3. #3

    What if I have more than one Window

    Thanks for reply.

    But does it exist a property "Cls" or something I can parametrize the style I need?

    So, with the sample you gave, it works, but what if I have more than one window, and I need different colors for each of them.
  4. #4
    Hi,

    You can use a Window's Cls property. It is a CSS class name that is applied to a Window's HTML element. Using that CSS class name you can define respective CSS rules for individual Windows.

Similar Threads

  1. Replies: 8
    Last Post: May 22, 2014, 1:12 PM
  2. [CLOSED] Best way to change background color when a window comes up
    By posser in forum 2.x Legacy Premium Help
    Replies: 4
    Last Post: Jan 21, 2014, 11:44 AM
  3. [CLOSED] Gridpanel - group header - Dyamically change background color
    By PriceRightHTML5team in forum 2.x Legacy Premium Help
    Replies: 14
    Last Post: Jul 24, 2013, 12:37 PM
  4. [CLOSED] Change TreePanel background color and toolbar color
    By jchau in forum 2.x Legacy Premium Help
    Replies: 5
    Last Post: Dec 07, 2012, 4:42 PM
  5. Change Tab background color or background image
    By georgelanes in forum 1.x Help
    Replies: 0
    Last Post: Nov 06, 2008, 3:55 PM

Posting Permissions