See Also

Toolbar Class  | Toolbar Members

Language

Visual Basic

C#

Show All

See Also Languages ActiveReports.Viewer Send feedback to Data Dynamics

Images Property

Gets or sets the collection of images available to the toolbar button controls.

[Visual Basic]
Public Property Images As ImageList
[C#]
public ImageList Images {get; set;}

Return Type

An ImageList object that contains images available to the toolbar Tools. The default is a null reference (Nothing in Visual Basic).

Remarks

The mask color for images should be System.Drawing.Color.Magenta. Also, in order for the images to show correctly, they should be bitmaps rather than icons.

Example

[C#] 

private void arv_Load(object sender, System.EventArgs e) 

    //create a new button 
    DataDynamics.ActiveReports.Toolbar.Button b = new DataDynamics.ActiveReports.Toolbar.Button(); 
    b.ButtonStyle = DataDynamics.ActiveReports.Toolbar.ButtonStyle.Icon; 
    b.Enabled = true; 
    b.Id = 777; 
    b.ImageIndex = 0; 
    b.ToolTip = "Do not click here."; 
    b.Visible = true; 
 
    //create a new image list 
    System.Windows.Forms.ImageList i = new ImageList(); 
    i.Images.Add(Image.FromFile("c:\\icons\\Zero Suit.ico")); 
    i.Images.Add(Image.FromFile("c:\\icons\\The Other Band.ico")); 
 
    //create a new toolbar 
    DataDynamics.ActiveReports.Toolbar.Toolbar t = new DataDynamics.ActiveReports.Toolbar.Toolbar(); 
    t.DisplayToolTips = true; 
    t.Images = i; 
    t.Parent = arv.Parent; 
    t.Tools.Add(b); 
    t.Wrappable = true; 
 
    rptDD rpt = new rptDD(); 
    rpt.Run(); 
    arv.Document = rpt.Document; 
}

[Visual Basic] 

Private Sub arv_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles arv.Load
    'create a new button
    Dim b As New DataDynamics.ActiveReports.Toolbar.Button
    b.ButtonStyle = DataDynamics.ActiveReports.Toolbar.ButtonStyle.Icon
    b.Enabled = True
    b.Id = 777
    b.ImageIndex = 0
    b.ToolTip = "Do not click here."
    b.Visible = True

    'create a new image list
    Dim i As New System.Windows.Forms.ImageList
    i.Images.Add(Image.FromFile("c:\icons\Zero Suit.ico"))
    i.Images.Add(Image.FromFile("c:\icons\The Other Band.ico"))

    'create a new toolbar
    Dim t As New DataDynamics.ActiveReports.Toolbar.Toolbar
    t.DisplayToolTips = True
    t.Images = i
    t.Parent = arv.Parent
    t.Tools.Add(b)
    t.Wrappable = True

    Dim rpt As New rptDD
    rpt.Run()
    arv.Document = rpt.Document
End Sub

See Also

Toolbar Class  | Toolbar Members

 

 


Copyright © 2004-2005 Data Dynamics, Ltd. All rights reserved.