property ChartView.Appearance as AppearanceEnum
Retrieves or sets the control's appearance.

 TypeDescription 
   AppearanceEnum An AppearanceEnum expression that indicates the control's appearance, or a color expression whose last 7 bits in the high significant byte of the value indicates the index of the skin in the Appearance collection, being displayed as control's borders. For instance, if the Appearance = 0x1000000, indicates that the first skin object in the Appearance collection defines the control's border.  The Client object in the skin, defines the client area of the control. The chart, scrollbars are always shown in the control's client area. The skin may contain transparent objects, and so you can define round corners. The normal.ebn file contains such of objects. Use the eXButton's Skin builder to view or change this file  

Use the Appearance property to remove the control's borders, or to define new type of borders. By default, the Appearance property is Sunken. Use the BackColor property to specify the control's background color. Use the Picture property to display a picture on the control's background. Use the PenLink property to draw links between parent and child nodes. Use the PenWidthLink property to specify the width of the link between nodes. Use the Background(exToolTipAppearance) property indicates the visual appearance of the borders of the tooltips.

The following VB sample changes the visual aspect of the borders of the control ( please check the above picture for round corners ):

With ChartView1
    .BeginUpdate
        .VisualAppearance.Add &H16, "c:\temp\normal.ebn"
        .Appearance = &H16000000
        .BackColor = RGB(250, 250, 250)
    .EndUpdate
End With

The following VB.NET sample changes the visual aspect of the borders of the control:

With AxChartView1
    .BeginUpdate()
    .VisualAppearance.Add(&H16, "c:\temp\normal.ebn")
    .Appearance = &H16000000
    .BackColor = Color.FromArgb(250, 250, 250)
    .EndUpdate()
End With

The following C# sample changes the visual aspect of the borders of the control:

axChartView1.BeginUpdate();
axChartView1.VisualAppearance.Add(0x16, "c:\\temp\\normal.ebn");
axChartView1.Appearance = (EXCHARTVIEWLib.AppearanceEnum)0x16000000;
axChartView1.BackColor = Color.FromArgb(250, 250, 250);
axChartView1.EndUpdate();

The following C++ sample changes the visual aspect of the borders of the control:

m_chartView.BeginUpdate();
m_chartView.GetVisualAppearance().Add( 0x16, COleVariant( "c:\\temp\\normal.ebn" ) );
m_chartView.SetAppearance( 0x16000000 );
m_chartView.SetBackColor( RGB(250,250,250) );
m_chartView.EndUpdate();

The following VFP sample changes the visual aspect of the borders of the control:

with thisform.ChartView1
    .BeginUpdate
        .VisualAppearance.Add(0x16, "c:\temp\normal.ebn")
        .Appearance = 0x16000000
        .BackColor = RGB(250, 250, 250)
    .EndUpdate
endwith

 


Send comments on this topic.
1999-2016 Exontrol.COM, Software. All rights reserved.