Type | Description | |||
Type as DescriptionTypeEnum | A DescriptionTypeEnum expression that defines the UI part to change its caption. | |||
String | A string expression that defines the new caption for the giving UI part. |
The following samples translate "All" in the drop down filter of the groups to "Todos":
VBA (MS Access, Excell...)
With Schedule1 .Description(0) = "(todos)" .DisplayGroupingButton = True .ShowGroupingEvents = True .Groups.Add 1,"Pro" End With
VB6
With Schedule1 .Description(exGroupBarAll) = "(todos)" .DisplayGroupingButton = True .ShowGroupingEvents = True .Groups.Add 1,"Pro" End With
VB.NET
With Exschedule1 .set_Description(exontrol.EXSCHEDULELib.DescriptionTypeEnum.exGroupBarAll,"(todos)") .DisplayGroupingButton = True .ShowGroupingEvents = True .Groups.Add(1,"Pro") End With
VB.NET for /COM
With AxSchedule1 .set_Description(EXSCHEDULELib.DescriptionTypeEnum.exGroupBarAll,"(todos)") .DisplayGroupingButton = True .ShowGroupingEvents = True .Groups.Add(1,"Pro") 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->PutDescription(EXSCHEDULELib::exGroupBarAll,L"(todos)"); spSchedule1->PutDisplayGroupingButton(VARIANT_TRUE); spSchedule1->PutShowGroupingEvents(VARIANT_TRUE); spSchedule1->GetGroups()->Add(1,L"Pro");
C++ Builder
Schedule1->Description[Exschedulelib_tlb::DescriptionTypeEnum::exGroupBarAll] = L"(todos)"; Schedule1->DisplayGroupingButton = true; Schedule1->ShowGroupingEvents = true; Schedule1->Groups->Add(1,L"Pro");
C#
exschedule1.set_Description(exontrol.EXSCHEDULELib.DescriptionTypeEnum.exGroupBarAll,"(todos)"); exschedule1.DisplayGroupingButton = true; exschedule1.ShowGroupingEvents = true; exschedule1.Groups.Add(1,"Pro");
JavaScript
<OBJECT classid="clsid:9B09E13D-7A88-4299-9DBE-383380435377" id="Schedule1"></OBJECT> <SCRIPT LANGUAGE="JScript"> Schedule1.Description(0) = "(todos)"; Schedule1.DisplayGroupingButton = true; Schedule1.ShowGroupingEvents = true; Schedule1.Groups.Add(1,"Pro"); </SCRIPT>
C# for /COM
axSchedule1.set_Description(EXSCHEDULELib.DescriptionTypeEnum.exGroupBarAll,"(todos)"); axSchedule1.DisplayGroupingButton = true; axSchedule1.ShowGroupingEvents = true; axSchedule1.Groups.Add(1,"Pro");
X++ (Dynamics Ax 2009)
public void init() { ; super(); exschedule1.Description(0/*exGroupBarAll*/,"(todos)"); exschedule1.DisplayGroupingButton(true); exschedule1.ShowGroupingEvents(true); exschedule1.Groups().Add(1,"Pro"); }
Delphi 8 (.NET only)
with AxSchedule1 do begin set_Description(EXSCHEDULELib.DescriptionTypeEnum.exGroupBarAll,'(todos)'); DisplayGroupingButton := True; ShowGroupingEvents := True; Groups.Add(1,'Pro'); end
Delphi (standard)
with Schedule1 do begin Description[EXSCHEDULELib_TLB.exGroupBarAll] := '(todos)'; DisplayGroupingButton := True; ShowGroupingEvents := True; Groups.Add(1,'Pro'); end
VFP
with thisform.Schedule1 .Object.Description(0) = "(todos)" .DisplayGroupingButton = .T. .ShowGroupingEvents = .T. .Groups.Add(1,"Pro") endwith
dBASE Plus
local oSchedule oSchedule = form.Activex1.nativeObject oSchedule.Template = [Description(0) = "(todos)"] // oSchedule.Description(0) = "(todos)" oSchedule.DisplayGroupingButton = true oSchedule.ShowGroupingEvents = true oSchedule.Groups.Add(1,"Pro")
XBasic (Alpha Five)
Dim oSchedule as P oSchedule = topparent:CONTROL_ACTIVEX1.activex oSchedule.Template = "Description(0) = \"(todos)\"" ' oSchedule.Description(0) = "(todos)" oSchedule.DisplayGroupingButton = .t. oSchedule.ShowGroupingEvents = .t. oSchedule.Groups.Add(1,"Pro")
Visual Objects
oDCOCX_Exontrol1:[Description,exGroupBarAll] := "(todos)" oDCOCX_Exontrol1:DisplayGroupingButton := true oDCOCX_Exontrol1:ShowGroupingEvents := true oDCOCX_Exontrol1:Groups:Add(1,"Pro")
PowerBuilder
OleObject oSchedule oSchedule = ole_1.Object oSchedule.Description(0,"(todos)") oSchedule.DisplayGroupingButton = true oSchedule.ShowGroupingEvents = true oSchedule.Groups.Add(1,"Pro")