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 ToolBar1
	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 ToolBar1
	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 Extoolbar1
	With .Items
		With .Add("Vertical")
			.ItemHeight = 128
			.AllowEdit = exontrol.EXTOOLBARLib.AllowEditEnum.exItemEditVertical Or exontrol.EXTOOLBARLib.AllowEditEnum.exItemEditSlider
			.EditBorder = exontrol.EXTOOLBARLib.EditBorderEnum.exEditBorderNone
			.EditWidth = 32
			.EditValue = 25
		End With
	End With
	.Refresh()
End With

VB.NET for /COM

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

C++ Builder

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

C#

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

EXTOOLBARLib.Items var_Items = axToolBar1.Items;
	EXTOOLBARLib.Item var_Item = var_Items.Add("Vertical",null,null);
		var_Item.ItemHeight = 128;
		var_Item.AllowEdit = EXTOOLBARLib.AllowEditEnum.exItemEditVertical | EXTOOLBARLib.AllowEditEnum.exItemEditSlider;
		var_Item.EditBorder = EXTOOLBARLib.EditBorderEnum.exEditBorderNone;
		var_Item.EditWidth = 32;
		var_Item.EditValue = 25;
axToolBar1.Refresh();

X++ (Dynamics Ax 2009)

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

	super();

	var_Items = extoolbar1.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));
	extoolbar1.Refresh();
}

Delphi 8 (.NET only)

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

Delphi (standard)

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

VFP

with thisform.ToolBar1
	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 oToolBar,var_Item,var_Items

oToolBar = form.Activex1.nativeObject
var_Items = oToolBar.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
oToolBar.Refresh()

XBasic (Alpha Five)

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

oToolBar = topparent:CONTROL_ACTIVEX1.activex
var_Items = oToolBar.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
oToolBar.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 oToolBar,var_Item,var_Items

oToolBar = ole_1.Object
var_Items = oToolBar.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
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 "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 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("Vertical")
				oItem:ItemHeight := 128
				oItem:AllowEdit := 1027/*exItemEditVertical+exItemEditSlider*/
				oItem:EditBorder := 0/*exEditBorderNone*/
				oItem:EditWidth := 32
				oItem:EditValue := 25
		oToolBar:Refresh()

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