Type | Description | |||
EditBorderEnum | An EditBorderEnum expression that specifies the border to be shown around the item's text box. |
How can I change/hide the editor's border?
VBA (MS Access, Excell...)
With ToolBar1 With .Items With .Add("Text") .AllowEdit = 1 .EditBorder = -1 End With End With .Refresh End With
VB6
With ToolBar1 With .Items With .Add("Text") .AllowEdit = exItemEditText .EditBorder = exEditBorderInset End With End With .Refresh End With
VB.NET
With Extoolbar1 With .Items With .Add("Text") .AllowEdit = exontrol.EXTOOLBARLib.AllowEditEnum.exItemEditText .EditBorder = exontrol.EXTOOLBARLib.EditBorderEnum.exEditBorderInset End With End With .Refresh() End With
VB.NET for /COM
With AxToolBar1 With .Items With .Add("Text") .AllowEdit = EXTOOLBARLib.AllowEditEnum.exItemEditText .EditBorder = EXTOOLBARLib.EditBorderEnum.exEditBorderInset 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"Text",vtMissing,vtMissing); var_Item->PutAllowEdit(EXTOOLBARLib::exItemEditText); var_Item->PutEditBorder(EXTOOLBARLib::exEditBorderInset); spToolBar1->Refresh();
C++ Builder
Extoolbarlib_tlb::IItemsPtr var_Items = ToolBar1->Items; Extoolbarlib_tlb::IItemPtr var_Item = var_Items->Add(L"Text",TNoParam(),TNoParam()); var_Item->AllowEdit = Extoolbarlib_tlb::AllowEditEnum::exItemEditText; var_Item->EditBorder = Extoolbarlib_tlb::EditBorderEnum::exEditBorderInset; ToolBar1->Refresh();
C#
exontrol.EXTOOLBARLib.Items var_Items = extoolbar1.Items; exontrol.EXTOOLBARLib.Item var_Item = var_Items.Add("Text",null,null); var_Item.AllowEdit = exontrol.EXTOOLBARLib.AllowEditEnum.exItemEditText; var_Item.EditBorder = exontrol.EXTOOLBARLib.EditBorderEnum.exEditBorderInset; 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("Text",null,null); var_Item.AllowEdit = 1; var_Item.EditBorder = -1; 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("Text") .AllowEdit = 1 .EditBorder = -1 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("Text",null,null); var_Item.AllowEdit = EXTOOLBARLib.AllowEditEnum.exItemEditText; var_Item.EditBorder = EXTOOLBARLib.EditBorderEnum.exEditBorderInset; 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("Text"); com_Item = var_Item; com_Item.AllowEdit(1/*exItemEditText*/); com_Item.EditBorder(-1/*exEditBorderInset*/); extoolbar1.Refresh(); }
Delphi 8 (.NET only)
with AxToolBar1 do begin with Items do begin with Add('Text',Nil,Nil) do begin AllowEdit := EXTOOLBARLib.AllowEditEnum.exItemEditText; EditBorder := EXTOOLBARLib.EditBorderEnum.exEditBorderInset; end; end; Refresh(); end
Delphi (standard)
with ToolBar1 do begin with Items do begin with Add('Text',Null,Null) do begin AllowEdit := EXTOOLBARLib_TLB.exItemEditText; EditBorder := EXTOOLBARLib_TLB.exEditBorderInset; end; end; Refresh(); end
VFP
with thisform.ToolBar1 with .Items with .Add("Text") .AllowEdit = 1 .EditBorder = -1 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("Text") var_Item.AllowEdit = 1 var_Item.EditBorder = -1 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("Text") var_Item.AllowEdit = 1 var_Item.EditBorder = -1 oToolBar.Refresh()
Visual Objects
local var_Item as IItem local var_Items as IItems var_Items := oDCOCX_Exontrol1:Items var_Item := var_Items:Add("Text",nil,nil) var_Item:AllowEdit := exItemEditText var_Item:EditBorder := exEditBorderInset oDCOCX_Exontrol1:Refresh()
PowerBuilder
OleObject oToolBar,var_Item,var_Items oToolBar = ole_1.Object var_Items = oToolBar.Items var_Item = var_Items.Add("Text") var_Item.AllowEdit = 1 var_Item.EditBorder = -1 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 "Text" Nothing Nothing to voItem Handle hoItem Get Create (RefClass(cComItem)) to hoItem Set pvComObject of hoItem to voItem Set ComAllowEdit of hoItem to OLEexItemEditText Set ComEditBorder of hoItem to OLEexEditBorderInset 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("Text") oItem:AllowEdit := 1/*exItemEditText*/ oItem:EditBorder := -1/*exEditBorderInset*/ oToolBar:Refresh() oForm:Show() DO WHILE nEvent != xbeP_Quit nEvent := AppEvent( @mp1, @mp2, @oXbp ) oXbp:handleEvent( nEvent, mp1, mp2 ) ENDDO RETURN