property Item.EditOption(Option as EditOptionEnum) as Variant
Specifies different options for item's edit control.

TypeDescription
Option as EditOptionEnum An EditOptionEnum expression that specifies the option to be updated.
Variant A VARIANT expression that indicates the option's value.
The EditOption property different options for item's edit control. The AllowEdit property associates an editor to the current item. The EditCaption property specifies the value to show in the edit field. The EditWidth property specifies the size/width of the edit field inside the item. The EditBorder property specifies whether the edit shows a border around it. The control fires the EditChange event when the user changes the edit's caption. For instance, the EditOption(exEditSpinStep) property specifies the step to advance when user clicks the editor's spin.

How can I assign a slider field to the item (method 2)?

VBA (MS Access, Excell...)

With ToolBar1
	With .Items
		With .Add("Slider")
			.AllowEdit = 3
			.EditWidth = -128
			.EditValue = 25
		End With
		With .Add("Slider")
			.AllowEdit = 3
			.EditBorder = 0
			.EditWidth = -128
			.EditOption(1) = 50
			.EditOption(2) = 450
			.EditOption(3) = 2
			.EditOption(4) = 50
			.EditOption(5) = "value = vmin ? '<br><font ;6><b>'+value : ( value = vmax ? '<br><font ;6><b>'+value : ( value =" & _
" 200 ? '<br><font ;6><b><fgcolor FF0000>'+value : '' ) )"
			.EditValue = 345
		End With
	End With
	.Refresh 
End With

VB6

With ToolBar1
	With .Items
		With .Add("Slider")
			.AllowEdit = exItemEditSlider
			.EditWidth = -128
			.EditValue = 25
		End With
		With .Add("Slider")
			.AllowEdit = exItemEditSlider
			.EditBorder = exEditBorderNone
			.EditWidth = -128
			.EditOption(exEditMinValue) = 50
			.EditOption(exEditMaxValue) = 450
			.EditOption(exEditTickStyle) = 2
			.EditOption(exEditTickFrequency) = 50
			.EditOption(exEditTickLabel) = "value = vmin ? '<br><font ;6><b>'+value : ( value = vmax ? '<br><font ;6><b>'+value : ( value =" & _
" 200 ? '<br><font ;6><b><fgcolor FF0000>'+value : '' ) )"
			.EditValue = 345
		End With
	End With
	.Refresh 
End With

VB.NET

With Extoolbar1
	With .Items
		With .Add("Slider")
			.AllowEdit = exontrol.EXTOOLBARLib.AllowEditEnum.exItemEditSlider
			.EditWidth = -128
			.EditValue = 25
		End With
		With .Add("Slider")
			.AllowEdit = exontrol.EXTOOLBARLib.AllowEditEnum.exItemEditSlider
			.EditBorder = exontrol.EXTOOLBARLib.EditBorderEnum.exEditBorderNone
			.EditWidth = -128
			.set_EditOption(exontrol.EXTOOLBARLib.EditOptionEnum.exEditMinValue,50)
			.set_EditOption(exontrol.EXTOOLBARLib.EditOptionEnum.exEditMaxValue,450)
			.set_EditOption(exontrol.EXTOOLBARLib.EditOptionEnum.exEditTickStyle,2)
			.set_EditOption(exontrol.EXTOOLBARLib.EditOptionEnum.exEditTickFrequency,50)
			.set_EditOption(exontrol.EXTOOLBARLib.EditOptionEnum.exEditTickLabel,"value = vmin ? '<br><font ;6><b>'+value : ( value = vmax ? '<br><font ;6><b>'+value : ( value =" & _
" 200 ? '<br><font ;6><b><fgcolor FF0000>'+value : '' ) )")
			.EditValue = 345
		End With
	End With
	.Refresh()
End With

VB.NET for /COM

With AxToolBar1
	With .Items
		With .Add("Slider")
			.AllowEdit = EXTOOLBARLib.AllowEditEnum.exItemEditSlider
			.EditWidth = -128
			.EditValue = 25
		End With
		With .Add("Slider")
			.AllowEdit = EXTOOLBARLib.AllowEditEnum.exItemEditSlider
			.EditBorder = EXTOOLBARLib.EditBorderEnum.exEditBorderNone
			.EditWidth = -128
			.EditOption(EXTOOLBARLib.EditOptionEnum.exEditMinValue) = 50
			.EditOption(EXTOOLBARLib.EditOptionEnum.exEditMaxValue) = 450
			.EditOption(EXTOOLBARLib.EditOptionEnum.exEditTickStyle) = 2
			.EditOption(EXTOOLBARLib.EditOptionEnum.exEditTickFrequency) = 50
			.EditOption(EXTOOLBARLib.EditOptionEnum.exEditTickLabel) = "value = vmin ? '<br><font ;6><b>'+value : ( value = vmax ? '<br><font ;6><b>'+value : ( value =" & _
