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 Ribbon1
	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 Ribbon1
	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 Exribbon1
	With .Items
		With .Add("Slider")
			.AllowEdit = exontrol.EXRIBBONLib.AllowEditEnum.exItemEditSlider
			.EditWidth = -128
			.EditValue = 25
		End With
		With .Add("Slider")
			.AllowEdit = exontrol.EXRIBBONLib.AllowEditEnum.exItemEditSlider
			.EditBorder = exontrol.EXRIBBONLib.EditBorderEnum.exEditBorderNone
			.EditWidth = -128
			.set_EditOption(exontrol.EXRIBBONLib.EditOptionEnum.exEditMinValue,50)
			.set_EditOption(exontrol.EXRIBBONLib.EditOptionEnum.exEditMaxValue,450)
			.set_EditOption(exontrol.EXRIBBONLib.EditOptionEnum.exEditTickStyle,2)
			.set_EditOption(exontrol.EXRIBBONLib.EditOptionEnum.exEditTickFrequency,50)
			.set_EditOption(exontrol.EXRIBBONLib.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 AxRibbon1
	With .Items
		With .Add("Slider")
			.AllowEdit = EXRIBBONLib.AllowEditEnum.exItemEditSlider
			.EditWidth = -128
			.EditValue = 25
		End With
		With .Add("Slider")
			.AllowEdit = EXRIBBONLib.AllowEditEnum.exItemEditSlider
			.EditBorder = EXRIBBONLib.EditBorderEnum.exEditBorderNone
			.EditWidth = -128
			.EditOption(EXRIBBONLib.EditOptionEnum.exEditMinValue) = 50
			.EditOption(EXRIBBONLib.EditOptionEnum.exEditMaxValue) = 450
			.EditOption(EXRIBBONLib.EditOptionEnum.exEditTickStyle) = 2
			.EditOption(EXRIBBONLib.EditOptionEnum.exEditTickFrequency) = 50
			.EditOption(EXRIBBONLib.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 'EXRIBBONLib' for the library: 'ExRibbon 1.0 Control Library'

	#import <ExRibbon.dll>
	using namespace EXRIBBONLib;
*/
EXRIBBONLib::IRibbonPtr spRibbon1 = GetDlgItem(IDC_RIBBON1)->GetControlUnknown();
EXRIBBONLib::IItemsPtr var_Items = spRibbon1->GetItems();
	EXRIBBONLib::IItemPtr var_Item = var_Items->Add(L"Slider",vtMissing,vtMissing);
		var_Item->PutAllowEdit(EXRIBBONLib::exItemEditSlider);
		var_Item->PutEditWidth(-128);
		var_Item->PutEditValue(long(25));
	EXRIBBONLib::IItemPtr var_Item1 = var_Items->Add(L"Slider",vtMissing,vtMissing);
		var_Item1->PutAllowEdit(EXRIBBONLib::exItemEditSlider);
		var_Item1->PutEditBorder(EXRIBBONLib::exEditBorderNone);
		var_Item1->PutEditWidth(-128);
		var_Item1->PutEditOption(EXRIBBONLib::exEditMinValue,long(50));
		var_Item1->PutEditOption(EXRIBBONLib::exEditMaxValue,long(450));
		var_Item1->PutEditOption(EXRIBBONLib::exEditTickStyle,long(2));
		var_Item1->PutEditOption(EXRIBBONLib::exEditTickFrequency,long(50));
		var_Item1->PutEditOption(EXRIBBONLib::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));
spRibbon1->Refresh();

C++ Builder

Exribbonlib_tlb::IItemsPtr var_Items = Ribbon1->Items;
	Exribbonlib_tlb::IItemPtr var_Item = var_Items->Add(L"Slider",TNoParam(),TNoParam());
		var_Item->AllowEdit = Exribbonlib_tlb::AllowEditEnum::exItemEditSlider;
		var_Item->EditWidth = -128;
		var_Item->set_EditValue(TVariant(25));
	Exribbonlib_tlb::IItemPtr var_Item1 = var_Items->Add(L"Slider",TNoParam(),TNoParam());
		var_Item1->AllowEdit = Exribbonlib_tlb::AllowEditEnum::exItemEditSlider;
		var_Item1->EditBorder = Exribbonlib_tlb::EditBorderEnum::exEditBorderNone;
		var_Item1->EditWidth = -128;
		var_Item1->set_EditOption(Exribbonlib_tlb::EditOptionEnum::exEditMinValue,TVariant(50));
		var_Item1->set_EditOption(Exribbonlib_tlb::EditOptionEnum::exEditMaxValue,TVariant(450));
		var_Item1->set_EditOption(Exribbonlib_tlb::EditOptionEnum::exEditTickStyle,TVariant(2));
		var_Item1->set_EditOption(Exribbonlib_tlb::EditOptionEnum::exEditTickFrequency,TVariant(50));
		var_Item1->set_EditOption(Exribbonlib_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));
