How to set text font for a coolite popup window

  1. #1

    How to set text font for a coolite popup window

    I have a window for that i need to no that what is the fonr that is defaultly set for text of that window can anyone help me please..
  2. #2

    RE: How to set text font for a coolite popup window

    Hi ajaybabu.maddinani,

    I'm not sure I understand your request. Can you provide further explanation, or a code sample demonstrating the scenario?


    Geoffrey McGill
    Founder
  3. #3

    RE: How to set text font for a coolite popup window



    Hi

    You can add a panel to the windows body property, add code to the bodystyle and html properties
    eg
    <ext:Window 
        ID="winAbout" 
        runat="server" 
        Icon="Information" 
        Title="About"
        Width="300"
        AutoHeight="true"
        ShowOnLoad="false" 
        Modal="true"
        DefaultButton="btnClose"
        Shadow="Drop"
        ShadowOffset="5" 
        AnimateTarget="itemAbout"
        AnimCollapse="true"
        Border="false">
        <Body>
            <ext:Panel 
                ID="panelAbout" 
                runat="server"
                BodyStyle="padding: 5px 10px 5px 10px; 
                    background-color: #E8E8E8; 
                    border: 5px solid #E8E8E8; 
                    border-bottom=none;
                    font:10px Verdana,arial,sans-serif;
                    color: #000; text-align: left;">
            </ext:Panel>
        </Body>
        <BottomBar>
            <ext:StatusBar ID="stbAbout" runat="server" DefaultText="" Flat="true">
                <Items>
                    <ext:ToolbarButton 
                        ID="btnClose" 
                        runat="server" 
                        Text="Close window" 
                        Icon="Accept" 
                        Type="Submit" 
                        StandOut="true"> 
                        <Listeners>
                            <Click Handler="#{winAbout}.hide(null);" />
                        </Listeners>
                    </ext:ToolbarButton>
                </Items>
            </ext:StatusBar>
        </BottomBar> 
    </ext:Window>
    I have this C# function in my codebehind class
    protected void Page_Init(object sender, EventArgs e)
    {
        .....
        this.panelAbout.Html = this.GetAboutContent();
        .....
    }
    
    protected string GetAboutContent()
    {
        StringBuilder _about = new StringBuilder();
        _about.AppendFormat(
            "<h1>{0}</h1><p>{1}</p>&amp;nbsp;", this.Title, "for <application name>");
        _about.AppendFormat(
            "<h1>{0}</h1><p>{1}</p>&amp;nbsp;", 
            "Contact", 
            "email: <a style='color: #000;text-decoration: none;'href=mailto:mail@address.com>mail@address.com</a>");
        _about.AppendFormat(
            "<p style=\"text-align='right'\">{0} {1}/{2}</p>",
            Configuration.Parameters.Copyright,      // public constants/parameters
            Configuration.Parameters.Application,
            Configuration.Parameters.CooliteBlack);
        return _about.ToString();
    }
    hth
  4. #4

    RE: How to set text font for a coolite popup window

    Hi geoffrey,
    I just want know default font for coolite popup windows because i have lot of windows embedded in one parent window and strangley font of one of child windows is looking different from others so i want to apply the font of other windows to this window forcefully so can you give me the default font for windows
    <h2><a &#111;nmouseover="window.status = window.location;return true;" &#111;nmouseout="window.status='';return true;" title="View geoffrey.mcgill's Profile..." id="ctl10_ctlTopic_ctlPanelBar_ctlTopicsRepeater_c tl07_smAuthorName" href="void('');">
    </a></h2>

Similar Threads

  1. Replies: 1
    Last Post: Jun 18, 2012, 3:41 PM
  2. [CLOSED] How to remove 'X' (window close) for popup window?
    By rnachman in forum 1.x Legacy Premium Help
    Replies: 2
    Last Post: Dec 31, 2011, 3:50 AM
  3. [CLOSED] Button event is not firing in parent window from popup window
    By rnachman in forum 1.x Legacy Premium Help
    Replies: 1
    Last Post: Mar 14, 2011, 7:35 PM
  4. Replies: 1
    Last Post: Mar 14, 2011, 4:20 PM
  5. Replies: 1
    Last Post: Mar 11, 2011, 10:07 PM

Posting Permissions