" 200 ? '<br><font ;6><b><fgcolor FF0000>'+value : '' ) )"
			.EditValue = 345
		End With
	End With
	.Refresh()
End With

C++

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

	#import <ExToolBar.dll>
	using namespace EXTOOLBARLib;
*/
EXTOOLBARLib::IToolBarPtr spToolBar1 = GetDlgItem(IDC_TOOLBAR1)->GetControlUnknown();
EXTOOLBARLib::IItemsPtr var_Items = spToolBar1->GetItems();
	EXTOOLBARLib::IItemPtr var_Item = var_Items->Add(L"Slider",vtMissing,vtMissing);
		var_Item->PutAllowEdit(EXTOOLBARLib::exItemEditSlider);
		var_Item->PutEditWidth(-128);
		var_Item->PutEditValue(long(25));
	EXTOOLBARLib::IItemPtr var_Item1 = var_Items->Add(L"Slider",vtMissing,vtMissing);
		var_Item1->PutAllowEdit(EXTOOLBARLib::exItemEditSlider);
		var_Item1->PutEditBorder(EXTOOLBARLib::exEditBorderNone);
		var_Item1->PutEditWidth(-128);
		var_Item1->PutEditOption(EXTOOLBARLib::exEditMinValue,long(50));
		var_Item1->PutEditOption(EXTOOLBARLib::exEditMaxValue,long(450));
		var_Item1->PutEditOption(EXTOOLBARLib::exEditTickStyle,long(2));
		var_Item1->PutEditOption(EXTOOLBARLib::exEditTickFrequency,long(50));
		var_Item1->PutEditOption(EXTOOLBARLib::exEditTickLabel,_bstr_t("value = vmin ? '<br><font ;6><b>'+value : ( value = vmax ? '<br><font ;6><b>'+value : ( value =") +
" 200 ? '<br><font ;6><b><fgcolor FF0000>'+value : '' ) )");
		var_Item1->PutEditValue(long(345));
spToolBar1->Refresh();

C++ Builder

Extoolbarlib_tlb::IItemsPtr var_Items = ToolBar1->Items;
	Extoolbarlib_tlb::IItemPtr var_Item = var_Items->Add(L"Slider",TNoParam(),TNoParam());
		var_Item->AllowEdit = Extoolbarlib_tlb::AllowEditEnum::exItemEditSlider;
		var_Item->EditWidth = -128;
		var_Item->set_EditValue(TVariant(25));
	Extoolbarlib_tlb::IItemPtr var_Item1 = var_Items->Add(L"Slider",TNoParam(),TNoParam());
		var_Item1->AllowEdit = Extoolbarlib_tlb::AllowEditEnum::exItemEditSlider;
		var_Item1->EditBorder = Extoolbarlib_tlb::EditBorderEnum::exEditBorderNone;
		var_Item1->EditWidth = -128;
		var_Item1->set_EditOption(Extoolbarlib_tlb::EditOptionEnum::exEditMinValue,TVariant(50));
		var_Item1->set_EditOption(Extoolbarlib_tlb::EditOptionEnum::exEditMaxValue,TVariant(450));
		var_Item1->set_EditOption(Extoolbarlib_tlb::EditOptionEnum::exEditTickStyle,TVariant(2));
		var_Item1->set_EditOption(Extoolbarlib_tlb::EditOptionEnum::exEditTickFrequency,TVariant(50));
		var_Item1->set_EditOption(Extoolbarlib_tlb::EditOptionEnum::exEditTickLabel,TVariant(String("value = vmin ? '<br><font ;6><b>'+value : ( value = vmax ? '<br><font ;6><b>'+value : ( value =") +
" 200 ? '<br><font ;6><b><fgcolor FF0000>'+value : '' ) )"));
		var_Item1->set_EditValue(TVariant(345));
