property Item.AllowEdit as AllowEditEnum
Retrieves or sets a value indicating whether the item contains an edit control.

TypeDescription
AllowEditEnum An AllowEditEnum expression that specifies whether the item displays an Edit field inside.
By default, the AllowEdit property is False, which indicates that the item displays no Edit field inside. Use the AllowEdit property to add a text-box inside the item, so the user can type any characters inside. The EditCaption property specifies the caption to be shown on the item's Edit text box. The EditWidth property specifies the width of the text-box inside the item. The EditBorder property specifies the border to be shown around the item's text box. You can use the Get method to collect all items of Edit type. The EditChange event notifies your application once the user alters the item's text-box caption. The EditOption property specifies different options to be used for a specified edit field. The ShowAsButton property specifies the whether the current item displays a button or a select button ( drop down ).

The following screen shot shows an item with a masking editor:

How can I add a vertical slider?

VBA (MS Access, Excell...)

With Ribbon1
	With .Items
		With .Add("Vertical")
			.ItemHeight = 128
			.AllowEdit = 1027 ' AllowEditEnum.exItemEditVertical Or AllowEditEnum.exItemEditSlider
			.EditBorder = 0
			.EditWidth = 32
			.EditValue = 25
		End With
	End With
	.Refresh 
End With

VB6

With Ribbon1
	With .Items
		With .Add("Vertical")
			.ItemHeight = 128
			.AllowEdit = AllowEditEnum.exItemEditVertical Or AllowEditEnum.exItemEditSlider
			.EditBorder = exEditBorderNone
			.EditWidth = 32
			.EditValue = 25
		End With
	End With
	.Refresh 
End With

VB.NET

With Exribbon1
	With .Items
		With .Add("Vertical")
			.ItemHeight = 128
			.AllowEdit = exontrol.EXRIBBONLib.AllowEditEnum.exItemEditVertical Or exontrol.EXRIBBONLib.AllowEditEnum.exItemEditSlider
			.EditBorder = exontrol.EXRIBBONLib.EditBorderEnum.exEditBorderNone
			.EditWidth = 32
			.EditValue = 25
		End With
	End With
	.Refresh()
End With

VB.NET for /COM

With AxRibbon1
	With .Items
		With .Add("Vertical")
			.ItemHeight = 128
			.AllowEdit = EXRIBBONLib.AllowEditEnum.exItemEditVertical Or EXRIBBONLib.AllowEditEnum.exItemEditSlider
			.EditBorder = EXRIBBONLib.EditBorderEnum.exEditBorderNone
			.EditWidth = 32
			.EditValue = 25
		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"Vertical",vtMissing,vtMissing);
		var_Item->PutItemHeight(128);
		var_Item->PutAllowEdit(EXRIBBONLib::AllowEditEnum(EXRIBBONLib::exItemEditVertical | EXRIBBONLib::exItemEditSlider));
		var_Item->PutEditBorder(EXRIBBONLib::exEditBorderNone);
		var_Item->PutEditWidth(32);
		var_Item->PutEditValue(long(25));
spRibbon1->Refresh();

C++ Builder

Exribbonlib_tlb::IItemsPtr var_Items = Ribbon1->Items;
	Exribbonlib_tlb::IItemPtr var_Item = var_Items->Add(L"Vertical",TNoParam(),TNoParam());
		var_Item->ItemHeight = 128;
		var_Item->AllowEdit = Exribbonlib_tlb::AllowEditEnum::exItemEditVertical | Exribbonlib_tlb::AllowEditEnum::exItemEditSlider;
		var_Item->EditBorder = Exribbonlib_tlb::EditBorderEnum::exEditBorderNone;
		var_Item->EditWidth = 32;
		var_Item->set_EditValue(TVariant(25));
Ribbon1->Refresh();

C#

exontrol.EXRIBBONLib.Items var_Items = exribbon1.Items;
	exontrol.EXRIBBONLib.Item var_Item = var_Items.Add("Vertical",null,null);
		var_Item.ItemHeight = 128;
		var_Item.AllowEdit = exontrol.EXRIBBONLib.AllowEditEnum.exItemEditVertical | exontrol.EXRIBBONLib.AllowEditEnum.exItemEditSlider;
		var_Item.EditBorder = exontrol.EXRIBBONLib.EditBorderEnum.exEditBorderNone;
		var_Item.EditWidth = 32;
		var_Item.EditValue = 25;
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("Vertical",null,null);
			var_Item.ItemHeight = 128;
			var_Item.AllowEdit = 1027;
			var_Item.EditBorder = 0;
			var_Item.EditWidth = 32;
			var_Item.EditValue = 25;
	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("Vertical")
				.ItemHeight = 128
				.AllowEdit = 1027 ' AllowEditEnum.exItemEditVertical Or AllowEditEnum.exItemEditSlider
				.EditBorder = 0
				.EditWidth = 32
				.EditValue = 25
			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("Vertical",null,null);
		var_Item.ItemHeight = 128;
		var_Item.AllowEdit = EXRIBBONLib.AllowEditEnum.exItemEditVertical | EXRIBBONLib.AllowEditEnum.exItemEditSlider;
		var_Item.EditBorder = EXRIBBONLib.EditBorderEnum.exEditBorderNone;
		var_Item.EditWidth = 32;
		var_Item.EditValue = 25;
