property Schedule.Background(Part as BackgroundPartEnum) as Color
Returns or sets a value that indicates the background color for parts in the control.

TypeDescription
Part as BackgroundPartEnum A BackgroundPartEnum expression that indicates a part in the control.
Color A Color expression that indicates the background color for a specified part. 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 Background property specifies a background color or a visual appearance for specific parts in the control. If the Background property is 0, the control draws the part as default. Use the Add method to add new skins to the control. Use the Remove method to remove a specific skin from the control. Use the Clear method to remove all skins in the control. Use the BeginUpdate and EndUpdate methods to maintain performance while init the control. Use the Refresh method to refresh the control.

The following screen shot shows the control's  scroll bars with a different visual appearance:

The following samples changes the background color for selected dates in the calendar panel, so always is the same no matter if the control loses the focus.

VBA (MS Access, Excell...)

With Schedule1
	.Background(68) = .Background(19)
	.Background(69) = .Background(20)
End With

VB6

With Schedule1
	.Background(exCalendarSelBackColorUnFocus) = .Background(exCalendarSelBackColor)
	.Background(exCalendarSelForeColorUnFocus) = .Background(exCalendarSelForeColor)
End With

VB.NET

With Exschedule1
	.set_Background(exontrol.EXSCHEDULELib.BackgroundPartEnum.exCalendarSelBackColorUnFocus,.get_Background(exontrol.EXSCHEDULELib.BackgroundPartEnum.exCalendarSelBackColor))
	.set_Background(exontrol.EXSCHEDULELib.BackgroundPartEnum.exCalendarSelForeColorUnFocus,.get_Background(exontrol.EXSCHEDULELib.BackgroundPartEnum.exCalendarSelForeColor))
End With

VB.NET for /COM

With AxSchedule1
	.set_Background(EXSCHEDULELib.BackgroundPartEnum.exCalendarSelBackColorUnFocus,.get_Background(EXSCHEDULELib.BackgroundPartEnum.exCalendarSelBackColor))
	.set_Background(EXSCHEDULELib.BackgroundPartEnum.exCalendarSelForeColorUnFocus,.get_Background(EXSCHEDULELib.BackgroundPartEnum.exCalendarSelForeColor))
End With

C++

/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXSCHEDULELib' for the library: 'ExSchedule 1.0 Control Library'

	#import <ExSchedule.dll>
	using namespace EXSCHEDULELib;
*/
EXSCHEDULELib::ISchedulePtr spSchedule1 = GetDlgItem(IDC_SCHEDULE1)->GetControlUnknown();
spSchedule1->PutBackground(EXSCHEDULELib::exCalendarSelBackColorUnFocus,spSchedule1->GetBackground(EXSCHEDULELib::exCalendarSelBackColor));
spSchedule1->PutBackground(EXSCHEDULELib::exCalendarSelForeColorUnFocus,spSchedule1->GetBackground(EXSCHEDULELib::exCalendarSelForeColor));

C++ Builder

Schedule1->Background[Exschedulelib_tlb::BackgroundPartEnum::exCalendarSelBackColorUnFocus] = Schedule1->Background[Exschedulelib_tlb::BackgroundPartEnum::exCalendarSelBackColor];
Schedule1->Background[Exschedulelib_tlb::BackgroundPartEnum::exCalendarSelForeColorUnFocus] = Schedule1->Background[Exschedulelib_tlb::BackgroundPartEnum::exCalendarSelForeColor];

C#

exschedule1.set_Background(exontrol.EXSCHEDULELib.BackgroundPartEnum.exCalendarSelBackColorUnFocus,exschedule1.get_Background(exontrol.EXSCHEDULELib.BackgroundPartEnum.exCalendarSelBackColor));
exschedule1.set_Background(exontrol.EXSCHEDULELib.BackgroundPartEnum.exCalendarSelForeColorUnFocus,exschedule1.get_Background(exontrol.EXSCHEDULELib.BackgroundPartEnum.exCalendarSelForeColor));

JavaScript

<OBJECT classid="clsid:9B09E13D-7A88-4299-9DBE-383380435377" id="Schedule1"></OBJECT>

<SCRIPT LANGUAGE="JScript">
	Schedule1.Background(68) = Schedule1.Background(19);
	Schedule1.Background(69) = Schedule1.Background(20);
</SCRIPT>

C# for /COM

axSchedule1.set_Background(EXSCHEDULELib.BackgroundPartEnum.exCalendarSelBackColorUnFocus,axSchedule1.get_Background(EXSCHEDULELib.BackgroundPartEnum.exCalendarSelBackColor));
axSchedule1.set_Background(EXSCHEDULELib.BackgroundPartEnum.exCalendarSelForeColorUnFocus,axSchedule1.get_Background(EXSCHEDULELib.BackgroundPartEnum.exCalendarSelForeColor));

X++ (Dynamics Ax 2009)

public void init()
{
	;

	super();

	exschedule1.Background(68/*exCalendarSelBackColorUnFocus*/,exschedule1.Background(19/*exCalendarSelBackColor*/));
	exschedule1.Background(69/*exCalendarSelForeColorUnFocus*/,exschedule1.Background(20/*exCalendarSelForeColor*/));
}

Delphi 8 (.NET only)

with AxSchedule1 do
begin
	set_Background(EXSCHEDULELib.BackgroundPartEnum.exCalendarSelBackColorUnFocus,get_Background(EXSCHEDULELib.BackgroundPartEnum.exCalendarSelBackColor));
	set_Background(EXSCHEDULELib.BackgroundPartEnum.exCalendarSelForeColorUnFocus,get_Background(EXSCHEDULELib.BackgroundPartEnum.exCalendarSelForeColor));
end

Delphi (standard)

with Schedule1 do
begin
	Background[EXSCHEDULELib_TLB.exCalendarSelBackColorUnFocus] := Background[EXSCHEDULELib_TLB.exCalendarSelBackColor];
	Background[EXSCHEDULELib_TLB.exCalendarSelForeColorUnFocus] := Background[EXSCHEDULELib_TLB.exCalendarSelForeColor];
end

VFP

with thisform.Schedule1
	.Object.Background(68) = .Background(19)
	.Object.Background(69) = .Background(20)
endwith

dBASE Plus

local oSchedule

oSchedule = form.Activex1.nativeObject
oSchedule.Template = [Background(68) = Background(19)] // oSchedule.Background(68) = oSchedule.Background(19)
oSchedule.Template = [Background(69) = Background(20)] // oSchedule.Background(69) = oSchedule.Background(20)

XBasic (Alpha Five)

Dim oSchedule as P

oSchedule = topparent:CONTROL_ACTIVEX1.activex
oSchedule.Template = "Background(68) = Background(19)" ' oSchedule.Background(68) = oSchedule.Background(19)
oSchedule.Template = "Background(69) = Background(20)" ' oSchedule.Background(69) = oSchedule.Background(20)

Visual Objects


oDCOCX_Exontrol1:[Background,exCalendarSelBackColorUnFocus] := oDCOCX_Exontrol1:[Background,exCalendarSelBackColor]
oDCOCX_Exontrol1:[Background,exCalendarSelForeColorUnFocus] := oDCOCX_Exontrol1:[Background,exCalendarSelForeColor]

PowerBuilder

OleObject oSchedule

oSchedule = ole_1.Object
oSchedule.Background(68,oSchedule.Background(19))
oSchedule.Background(69,oSchedule.Background(20))