ToolBar1->Refresh();

C#

exontrol.EXTOOLBARLib.Items var_Items = extoolbar1.Items;
	exontrol.EXTOOLBARLib.Item var_Item = var_Items.Add("Slider",null,null);
		var_Item.AllowEdit = exontrol.EXTOOLBARLib.AllowEditEnum.exItemEditSlider;
		var_Item.EditWidth = -128;
		var_Item.EditValue = 25;
	exontrol.EXTOOLBARLib.Item var_Item1 = var_Items.Add("Slider",null,null);
		var_Item1.AllowEdit = exontrol.EXTOOLBARLib.AllowEditEnum.exItemEditSlider;
		var_Item1.EditBorder = exontrol.EXTOOLBARLib.EditBorderEnum.exEditBorderNone;
		var_Item1.EditWidth = -128;
		var_Item1.set_EditOption(exontrol.EXTOOLBARLib.EditOptionEnum.exEditMinValue,50);
		var_Item1.set_EditOption(exontrol.EXTOOLBARLib.EditOptionEnum.exEditMaxValue,450);
		var_Item1.set_EditOption(exontrol.EXTOOLBARLib.EditOptionEnum.exEditTickStyle,2);
		var_Item1.set_EditOption(exontrol.EXTOOLBARLib.EditOptionEnum.exEditTickFrequency,50);
		var_Item1.set_EditOption(exontrol.EXTOOLBARLib.EditOptionEnum.exEditTickLabel,"value = vmin ? '<br><font ;6><b>'+value : ( value = vmax ? '<br><font ;6><b>'+value : ( value =" +
" 200 ? '<br><font ;6><b><fgcolor FF0000>'+value : '' ) )");
		var_Item1.EditValue = 345;
extoolbar1.Refresh();

JScript/JavaScript

<BODY onload='Init()'>
<OBJECT CLASSID="clsid:DDF58CFA-750F-45E0-8A00-CFBE431702E2" id="ToolBar1"></OBJECT>

<SCRIPT LANGUAGE="JScript">
function Init()
{
	var var_Items = ToolBar1.Items;
		var var_Item = var_Items.Add("Slider",null,null);
			var_Item.AllowEdit = 3;
			var_Item.EditWidth = -128;
			var_Item.EditValue = 25;
		var var_Item1 = var_Items.Add("Slider",null,null);
			var_Item1.AllowEdit = 3;
			var_Item1.EditBorder = 0;
			var_Item1.EditWidth = -128;
			var_Item1.EditOption(1) = 50;
			var_Item1.EditOption(2) = 450;
			var_Item1.EditOption(3) = 2;
			var_Item1.EditOption(4) = 50;
			var_Item1.EditOption(5) = "value = vmin ? '<br><font ;6><b>'+value : ( value = vmax ? '<br><font ;6><b>'+value : ( value =" +
	" 200 ? '<br><font ;6><b><fgcolor FF0000>'+value : '' ) )";
			var_Item1.EditValue = 345;
	ToolBar1.Refresh();
}
</SCRIPT>
</BODY>

VBScript

<BODY onload='Init()'>
<OBJECT CLASSID="clsid:DDF58CFA-750F-45E0-8A00-CFBE431702E2" id="ToolBar1"></OBJECT>

<SCRIPT LANGUAGE="VBScript">
Function Init()
	With ToolBar1
		With .Items
			With .Add("Slider")
				.AllowEdit = 3
				.EditWidth = -128
				.EditValue = 25
			End With
			With .Add("Slider")
				.AllowEdit = 3
				.EditBorder = 0
				.EditWidth = -128
				.EditOption(1) = 50
				.EditOption(2) = 450
				.EditOption(3) = 2
				.EditOption(4) = 50
				.EditOption(5) = "value = vmin ? '<br><font ;6><b>'+value : ( value = vmax ? '<br><font ;6><b>'+value : ( value =" & _
	" 200 ? '<br><font ;6><b><fgcolor FF0000>'+value : '' ) )"
				.EditValue = 345
			End With
		End With
		.Refresh 
	End With
End Function
</SCRIPT>
</BODY>

C# for /COM

