Type | Description | |||
OnResizeControlEnum | An OnResizeControlEnum expression that specifies the operation the control does when it is resized. |
Also, you can use the OnResizeControl property to specify one of the followings:
auto hide the calendar panel. Ability to hide the calendar section while the cursor is not in it (OnResizeControlEnum.exResizePanelRight Or OnResizeControlEnum.exCalendarFit Or OnResizeControlEnum.exCalendarAutoHide).
hide completely the calendar section (exHideSplitter)
specify the alignment of the calendar, as on the left or right side of the schedule view (OnResizeControlEnum.exChangePanels Or OnResizeControlEnum.exCalendarFit)
full or partially view of the calendar panel (exResizePanelRight)
disabling the control's vertical split bar ( so user can not resize the fixed panel ) (OnResizeControlEnum.exResizePanelRight Or OnResizeControlEnum.exDisableSplitter Or OnResizeControlEnum.exCalendarFit)
use the Calendar.Parent property to move the calendar panel outside of the scheduler
The following samples hide the Calendar panel of the component:
VBA (MS Access, Excell...)
With Schedule1 .OnResizeControl = 768 .ScrollBars = 0 End With
VB6
With Schedule1 .OnResizeControl = OnResizeControlEnum.exHideSplitter Or OnResizeControlEnum.exChangePanels .ScrollBars = exNoScroll End With
VB.NET
With Exschedule1 .OnResizeControl = exontrol.EXSCHEDULELib.OnResizeControlEnum.exHideSplitter Or exontrol.EXSCHEDULELib.OnResizeControlEnum.exChangePanels .ScrollBars = exontrol.EXSCHEDULELib.ScrollBarsEnum.exNoScroll End With
VB.NET for /COM
With AxSchedule1 .OnResizeControl = EXSCHEDULELib.OnResizeControlEnum.exHideSplitter Or EXSCHEDULELib.OnResizeControlEnum.exChangePanels .ScrollBars = EXSCHEDULELib.ScrollBarsEnum.exNoScroll 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->PutOnResizeControl(EXSCHEDULELib::OnResizeControlEnum(EXSCHEDULELib::exHideSplitter | EXSCHEDULELib::exChangePanels));
spSchedule1->PutScrollBars(EXSCHEDULELib::exNoScroll);
C++ Builder
Schedule1->OnResizeControl = Exschedulelib_tlb::OnResizeControlEnum::exHideSplitter | Exschedulelib_tlb::OnResizeControlEnum::exChangePanels; Schedule1->ScrollBars = Exschedulelib_tlb::ScrollBarsEnum::exNoScroll;
C#
exschedule1.OnResizeControl = exontrol.EXSCHEDULELib.OnResizeControlEnum.exHideSplitter | exontrol.EXSCHEDULELib.OnResizeControlEnum.exChangePanels; exschedule1.ScrollBars = exontrol.EXSCHEDULELib.ScrollBarsEnum.exNoScroll;
JavaScript
<OBJECT classid="clsid:9B09E13D-7A88-4299-9DBE-383380435377" id="Schedule1"></OBJECT> <SCRIPT LANGUAGE="JScript"> Schedule1.OnResizeControl = 768; Schedule1.ScrollBars = 0; </SCRIPT>
C# for /COM
axSchedule1.OnResizeControl = EXSCHEDULELib.OnResizeControlEnum.exHideSplitter | EXSCHEDULELib.OnResizeControlEnum.exChangePanels; axSchedule1.ScrollBars = EXSCHEDULELib.ScrollBarsEnum.exNoScroll;
X++ (Dynamics Ax 2009)
public void init() { ; super(); exschedule1.OnResizeControl(768/*exHideSplitter | exChangePanels*/); exschedule1.ScrollBars(0/*exNoScroll*/); }
Delphi 8 (.NET only)
with AxSchedule1 do begin OnResizeControl := Integer(EXSCHEDULELib.OnResizeControlEnum.exHideSplitter) Or Integer(EXSCHEDULELib.OnResizeControlEnum.exChangePanels); ScrollBars := EXSCHEDULELib.ScrollBarsEnum.exNoScroll; end
Delphi (standard)
with Schedule1 do begin OnResizeControl := Integer(EXSCHEDULELib_TLB.exHideSplitter) Or Integer(EXSCHEDULELib_TLB.exChangePanels); ScrollBars := EXSCHEDULELib_TLB.exNoScroll; end
VFP
with thisform.Schedule1 .OnResizeControl = 768 .ScrollBars = 0 endwith
dBASE Plus
local oSchedule oSchedule = form.Activex1.nativeObject oSchedule.OnResizeControl = 768 /*exHideSplitter | exChangePanels*/ oSchedule.ScrollBars = 0
XBasic (Alpha Five)
Dim oSchedule as P oSchedule = topparent:CONTROL_ACTIVEX1.activex oSchedule.OnResizeControl = 768 'exHideSplitter + exChangePanels oSchedule.ScrollBars = 0
Visual Objects
oDCOCX_Exontrol1:OnResizeControl := exHideSplitter | exChangePanels oDCOCX_Exontrol1:ScrollBars := exNoScroll
PowerBuilder
OleObject oSchedule oSchedule = ole_1.Object oSchedule.OnResizeControl = 768 /*exHideSplitter | exChangePanels*/ oSchedule.ScrollBars = 0