[CLOSED] [1.0] button's icon not displayed

  1. #1

    [CLOSED] [1.0] button's icon not displayed

    Hi,
    I create a button runtime on vbside and I set icon property to value "diskblack"; when I run it, it does not display the icon; but if I define the same icon on a button in makup then I see it also for my "runtime" button. What I have to do for ?

    This my VB code.

    Dim PanDoc2 As New Panel
    PanDoc2.Border = "true"
    PanDoc2.Title = ""
    PanDoc2.ID = "PANEL_1"
    PanDoc2.AnchorHorizontal = "right"
    PanDoc2.AnchorVertical = "20%"
    
    
    
    Dim Campi As New Ext.Net.ColumnLayout
    
    
    Dim Btn_Download As New Ext.Net.Button
    Btn_Download.Icon = Icon.DiskBlack
    Btn_Download.ID = "DOWN_1"
    Btn_Download.ToolTip = "download"
    Btn_Download.StyleSpec = "padding-top:10px;"
    
    
    
    Dim PanDown As New Panel
    PanDown.Border = False
    PanDown.StyleSpec = "text-align:center;"
    PanDown.Items.Add(Btn_Download)
    
    
    Dim ColDown As New Ext.Net.LayoutColumn
    ColDown.ColumnWidth = 0.07
    ColDown.Items.Add(PanDown)
    Campi.Columns.Add(ColDown)
    
    
    PanDoc2.Items.Add(Campi)

    Thanks in advance,
    Paolo
  2. #2

    RE: [CLOSED] [1.0] button's icon not displayed

    Hi,

    Did you create button during DirectEvent? If yes then you should register icon during initial PageLoad
    ResourceManager1.RegisterIcon(Icon.DiskBlack);
  3. #3

    RE: [CLOSED] [1.0] button's icon not displayed

    Hi Vladimiri,
    yes, I create it during DirectEvent.
    But my page is inherited from Master that contains ResourceManager element.

    How can I referred to it from my pageLoad event ?

    Many thanks, Paolo
  4. #4

    RE: [CLOSED] [1.0] button's icon not displayed

    Hi,

    ResourceManager.GetInstance(this);
  5. #5

    RE: [CLOSED] [1.0] button's icon not displayed

    Hi Vladimir,
    I found the way...
    Page.Master.FindControl("ResourceManager1")
    and it works fine!!!


    Please mark as "solved".


    Many thanks for your support.

    Paolo


Similar Threads

  1. [CLOSED] how to change button's icon in 2.0
    By Fahd in forum 2.x Legacy Premium Help
    Replies: 2
    Last Post: Jul 12, 2012, 8:59 PM
  2. [CLOSED] How to set Icon for a button in Javascript?
    By nhg_itd in forum 1.x Legacy Premium Help
    Replies: 2
    Last Post: Jun 07, 2012, 3:12 AM
  3. [CLOSED] Flat-Button in CompositeField not displayed properly
    By pschojer in forum 1.x Legacy Premium Help
    Replies: 1
    Last Post: Sep 29, 2011, 11:47 AM
  4. Icon displayed/rendered incorrectly
    By sky73rx3 in forum 1.x Help
    Replies: 1
    Last Post: Sep 10, 2011, 6:52 AM
  5. Replies: 1
    Last Post: Mar 03, 2009, 12:15 PM

Posting Permissions