EXTOOLBARLib.Items var_Items = axToolBar1.Items;
	EXTOOLBARLib.Item var_Item = var_Items.Add("Slider",null,null);
		var_Item.AllowEdit = EXTOOLBARLib.AllowEditEnum.exItemEditSlider;
		var_Item.EditWidth = -128;
		var_Item.EditValue = 25;
	EXTOOLBARLib.Item var_Item1 = var_Items.Add("Slider",null,null);
		var_Item1.AllowEdit = EXTOOLBARLib.AllowEditEnum.exItemEditSlider;
		var_Item1.EditBorder = EXTOOLBARLib.EditBorderEnum.exEditBorderNone;
		var_Item1.EditWidth = -128;
		var_Item1.set_EditOption(EXTOOLBARLib.EditOptionEnum.exEditMinValue,50);
		var_Item1.set_EditOption(EXTOOLBARLib.EditOptionEnum.exEditMaxValue,450);
		var_Item1.set_EditOption(EXTOOLBARLib.EditOptionEnum.exEditTickStyle,2);
		var_Item1.set_EditOption(EXTOOLBARLib.EditOptionEnum.exEditTickFrequency,50);
		var_Item1.set_EditOption(EXTOOLBARLib.EditOptionEnum.exEditTickLabel,"value = vmin ? '<br><font ;6><b>'+value : ( value = vmax ? '<br><font ;6><b>'+value : ( value =" +
" 200 ? '<br><font ;6><b><fgcolor FF0000>'+value : '' ) )");
		var_Item1.EditValue = 345;
axToolBar1.Refresh();

X++ (Dynamics Ax 2009)

public void init()
{
	COM com_Item,com_Item1,com_Items;
	anytype var_Item,var_Item1,var_Items;
	str var_s;
	;

	super();

	var_Items = extoolbar1.Items(); com_Items = var_Items;
		var_Item = com_Items.Add("Slider"); com_Item = var_Item;
			com_Item.AllowEdit(3/*exItemEditSlider*/);
			com_Item.EditWidth(-128);
			com_Item.EditValue(COMVariant::createFromInt(25));
		var_Item1 = com_Items.Add("Slider"); com_Item1 = var_Item1;
			com_Item1.AllowEdit(3/*exItemEditSlider*/);
			com_Item1.EditBorder(0/*exEditBorderNone*/);
			com_Item1.EditWidth(-128);
			com_Item1.EditOption(1/*exEditMinValue*/,COMVariant::createFromInt(50));
			com_Item1.EditOption(2/*exEditMaxValue*/,COMVariant::createFromInt(450));
			com_Item1.EditOption(3/*exEditTickStyle*/,COMVariant::createFromInt(2));
			com_Item1.EditOption(4/*exEditTickFrequency*/,COMVariant::createFromInt(50));
			var_s = "value = vmin ? '<br><font ;6><b>'+value : ( value = vmax ? '<br><font ;6><b>'+value : ( value = ";
			var_s = var_s + "200 ? '<br><font ;6><b><fgcolor FF0000>'+value : '' ) )";
			com_Item1.EditOption(5/*exEditTickLabel*/,COMVariant::createFromStr(var_s));
			com_Item1.EditValue(COMVariant::createFromInt(345));
	extoolbar1.Refresh();
}

Delphi 8 (.NET only)

