Type | Description | |||
Color | A Color expression that specifies the panel's background color. The last 7 bits in the high significant byte of the color to indicates the identifier of the skin being used. Use the Add method to add new skins to the control. If you need to remove the skin appearance from a part of the control you need to reset the last 7 bits in the high significant byte of the color being applied to the background's part. |
The following VB sample shows "How can I change the panel's background color":
With StatusBar1 .BeginUpdate .Format = """"":4,((4;""""/1/4;""""),"""":4,(4;""""/2/4;"""")),"""":4" With .Panel(1) .Text = "Panel 1" .BackColor = 65535 End With With .Panel(2) .Text = "Panel 2" .BackColor = 16711935 End With .EndUpdate End WithThe following VB.NET sample shows "How can I change the panel's background color":
With AxStatusBar1 .BeginUpdate .Format = """"":4,((4;""""/1/4;""""),"""":4,(4;""""/2/4;"""")),"""":4" With .get_Panel(1) .Text = "Panel 1" .BackColor = 65535 End With With .get_Panel(2) .Text = "Panel 2" .BackColor = 16711935 End With .EndUpdate End WithThe following C++ sample shows "How can I change the panel's background color":
/* 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 "C:\\WINNT\\system32\\ExStatusBar.dll" using namespace EXSTATUSBARLib; */ EXSTATUSBARLib::IStatusBarPtr spStatusBar1 = GetDlgItem(IDC_STATUSBAR1)->GetControlUnknown(); spStatusBar1->BeginUpdate(); spStatusBar1->PutFormat(L"\"\":4,((4;\"\"/1/4;\"\"),\"\":4,(4;\"\"/2/4;\"\")),\"\":4"); EXSTATUSBARLib::IPanelPtr var_Panel = spStatusBar1->GetPanel(long(1)); var_Panel->PutText(L"Panel 1"); var_Panel->PutBackColor(65535); EXSTATUSBARLib::IPanelPtr var_Panel1 = spStatusBar1->GetPanel(long(2)); var_Panel1->PutText(L"Panel 2"); var_Panel1->PutBackColor(16711935); spStatusBar1->EndUpdate();The following C# sample shows "How can I change the panel's background color":
axStatusBar1.BeginUpdate(); axStatusBar1.Format = "\"\":4,((4;\"\"/1/4;\"\"),\"\":4,(4;\"\"/2/4;\"\")),\"\":4"; EXSTATUSBARLib.Panel var_Panel = axStatusBar1.get_Panel(1); var_Panel.Text = "Panel 1"; var_Panel.BackColor = 65535; EXSTATUSBARLib.Panel var_Panel1 = axStatusBar1.get_Panel(2); var_Panel1.Text = "Panel 2"; var_Panel1.BackColor = 16711935; axStatusBar1.EndUpdate();The following VFP sample shows "How can I change the panel's background color":
with thisform.StatusBar1 .BeginUpdate .Format = ""+chr(34)+""+chr(34)+":4,((4;"+chr(34)+""+chr(34)+"/1/4;"+chr(34)+""+chr(34)+"),"+chr(34)+""+chr(34)+":4,(4;"+chr(34)+""+chr(34)+"/2/4;"+chr(34)+""+chr(34)+")),"+chr(34)+""+chr(34)+":4" with .Panel(1) .Text = "Panel 1" .BackColor = 65535 endwith with .Panel(2) .Text = "Panel 2" .BackColor = 16711935 endwith .EndUpdate endwith