Ribbon1->Refresh();

C#

exontrol.EXRIBBONLib.Items var_Items = exribbon1.Items;
	exontrol.EXRIBBONLib.Item var_Item = var_Items.Add("Slider",null,null);
		var_Item.AllowEdit = exontrol.EXRIBBONLib.AllowEditEnum.exItemEditSlider;
		var_Item.EditWidth = -128;
		var_Item.EditValue = 25;
	exontrol.EXRIBBONLib.Item var_Item1 = var_Items.Add("Slider",null,null);
		var_Item1.AllowEdit = exontrol.EXRIBBONLib.AllowEditEnum.exItemEditSlider;
		var_Item1.EditBorder = exontrol.EXRIBBONLib.EditBorderEnum.exEditBorderNone;
		var_Item1.EditWidth = -128;
		var_Item1.set_EditOption(exontrol.EXRIBBONLib.EditOptionEnum.exEditMinValue,50);
		var_Item1.set_EditOption(exontrol.EXRIBBONLib.EditOptionEnum.exEditMaxValue,450);
		var_Item1.set_EditOption(exontrol.EXRIBBONLib.EditOptionEnum.exEditTickStyle,2);
		var_Item1.set_EditOption(exontrol.EXRIBBONLib.EditOptionEnum.exEditTickFrequency,50);
		var_Item1.set_EditOption(exontrol.EXRIBBONLib.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;
exribbon1.Refresh();

JScript/JavaScript

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

<SCRIPT LANGUAGE="JScript">
function Init()
{
	var var_Items = Ribbon1.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;
	Ribbon1.Refresh();
}
</SCRIPT>
</BODY>

VBScript

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

<SCRIPT LANGUAGE="VBScript">
Function Init()
	With Ribbon1
		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

EXRIBBONLib.Items var_Items = axRibbon1.Items;
	EXRIBBONLib.Item var_Item = var_Items.Add("Slider",null,null);
		var_Item.AllowEdit = EXRIBBONLib.AllowEditEnum.exItemEditSlider;
		var_Item.EditWidth = -128;
		var_Item.EditValue = 25;
	EXRIBBONLib.Item var_Item1 = var_Items.Add("Slider",null,null);
		var_Item1.AllowEdit = EXRIBBONLib.AllowEditEnum.exItemEditSlider;
		var_Item1.EditBorder = EXRIBBONLib.EditBorderEnum.exEditBorderNone;
		var_Item1.EditWidth = -128;
		var_Item1.set_EditOption(EXRIBBONLib.EditOptionEnum.exEditMinValue,50);
		var_Item1.set_EditOption(EXRIBBONLib.EditOptionEnum.exEditMaxValue,450);
		var_Item1.set_EditOption(EXRIBBONLib.EditOptionEnum.exEditTickStyle,2);
		var_Item1.set_EditOption(EXRIBBONLib.EditOptionEnum.exEditTickFrequency,50);
		var_Item1.set_EditOption(EXRIBBONLib.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;
axRibbon1.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 = exribbon1.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));
	exribbon1.Refresh();
}