with AxToolBar1 do
begin
	with Items do
	begin
		with Add('Slider',Nil,Nil) do
		begin
			AllowEdit := EXTOOLBARLib.AllowEditEnum.exItemEditSlider;
			EditWidth := -128;
			EditValue := TObject(25);
		end;
		with Add('Slider',Nil,Nil) do
		begin
			AllowEdit := EXTOOLBARLib.AllowEditEnum.exItemEditSlider;
			EditBorder := EXTOOLBARLib.EditBorderEnum.exEditBorderNone;
			EditWidth := -128;
			EditOption[EXTOOLBARLib.EditOptionEnum.exEditMinValue] := TObject(50);
			EditOption[EXTOOLBARLib.EditOptionEnum.exEditMaxValue] := TObject(450);
			EditOption[EXTOOLBARLib.EditOptionEnum.exEditTickStyle] := TObject(2);
			EditOption[EXTOOLBARLib.EditOptionEnum.exEditTickFrequency] := TObject(50);
			EditOption[EXTOOLBARLib.EditOptionEnum.exEditTickLabel] := 'value = vmin ? ''<br><font ;6><b>''+value : ( value = vmax ? ''<br><font ;6><b>''+value : ( value = ' + 
	'200 ? ''<br><font ;6><b><fgcolor FF0000>''+value : '''' ) )';
			EditValue := TObject(345);
		end;
	end;
	Refresh();
end

Delphi (standard)

with ToolBar1 do
begin
	with Items do
	begin
		with Add('Slider',Null,Null) do
		begin
			AllowEdit := EXTOOLBARLib_TLB.exItemEditSlider;
			EditWidth := -128;
			EditValue := OleVariant(25);
		end;
		with Add('Slider',Null,Null) do
		begin
			AllowEdit := EXTOOLBARLib_TLB.exItemEditSlider;
			EditBorder := EXTOOLBARLib_TLB.exEditBorderNone;
			EditWidth := -128;
			EditOption[EXTOOLBARLib_TLB.exEditMinValue] := OleVariant(50);
			EditOption[EXTOOLBARLib_TLB.exEditMaxValue] := OleVariant(450);
			EditOption[EXTOOLBARLib_TLB.exEditTickStyle] := OleVariant(2);
			EditOption[EXTOOLBARLib_TLB.exEditTickFrequency] := OleVariant(50);
			EditOption[EXTOOLBARLib_TLB.exEditTickLabel] := 'value = vmin ? ''<br><font ;6><b>''+value : ( value = vmax ? ''<br><font ;6><b>''+value : ( value = ' + 
	'200 ? ''<br><font ;6><b><fgcolor FF0000>''+value : '''' ) )';
			EditValue := OleVariant(345);
		end;
	end;
	Refresh();
end

VFP

with thisform.ToolBar1
	with .Items
		with .Add("Slider")
			.AllowEdit = 3
			.EditWidth = -128
			.EditValue = 25
		endwith
		with .Add("Slider")
			.AllowEdit = 3
			.EditBorder = 0
			.EditWidth = -128
			.EditOption(1) = 50
			.EditOption(2) = 450
			.EditOption(3) = 2
			.EditOption(4) = 50
			var_s = "value = vmin ? '<br><font ;6><b>'+value : ( value = vmax ? '<br><font ;6><b>'+value : ( value = "
			var_s = var_s + "200 ? '<br><font ;6><b><fgcolor FF0000>'+value : '' ) )"
			.EditOption(5) = var_s
			.EditValue = 345
		endwith
	endwith
	.Refresh
endwith

dBASE Plus

local oToolBar,var_Item,var_Item1,var_Items

oToolBar = form.Activex1.nativeObject
var_Items = oToolBar.Items
	var_Item = var_Items.Add("Slider")
		var_Item.AllowEdit = 3
		var_Item.EditWidth = -128
		var_Item.EditValue = 25
	var_Item1 = var_Items.Add("Slider")
		var_Item1.AllowEdit = 3
		var_Item1.EditBorder = 0
		var_Item1.EditWidth = -128
		// var_Item1.EditOption(1) = 50
		with (oToolBar)
			TemplateDef = [Dim var_Item1]
			TemplateDef = var_Item1
			Template = [var_Item1.EditOption(1) = 50]
		endwith
		// var_Item1.EditOption(2) = 450
		with (oToolBar)
			TemplateDef = [Dim var_Item1]
			TemplateDef = var_Item1
			Template = [var_Item1.EditOption(2) = 450]
		endwith
		// var_Item1.EditOption(3) = 2
		with (oToolBar)
			TemplateDef = [Dim var_Item1]
			TemplateDef = var_Item1
			Template = [var_Item1.EditOption(3) = 2]
		endwith
		// var_Item1.EditOption(4) = 50
		with (oToolBar)
			TemplateDef = [Dim var_Item1]
			TemplateDef = var_Item1
			Template = [var_Item1.EditOption(4) = 50]
		endwith
		// var_Item1.EditOption(5) = "value = vmin ? '<br><font ;6><b>'+value : ( value = vmax ? '<br><font ;6><b>'+value : ( value = 200 ? '<br><font ;6><b><fgcolor FF0000>'+value : '' ) )"
		with (oToolBar)
			TemplateDef = [Dim var_Item1]
			TemplateDef = var_Item1
			Template = [var_Item1.EditOption(5) = "value = vmin ? '<br><font ;6><b>'+value : ( value = vmax ? '<br><font ;6><b>'+value : ( value = 200 ? '<br><font ;6><b><fgcolor FF0000>'+value : '' ) )"]
		endwith
		var_Item1.EditValue = 345
