[CLOSED] Customize a window

  1. #1

    [CLOSED] Customize a window

    Hi,

    Can i customize a window? how?.
    I need to change the color of close button and add a kind of tooltip to this button, like "Close Window".

    Best regards.
    Last edited by Daniil; May 13, 2014 at 4:12 PM. Reason: [CLOSED]
  2. #2
    Hi @opendat,

    I can suggest the following.

    Example
    <%@ Page Language="C#" %>
    
    <!DOCTYPE html>
    <html>
    <head runat="server">
        <title>Ext.NET v2 Example</title>
    
        <style>
            .x-tool-my-close {
                background-image: url("resources/images/test.png");
            }
        </style>
    </head>
    <body>
        <form runat="server">
            <ext:ResourceManager runat="server" />
    
            <ext:Window runat="server" Closable="false">
                <Tools>
                    <ext:Tool ToolTip="My Close Tool" CustomType="my-close" Handler="owner.ownerCt.close();" />
                </Tools>
            </ext:Window>
        </form>
    </body>
    </html>
  3. #3
    Hi Daniil,

    great! thanks for your answer.

    It works for me, but the button has less opacity, some way to improve the opacity?
    and another question...
    can i use this method to change the close button in a messagebox?

    thanks...
  4. #4
    Quote Originally Posted by opendat2000 View Post
    It works for me, but the button has less opacity, some way to improve the opacity?
    Could you, please, clarify less than what?

    Quote Originally Posted by opendat2000 View Post
    can i use this method to change the close button in a messagebox?
    I think no. You can do it via override the background/background-image CSS rule of the default close tool. This same approach is also possible with a regular Window.
  5. #5
    Quote Originally Posted by Daniil View Post
    Could you, please, clarify less than what?
    The image used, don't show the real color when is in the messagebox, is like transparent.

    Thanks.
  6. #6
    Please provide a sample to reproduce and a screenshot of what you see running that sample.

Similar Threads

  1. [CLOSED] How to customize the gridpanel headers?
    By bogc in forum 2.x Legacy Premium Help
    Replies: 4
    Last Post: Sep 23, 2013, 4:03 AM
  2. How to customize CalendarPanel EventWindow?
    By ozlem in forum 2.x Help
    Replies: 10
    Last Post: Mar 04, 2013, 7:44 AM
  3. [CLOSED] How to customize UI and Icons in desktop
    By pawangyanwali in forum 2.x Legacy Premium Help
    Replies: 11
    Last Post: Nov 10, 2012, 4:49 AM
  4. Ext.Net Webdesktop customize shortcuts
    By blue in forum 1.x Help
    Replies: 3
    Last Post: Apr 05, 2011, 1:12 PM
  5. Customize DateField control?
    By ydnah2 in forum 1.x Help
    Replies: 2
    Last Post: Sep 18, 2009, 9:30 AM

Tags for this Thread

Posting Permissions