Type | Description | |||
Boolean | A Boolean expression that specifies whether the control displays the item's tooltip when the cursor hovers the item. |
How do I disable showing the tooltip for all control?
VBA (MS Access, Excell...)
With ToolBar1 .AllowToolTip = False With .Items .Add("Item").Tooltip = "this is a bit of text to be shown when cursor hovers it" .Add("Item").Tooltip = "this is a bit of text to be shown when cursor hovers it" End With .Refresh End With
VB6
With ToolBar1 .AllowToolTip = False With .Items .Add("Item").Tooltip = "this is a bit of text to be shown when cursor hovers it" .Add("Item").Tooltip = "this is a bit of text to be shown when cursor hovers it" End With .Refresh End With
VB.NET
With Extoolbar1 .AllowToolTip = False With .Items .Add("Item").Tooltip = "this is a bit of text to be shown when cursor hovers it" .Add("Item").Tooltip = "this is a bit of text to be shown when cursor hovers it" End With .Refresh() End With
VB.NET for /COM
With AxToolBar1 .AllowToolTip = False With .Items .Add("Item").Tooltip = "this is a bit of text to be shown when cursor hovers it" .Add("Item").Tooltip = "this is a bit of text to be shown when cursor hovers it" 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(); spToolBar1->PutAllowToolTip(VARIANT_FALSE); EXTOOLBARLib::IItemsPtr var_Items = spToolBar1->GetItems(); var_Items->Add(L"Item",vtMissing,vtMissing)->PutTooltip(L"this is a bit of text to be shown when cursor hovers it"); var_Items->Add(L"Item",vtMissing,vtMissing)->PutTooltip(L"this is a bit of text to be shown when cursor hovers it"); spToolBar1->Refresh();
C++ Builder
ToolBar1->AllowToolTip = false; Extoolbarlib_tlb::IItemsPtr var_Items = ToolBar1->Items; var_Items->Add(L"Item",TNoParam(),TNoParam())->Tooltip = L"this is a bit of text to be shown when cursor hovers it"; var_Items->Add(L"Item",TNoParam(),TNoParam())->Tooltip = L"this is a bit of text to be shown when cursor hovers it"; ToolBar1->Refresh();
C#
extoolbar1.AllowToolTip = false; exontrol.EXTOOLBARLib.Items var_Items = extoolbar1.Items; var_Items.Add("Item",null,null).Tooltip = "this is a bit of text to be shown when cursor hovers it"; var_Items.Add("Item",null,null).Tooltip = "this is a bit of text to be shown when cursor hovers it"; extoolbar1.Refresh();
JScript/JavaScript
<BODY onload='Init()'> <OBJECT CLASSID="clsid:DDF58CFA-750F-45E0-8A00-CFBE431702E2" id="ToolBar1"></OBJECT> <SCRIPT LANGUAGE="JScript"> function Init() { ToolBar1.AllowToolTip = false; var var_Items = ToolBar1.Items; var_Items.Add("Item",null,null).Tooltip = "this is a bit of text to be shown when cursor hovers it"; var_Items.Add("Item",null,null).Tooltip = "this is a bit of text to be shown when cursor hovers it"; 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 .AllowToolTip = False With .Items .Add("Item").Tooltip = "this is a bit of text to be shown when cursor hovers it" .Add("Item").Tooltip = "this is a bit of text to be shown when cursor hovers it" End With .Refresh End With End Function </SCRIPT> </BODY>
C# for /COM
axToolBar1.AllowToolTip = false; EXTOOLBARLib.Items var_Items = axToolBar1.Items; var_Items.Add("Item",null,null).Tooltip = "this is a bit of text to be shown when cursor hovers it"; var_Items.Add("Item",null,null).Tooltip = "this is a bit of text to be shown when cursor hovers it"; axToolBar1.Refresh();
X++ (Dynamics Ax 2009)
public void init() { COM com_Item,com_Items; anytype var_Item,var_Items; ; super(); extoolbar1.AllowToolTip(false); var_Items = extoolbar1.Items(); com_Items = var_Items; var_Item = COM::createFromObject(com_Items.Add("Item")); com_Item = var_Item; com_Item.Tooltip("this is a bit of text to be shown when cursor hovers it"); var_Item = COM::createFromObject(com_Items.Add("Item")); com_Item = var_Item; com_Item.Tooltip("this is a bit of text to be shown when cursor hovers it"); extoolbar1.Refresh(); }
Delphi 8 (.NET only)
with AxToolBar1 do begin AllowToolTip := False; with Items do begin Add('Item',Nil,Nil).Tooltip := 'this is a bit of text to be shown when cursor hovers it'; Add('Item',Nil,Nil).Tooltip := 'this is a bit of text to be shown when cursor hovers it'; end; Refresh(); end
Delphi (standard)
with ToolBar1 do begin AllowToolTip := False; with Items do begin Add('Item',Null,Null).Tooltip := 'this is a bit of text to be shown when cursor hovers it'; Add('Item',Null,Null).Tooltip := 'this is a bit of text to be shown when cursor hovers it'; end; Refresh(); end
VFP
with thisform.ToolBar1 .AllowToolTip = .F. with .Items .Add("Item").Tooltip = "this is a bit of text to be shown when cursor hovers it" .Add("Item").Tooltip = "this is a bit of text to be shown when cursor hovers it" endwith .Refresh endwith
dBASE Plus
local oToolBar,var_Item,var_Item1,var_Items oToolBar = form.Activex1.nativeObject oToolBar.AllowToolTip = false var_Items = oToolBar.Items // var_Items.Add("Item").Tooltip = "this is a bit of text to be shown when cursor hovers it" var_Item = var_Items.Add("Item") with (oToolBar) TemplateDef = [Dim var_Item] TemplateDef = var_Item Template = [var_Item.Tooltip = "this is a bit of text to be shown when cursor hovers it"] endwith // var_Items.Add("Item").Tooltip = "this is a bit of text to be shown when cursor hovers it" var_Item1 = var_Items.Add("Item") with (oToolBar) TemplateDef = [Dim var_Item1] TemplateDef = var_Item1 Template = [var_Item1.Tooltip = "this is a bit of text to be shown when cursor hovers it"] endwith 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 oToolBar.AllowToolTip = .f. var_Items = oToolBar.Items ' var_Items.Add("Item").Tooltip = "this is a bit of text to be shown when cursor hovers it" var_Item = var_Items.Add("Item") oToolBar.TemplateDef = "Dim var_Item" oToolBar.TemplateDef = var_Item oToolBar.Template = "var_Item.Tooltip = \"this is a bit of text to be shown when cursor hovers it\"" ' var_Items.Add("Item").Tooltip = "this is a bit of text to be shown when cursor hovers it" var_Item1 = var_Items.Add("Item") oToolBar.TemplateDef = "Dim var_Item1" oToolBar.TemplateDef = var_Item1 oToolBar.Template = "var_Item1.Tooltip = \"this is a bit of text to be shown when cursor hovers it\"" oToolBar.Refresh()
Visual Objects
local var_Items as IItems oDCOCX_Exontrol1:AllowToolTip := false var_Items := oDCOCX_Exontrol1:Items var_Items:Add("Item",nil,nil):Tooltip := "this is a bit of text to be shown when cursor hovers it" var_Items:Add("Item",nil,nil):Tooltip := "this is a bit of text to be shown when cursor hovers it" oDCOCX_Exontrol1:Refresh()
PowerBuilder
OleObject oToolBar,var_Items oToolBar = ole_1.Object oToolBar.AllowToolTip = false var_Items = oToolBar.Items var_Items.Add("Item").Tooltip = "this is a bit of text to be shown when cursor hovers it" var_Items.Add("Item").Tooltip = "this is a bit of text to be shown when cursor hovers it" oToolBar.Refresh()
Visual DataFlex
Procedure OnCreate Forward Send OnCreate Set ComAllowToolTip to False 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 "Item" Nothing Nothing to voItem Handle hoItem Get Create (RefClass(cComItem)) to hoItem Set pvComObject of hoItem to voItem Set ComTooltip of hoItem to "this is a bit of text to be shown when cursor hovers it" Send Destroy to hoItem Variant voItem1 Get ComAdd of hoItems "Item" Nothing Nothing to voItem1 Handle hoItem1 Get Create (RefClass(cComItem)) to hoItem1 Set pvComObject of hoItem1 to voItem1 Set ComTooltip of hoItem1 to "this is a bit of text to be shown when cursor hovers it" 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 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} ) oToolBar:AllowToolTip := .F. oItems := oToolBar:Items() oItems:Add("Item"):Tooltip := "this is a bit of text to be shown when cursor hovers it" oItems:Add("Item"):Tooltip := "this is a bit of text to be shown when cursor hovers it" oToolBar:Refresh() oForm:Show() DO WHILE nEvent != xbeP_Quit nEvent := AppEvent( @mp1, @mp2, @oXbp ) oXbp:handleEvent( nEvent, mp1, mp2 ) ENDDO RETURN