oToolBar.Refresh()

XBasic (Alpha Five)

Dim oToolBar as P
Dim var_Item as P
Dim var_Item1 as P
Dim var_Items as P

oToolBar = topparent:CONTROL_ACTIVEX1.activex
var_Items = oToolBar.Items
	var_Item = var_Items.Add("Slider")
		var_Item.AllowEdit = 3
		var_Item.EditWidth = -128
		var_Item.EditValue = 25
	var_Item1 = var_Items.Add("Slider")
		var_Item1.AllowEdit = 3
		var_Item1.EditBorder = 0
		var_Item1.EditWidth = -128
		' var_Item1.EditOption(1) = 50
		oToolBar.TemplateDef = "Dim var_Item1"
		oToolBar.TemplateDef = var_Item1
		oToolBar.Template = "var_Item1.EditOption(1) = 50"

		' var_Item1.EditOption(2) = 450
		oToolBar.TemplateDef = "Dim var_Item1"
		oToolBar.TemplateDef = var_Item1
		oToolBar.Template = "var_Item1.EditOption(2) = 450"

		' var_Item1.EditOption(3) = 2
		oToolBar.TemplateDef = "Dim var_Item1"
		oToolBar.TemplateDef = var_Item1
		oToolBar.Template = "var_Item1.EditOption(3) = 2"

		' var_Item1.EditOption(4) = 50
		oToolBar.TemplateDef = "Dim var_Item1"
		oToolBar.TemplateDef = var_Item1
		oToolBar.Template = "var_Item1.EditOption(4) = 50"

		' var_Item1.EditOption(5) = "value = vmin ? '<br><font ;6><b>'+value : ( value = vmax ? '<br><font ;6><b>'+value : ( value = 200 ? '<br><font ;6><b><fgcolor FF0000>'+value : '' ) )"
		oToolBar.TemplateDef = "Dim var_Item1"
		oToolBar.TemplateDef = var_Item1
		oToolBar.Template = "var_Item1.EditOption(5) = \"value = vmin ? '<br><font ;6><b>'+value : ( value = vmax ? '<br><font ;6><b>'+value : ( value = 200 ? '<br><font ;6><b><fgcolor FF0000>'+value : '' ) )\""

		var_Item1.EditValue = 345
oToolBar.Refresh()

Visual Objects

local var_Item,var_Item1 as IItem
local var_Items as IItems

var_Items := oDCOCX_Exontrol1:Items
	var_Item := var_Items:Add("Slider",nil,nil)
		var_Item:AllowEdit := exItemEditSlider
		var_Item:EditWidth := -128
		var_Item:EditValue := 25
	var_Item1 := var_Items:Add("Slider",nil,nil)
		var_Item1:AllowEdit := exItemEditSlider
		var_Item1:EditBorder := exEditBorderNone
		var_Item1:EditWidth := -128
		var_Item1:[EditOption,exEditMinValue] := 50
		var_Item1:[EditOption,exEditMaxValue] := 450
		var_Item1:[EditOption,exEditTickStyle] := 2
		var_Item1:[EditOption,exEditTickFrequency] := 50
		var_Item1:[EditOption,exEditTickLabel] := "value = vmin ? '<br><font ;6><b>'+value : ( value = vmax ? '<br><font ;6><b>'+value : ( value = 200 ? '<br><font ;6><b><fgcolor FF0000>'+value : '' ) )"
		var_Item1:EditValue := 345
oDCOCX_Exontrol1:Refresh()

PowerBuilder

OleObject oToolBar,var_Item,var_Item1,var_Items

oToolBar = ole_1.Object
var_Items = oToolBar.Items
	var_Item = var_Items.Add("Slider")
		var_Item.AllowEdit = 3
		var_Item.EditWidth = -128
		var_Item.EditValue = 25
	var_Item1 = var_Items.Add("Slider")
		var_Item1.AllowEdit = 3
		var_Item1.EditBorder = 0
		var_Item1.EditWidth = -128
		var_Item1.EditOption(1,50)
		var_Item1.EditOption(2,450)
		var_Item1.EditOption(3,2)
		var_Item1.EditOption(4,50)
		var_Item1.EditOption(5,"value = vmin ? '<br><font ;6><b>'+value : ( value = vmax ? '<br><font ;6><b>'+value : ( value = 200 ? '<br><font ;6><b><fgcolor FF0000>'+value : '' ) )")
		var_Item1.EditValue = 345
