Type | Description | |||
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 list/hierarchy, scrollbars are always shown in the control's client area. The skin may contain transparent objects, and so you can define round corners. The frame.ebn file contains such of objects. Use the eXButton's Skin builder to view or change this file |
With StatusBar1 .BeginUpdate .VisualAppearance.Add 1,"c:\exontrol\images\normal.ebn" .Appearance = 16777216 .VisualAppearance.Add 4,"c:\exontrol\images\border.ebn" .VisualAppearance.Add 5,"CP:4 1 1 -1 -1" .BackColorPanels = 83886080 .Format = "1,2,3,4,(5/6/7/8)" .Debug = True .EndUpdate End WithThe following VB.NET sample shows "How do I change the control's border, using your EBN files":
With AxStatusBar1 .BeginUpdate .VisualAppearance.Add 1,"c:\exontrol\images\normal.ebn" .Appearance = 16777216 .VisualAppearance.Add 4,"c:\exontrol\images\border.ebn" .VisualAppearance.Add 5,"CP:4 1 1 -1 -1" .GetOcx().BackColorPanels = &H5000000 .Format = "1,2,3,4,(5/6/7/8)" .Debug = True .EndUpdate End WithThe following C++ sample shows "How do I change the control's border, using your EBN files":
/* Copy and paste the following directives to your header file as it defines the namespace 'EXSTATUSBARLib' for the library: 'ExStatusBar 1.0 Control Library' #import "D:\\Exontrol\\ExStatusBar\\project\\Demo\\ExStatusBar.dll" using namespace EXSTATUSBARLib; */ EXSTATUSBARLib::IStatusBarPtr spStatusBar1 = GetDlgItem(IDC_STATUSBAR1)->GetControlUnknown(); spStatusBar1->BeginUpdate(); spStatusBar1->GetVisualAppearance()->Add(1,"c:\\exontrol\\images\\normal.ebn"); spStatusBar1->PutAppearance((EXSTATUSBARLib::AppearanceEnum)16777216); spStatusBar1->GetVisualAppearance()->Add(4,"c:\\exontrol\\images\\border.ebn"); spStatusBar1->GetVisualAppearance()->Add(5,"CP:4 1 1 -1 -1"); spStatusBar1->PutBackColorPanels(83886080); spStatusBar1->PutFormat(L"1,2,3,4,(5/6/7/8)"); spStatusBar1->PutDebug(VARIANT_TRUE); spStatusBar1->EndUpdate();The following C# sample shows "How do I change the control's border, using your EBN files":
axStatusBar1.BeginUpdate(); axStatusBar1.VisualAppearance.Add(1,"c:\\exontrol\\images\\normal.ebn"); axStatusBar1.Appearance = (EXSTATUSBARLib.AppearanceEnum)16777216; axStatusBar1.VisualAppearance.Add(4,"c:\\exontrol\\images\\border.ebn"); axStatusBar1.VisualAppearance.Add(5,"CP:4 1 1 -1 -1"); (axStatusBar1.GetOcx() as EXSTATUSBARLib.StatusBar).BackColorPanels = 0x5000000; axStatusBar1.Format = "1,2,3,4,(5/6/7/8)"; axStatusBar1.Debug = true; axStatusBar1.EndUpdate();The following VFP sample shows "How do I change the control's border, using your EBN files":
with thisform.StatusBar1 .BeginUpdate .VisualAppearance.Add(1,"c:\exontrol\images\normal.ebn") .Appearance = 16777216 .VisualAppearance.Add(4,"c:\exontrol\images\border.ebn") .VisualAppearance.Add(5,"CP:4 1 1 -1 -1") .BackColorPanels = 83886080 .Format = "1,2,3,4,(5/6/7/8)" .Debug = .T. .EndUpdate endwith