Delphi 8 (.NET only)

with AxRibbon1 do
begin
	with Items do
	begin
		with Add('Slider',Nil,Nil) do
		begin
			AllowEdit := EXRIBBONLib.AllowEditEnum.exItemEditSlider;
			EditWidth := -128;
			EditValue := TObject(25);
		end;
		with Add('Slider',Nil,Nil) do
		begin
			AllowEdit := EXRIBBONLib.AllowEditEnum.exItemEditSlider;
			EditBorder := EXRIBBONLib.EditBorderEnum.exEditBorderNone;
			EditWidth := -128;
			EditOption[EXRIBBONLib.EditOptionEnum.exEditMinValue] := TObject(50);
			EditOption[EXRIBBONLib.EditOptionEnum.exEditMaxValue] := TObject(450);
			EditOption[EXRIBBONLib.EditOptionEnum.exEditTickStyle] := TObject(2);
			EditOption[EXRIBBONLib.EditOptionEnum.exEditTickFrequency] := TObject(50);
			EditOption[EXRIBBONLib.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 Ribbon1 do
begin
	with Items do
	begin
		with Add('Slider',Null,Null) do
		begin
			AllowEdit := EXRIBBONLib_TLB.exItemEditSlider;
			EditWidth := -128;
			EditValue := OleVariant(25);
		end;
		with Add('Slider',Null,Null) do
		begin
			AllowEdit := EXRIBBONLib_TLB.exItemEditSlider;
			EditBorder := EXRIBBONLib_TLB.exEditBorderNone;
			EditWidth := -128;
			EditOption[EXRIBBONLib_TLB.exEditMinValue] := OleVariant(50);
			EditOption[EXRIBBONLib_TLB.exEditMaxValue] := OleVariant(450);
			EditOption[EXRIBBONLib_TLB.exEditTickStyle] := OleVariant(2);
			EditOption[EXRIBBONLib_TLB.exEditTickFrequency] := OleVariant(50);
			EditOption[EXRIBBONLib_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.Ribbon1
	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 oRibbon,var_Item,var_Item1,var_Items

oRibbon = form.Activex1.nativeObject
var_Items = oRibbon.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 (oRibbon)
			TemplateDef = [Dim var_Item1]
			TemplateDef = var_Item1
			Template = [var_Item1.EditOption(1) = 50]
		endwith
		// var_Item1.EditOption(2) = 450
		with (oRibbon)
			TemplateDef = [Dim var_Item1]
			TemplateDef = var_Item1
			Template = [var_Item1.EditOption(2) = 450]
		endwith
		// var_Item1.EditOption(3) = 2
		with (oRibbon)
			TemplateDef = [Dim var_Item1]
			TemplateDef = var_Item1
			Template = [var_Item1.EditOption(3) = 2]
		endwith
		// var_Item1.EditOption(4) = 50
		with (oRibbon)
			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 (oRibbon)
			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
oRibbon.Refresh()

XBasic (Alpha Five)

Dim oRibbon as P
Dim var_Item as P
Dim var_Item1 as P
Dim var_Items as P

oRibbon = topparent:CONTROL_ACTIVEX1.activex
var_Items = oRibbon.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
		oRibbon.TemplateDef = "Dim var_Item1"
		oRibbon.TemplateDef = var_Item1
		oRibbon.Template = "var_Item1.EditOption(1) = 50"

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

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

		' var_Item1.EditOption(4) = 50
		oRibbon.TemplateDef = "Dim var_Item1"
		oRibbon.TemplateDef = var_Item1
		oRibbon.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 : '' ) )"
		oRibbon.TemplateDef = "Dim var_Item1"
		oRibbon.TemplateDef = var_Item1
		oRibbon.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
oRibbon.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 oRibbon,var_Item,var_Item1,var_Items

oRibbon = ole_1.Object
var_Items = oRibbon.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
oRibbon.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 oRibbon

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

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

		oItems := oRibbon: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
		oRibbon:Refresh()

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