oToolBar.Refresh()

Visual DataFlex

Procedure OnCreate
	Forward Send OnCreate
	Variant voItems
	Get ComItems to voItems
	Handle hoItems
	Get Create (RefClass(cComItems)) to hoItems
	Set pvComObject of hoItems to voItems
		Variant voItem
		Get ComAdd of hoItems "Slider" Nothing Nothing to voItem
		Handle hoItem
		Get Create (RefClass(cComItem)) to hoItem
		Set pvComObject of hoItem to voItem
			Set ComAllowEdit of hoItem to OLEexItemEditSlider
			Set ComEditWidth of hoItem to -128
			Set ComEditValue of hoItem to 25
		Send Destroy to hoItem
		Variant voItem1
		Get ComAdd of hoItems "Slider" Nothing Nothing to voItem1
		Handle hoItem1
		Get Create (RefClass(cComItem)) to hoItem1
		Set pvComObject of hoItem1 to voItem1
			Set ComAllowEdit of hoItem1 to OLEexItemEditSlider
			Set ComEditBorder of hoItem1 to OLEexEditBorderNone
			Set ComEditWidth of hoItem1 to -128
			Set ComEditOption of hoItem1 OLEexEditMinValue to 50
			Set ComEditOption of hoItem1 OLEexEditMaxValue to 450
			Set ComEditOption of hoItem1 OLEexEditTickStyle to 2
			Set ComEditOption of hoItem1 OLEexEditTickFrequency to 50
			Set ComEditOption of hoItem1 OLEexEditTickLabel to "value = vmin ? '<br><font ;6><b>'+value : ( value = vmax ? '<br><font ;6><b>'+value : ( value = 200 ? '<br><font ;6><b><fgcolor FF0000>'+value : '' ) )"
			Set ComEditValue of hoItem1 to 345
		Send Destroy to hoItem1
	Send Destroy to hoItems
	Send ComRefresh
End_Procedure

XBase++

#include "AppEvent.ch"
#include "ActiveX.ch"

PROCEDURE Main
 	LOCAL oForm
	LOCAL nEvent := 0, mp1 := NIL, mp2 := NIL, oXbp := NIL
	LOCAL oItem,oItem1
	LOCAL oItems
	LOCAL oToolBar

	oForm := XbpDialog():new( AppDesktop() )
	oForm:drawingArea:clipChildren := .T.
	oForm:create( ,,{100,100}, {640,480},, .F. )
	oForm:close  := {|| PostAppEvent( xbeP_Quit )}

	oToolBar := XbpActiveXControl():new( oForm:drawingArea )
	oToolBar:CLSID  := "Exontrol.ToolBar.1" /*{DDF58CFA-750F-45E0-8A00-CFBE431702E2}*/
	oToolBar:create(,, {10,60},{610,370} )

		oItems := oToolBar:Items()
			oItem := oItems:Add("Slider")
				oItem:AllowEdit := 3/*exItemEditSlider*/
				oItem:EditWidth := -128
				oItem:EditValue := 25
			oItem1 := oItems:Add("Slider")
				oItem1:AllowEdit := 3/*exItemEditSlider*/
				oItem1:EditBorder := 0/*exEditBorderNone*/
				oItem1:EditWidth := -128
				oItem1:SetProperty("EditOption",1/*exEditMinValue*/,50)
				oItem1:SetProperty("EditOption",2/*exEditMaxValue*/,450)
				oItem1:SetProperty("EditOption",3/*exEditTickStyle*/,2)
				oItem1:SetProperty("EditOption",4/*exEditTickFrequency*/,50)
				oItem1:SetProperty("EditOption",5/*exEditTickLabel*/,"value = vmin ? '<br><font ;6><b>'+value : ( value = vmax ? '<br><font ;6><b>'+value : ( value = 200 ? '<br><font ;6><b><fgcolor FF0000>'+value : '' ) )")
				oItem1:EditValue := 345
		oToolBar:Refresh()

	oForm:Show()
	DO WHILE nEvent != xbeP_Quit
		nEvent := AppEvent( @mp1, @mp2, @oXbp )
		oXbp:handleEvent( nEvent, mp1, mp2 )
	ENDDO 
RETURN