axRibbon1.Refresh();

X++ (Dynamics Ax 2009)

public void init()
{
	COM com_Item,com_Items;
	anytype var_Item,var_Items;
	;

	super();

	var_Items = exribbon1.Items(); com_Items = var_Items;
		var_Item = com_Items.Add("Vertical"); com_Item = var_Item;
			com_Item.ItemHeight(128);
			com_Item.AllowEdit(1027/*exItemEditVertical | exItemEditSlider*/);
			com_Item.EditBorder(0/*exEditBorderNone*/);
			com_Item.EditWidth(32);
			com_Item.EditValue(COMVariant::createFromInt(25));
	exribbon1.Refresh();
}

Delphi 8 (.NET only)

with AxRibbon1 do
begin
	with Items do
	begin
		with Add('Vertical',Nil,Nil) do
		begin
			ItemHeight := 128;
			AllowEdit := Integer(EXRIBBONLib.AllowEditEnum.exItemEditVertical) Or Integer(EXRIBBONLib.AllowEditEnum.exItemEditSlider);
			EditBorder := EXRIBBONLib.EditBorderEnum.exEditBorderNone;
			EditWidth := 32;
			EditValue := TObject(25);
		end;
	end;
	Refresh();
end

Delphi (standard)

with Ribbon1 do
begin
	with Items do
	begin
		with Add('Vertical',Null,Null) do
		begin
			ItemHeight := 128;
			AllowEdit := Integer(EXRIBBONLib_TLB.exItemEditVertical) Or Integer(EXRIBBONLib_TLB.exItemEditSlider);
			EditBorder := EXRIBBONLib_TLB.exEditBorderNone;
			EditWidth := 32;
			EditValue := OleVariant(25);
		end;
	end;
	Refresh();
end

VFP

with thisform.Ribbon1
	with .Items
		with .Add("Vertical")
			.ItemHeight = 128
			.AllowEdit = 1027 && AllowEditEnum.exItemEditVertical Or AllowEditEnum.exItemEditSlider
			.EditBorder = 0
			.EditWidth = 32
			.EditValue = 25
		endwith
	endwith
	.Refresh
endwith

dBASE Plus

local oRibbon,var_Item,var_Items

oRibbon = form.Activex1.nativeObject
var_Items = oRibbon.Items
	var_Item = var_Items.Add("Vertical")
		var_Item.ItemHeight = 128
		var_Item.AllowEdit = 1027 /*exItemEditVertical | exItemEditSlider*/
		var_Item.EditBorder = 0
		var_Item.EditWidth = 32
		var_Item.EditValue = 25
oRibbon.Refresh()

XBasic (Alpha Five)

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

oRibbon = topparent:CONTROL_ACTIVEX1.activex
var_Items = oRibbon.Items
	var_Item = var_Items.Add("Vertical")
		var_Item.ItemHeight = 128
		var_Item.AllowEdit = 1027 'exItemEditVertical + exItemEditSlider
		var_Item.EditBorder = 0
		var_Item.EditWidth = 32
		var_Item.EditValue = 25
oRibbon.Refresh()

Visual Objects

local var_Item as IItem
local var_Items as IItems

var_Items := oDCOCX_Exontrol1:Items
	var_Item := var_Items:Add("Vertical",nil,nil)
		var_Item:ItemHeight := 128
		var_Item:AllowEdit := exItemEditVertical | exItemEditSlider
		var_Item:EditBorder := exEditBorderNone
		var_Item:EditWidth := 32
		var_Item:EditValue := 25
oDCOCX_Exontrol1:Refresh()

PowerBuilder

OleObject oRibbon,var_Item,var_Items

oRibbon = ole_1.Object
var_Items = oRibbon.Items
	var_Item = var_Items.Add("Vertical")
		var_Item.ItemHeight = 128
		var_Item.AllowEdit = 1027 /*exItemEditVertical | exItemEditSlider*/
		var_Item.EditBorder = 0
		var_Item.EditWidth = 32
		var_Item.EditValue = 25
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 "Vertical" Nothing Nothing to voItem
		Handle hoItem
		Get Create (RefClass(cComItem)) to hoItem
		Set pvComObject of hoItem to voItem
			Set ComItemHeight of hoItem to 128
			Set ComAllowEdit of hoItem to (OLEexItemEditVertical + OLEexItemEditSlider)
			Set ComEditBorder of hoItem to OLEexEditBorderNone
			Set ComEditWidth of hoItem to 32
			Set ComEditValue of hoItem to 25
		Send Destroy to hoItem
	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
	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("Vertical")
				oItem:ItemHeight := 128
				oItem:AllowEdit := 1027/*exItemEditVertical+exItemEditSlider*/
				oItem:EditBorder := 0/*exEditBorderNone*/
				oItem:EditWidth := 32
				oItem:EditValue := 25
		oRibbon:Refresh()

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