Type | Description | |||
AllowInlineToolTipEnum | An AllowInlineToolTipEnum expression that specifies whether the control's inline-tooltip feature is enabled or disabled. For instance, exInlineToolTip + exInlineToolTipOnChange indicates that the inline-tooltip is shown when the user changes the current line. |
The Background(exInlineToolTipForeColor) / Background(exInlineToolTipBackColor) property define the foreground / background color / visual appearance of the inline-tooltip panel.
How do I enable the inline tooltip support?
VBA (MS Access, Excell...)
With Edit1 .LineNumberWidth = -1 .LineNumberBackColor = RGB(240,240,240) .AddKeyword "<b>class</b>","a set or category of things having some property or attribute in common and differentiated from others by kind, type, or qualit" & _ "y." .AllowInlineToolTip = 513 ' AllowInlineToolTipEnum.exInlineToolTipWordWrap Or AllowInlineToolTipEnum.exInlineToolTip .Background(159) = RGB(128,128,128) .Refresh End With
VB6
With Edit1 .LineNumberWidth = -1 .LineNumberBackColor = RGB(240,240,240) .AddKeyword "<b>class</b>","a set or category of things having some property or attribute in common and differentiated from others by kind, type, or qualit" & _ "y." .AllowInlineToolTip = AllowInlineToolTipEnum.exInlineToolTipWordWrap Or AllowInlineToolTipEnum.exInlineToolTip .Background(exInlineToolTipForeColor) = RGB(128,128,128) .Refresh End With
VB.NET
With Exedit1 .LineNumberWidth = -1 .LineNumberBackColor = Color.FromArgb(240,240,240) .AddKeyword("<b>class</b>","a set or category of things having some property or attribute in common and differentiated from others by kind, type, or qualit" & _ "y.") .AllowInlineToolTip = exontrol.EXEDITLib.AllowInlineToolTipEnum.exInlineToolTipWordWrap Or exontrol.EXEDITLib.AllowInlineToolTipEnum.exInlineToolTip .set_Background(exontrol.EXEDITLib.BackgroundPartEnum.exInlineToolTipForeColor,Color.FromArgb(128,128,128)) .Refresh() End With
VB.NET for /COM
With AxEdit1 .LineNumberWidth = -1 .LineNumberBackColor = RGB(240,240,240) .AddKeyword("<b>class</b>","a set or category of things having some property or attribute in common and differentiated from others by kind, type, or qualit" & _ "y.") .AllowInlineToolTip = EXEDITLib.AllowInlineToolTipEnum.exInlineToolTipWordWrap Or EXEDITLib.AllowInlineToolTipEnum.exInlineToolTip .set_Background(EXEDITLib.BackgroundPartEnum.exInlineToolTipForeColor,8421504) .Refresh() End With
C++
/* Copy and paste the following directives to your header file as it defines the namespace 'EXEDITLib' for the library: 'ExEdit 1.0 Control Library' #import <ExEdit.dll> using namespace EXEDITLib; */ EXEDITLib::IEditPtr spEdit1 = GetDlgItem(IDC_EDIT1)->GetControlUnknown(); spEdit1->PutLineNumberWidth(-1); spEdit1->PutLineNumberBackColor(RGB(240,240,240)); spEdit1->AddKeyword(L"<b>class</b>",_bstr_t("a set or category of things having some property or attribute in common and differentiated from others by kind, type, or qualit") + "y.",vtMissing,vtMissing); spEdit1->PutAllowInlineToolTip(EXEDITLib::AllowInlineToolTipEnum(EXEDITLib::exInlineToolTipWordWrap | EXEDITLib::exInlineToolTip)); spEdit1->PutBackground(EXEDITLib::exInlineToolTipForeColor,RGB(128,128,128)); spEdit1->Refresh();
C++ Builder
Edit1->LineNumberWidth = -1; Edit1->LineNumberBackColor = RGB(240,240,240); Edit1->AddKeyword(L"<b>class</b>",TVariant(String("a set or category of things having some property or attribute in common and differentiated from others by kind, type, or qualit") + "y."),TNoParam(),TNoParam()); Edit1->AllowInlineToolTip = Exeditlib_tlb::AllowInlineToolTipEnum::exInlineToolTipWordWrap | Exeditlib_tlb::AllowInlineToolTipEnum::exInlineToolTip; Edit1->Background[Exeditlib_tlb::BackgroundPartEnum::exInlineToolTipForeColor] = RGB(128,128,128); Edit1->Refresh();
C#
exedit1.LineNumberWidth = -1; exedit1.LineNumberBackColor = Color.FromArgb(240,240,240); exedit1.AddKeyword("<b>class</b>","a set or category of things having some property or attribute in common and differentiated from others by kind, type, or qualit" + "y.",null,null); exedit1.AllowInlineToolTip = exontrol.EXEDITLib.AllowInlineToolTipEnum.exInlineToolTipWordWrap | exontrol.EXEDITLib.AllowInlineToolTipEnum.exInlineToolTip; exedit1.set_Background(exontrol.EXEDITLib.BackgroundPartEnum.exInlineToolTipForeColor,Color.FromArgb(128,128,128)); exedit1.Refresh();
JScript/JavaScript
<BODY onload="Init()"> <OBJECT CLASSID="clsid:39136531-DD0F-4281-B445-E36FC2CDDBC5" id="Edit1"></OBJECT> <SCRIPT LANGUAGE="JScript"> function Init() { Edit1.LineNumberWidth = -1; Edit1.LineNumberBackColor = 15790320; Edit1.AddKeyword("<b>class</b>","a set or category of things having some property or attribute in common and differentiated from others by kind, type, or qualit" + "y.",null,null); Edit1.AllowInlineToolTip = 513; Edit1.Background(159) = 8421504; Edit1.Refresh(); } </SCRIPT> </BODY>
VBScript
<BODY onload="Init()"> <OBJECT CLASSID="clsid:39136531-DD0F-4281-B445-E36FC2CDDBC5" id="Edit1"></OBJECT> <SCRIPT LANGUAGE="VBScript"> Function Init() With Edit1 .LineNumberWidth = -1 .LineNumberBackColor = RGB(240,240,240) .AddKeyword "<b>class</b>","a set or category of things having some property or attribute in common and differentiated from others by kind, type, or qualit" & _ "y." .AllowInlineToolTip = 513 ' AllowInlineToolTipEnum.exInlineToolTipWordWrap Or AllowInlineToolTipEnum.exInlineToolTip .Background(159) = RGB(128,128,128) .Refresh End With End Function </SCRIPT> </BODY>
C# for /COM
axEdit1.LineNumberWidth = -1; axEdit1.LineNumberBackColor = Color.FromArgb(240,240,240); axEdit1.AddKeyword("<b>class</b>","a set or category of things having some property or attribute in common and differentiated from others by kind, type, or qualit" + "y.",null,null); axEdit1.AllowInlineToolTip = EXEDITLib.AllowInlineToolTipEnum.exInlineToolTipWordWrap | EXEDITLib.AllowInlineToolTipEnum.exInlineToolTip; axEdit1.set_Background(EXEDITLib.BackgroundPartEnum.exInlineToolTipForeColor,(uint)ColorTranslator.ToWin32(Color.FromArgb(128,128,128))); axEdit1.Refresh();
X++ (Dynamics Ax 2009)
public void init() { str var_s; ; super(); exedit1.LineNumberWidth(-1); exedit1.LineNumberBackColor(WinApi::RGB2int(240,240,240)); var_s = "a set or category of things having some property or attribute in common and differentiated from others by kind, type, or quality"; var_s = var_s + "."; exedit1.AddKeyword("<b>class</b>",COMVariant::createFromStr(var_s)); exedit1.AllowInlineToolTip(513/*exInlineToolTipWordWrap | exInlineToolTip*/); exedit1.Background(159/*exInlineToolTipForeColor*/,WinApi::RGB2int(128,128,128)); exedit1.Refresh(); }
Delphi 8 (.NET only)
with AxEdit1 do begin LineNumberWidth := -1; LineNumberBackColor := Color.FromArgb(240,240,240); AddKeyword('<b>class</b>','a set or category of things having some property or attribute in common and differentiated from others by kind, type, or quality' + '.',Nil,Nil); AllowInlineToolTip := Integer(EXEDITLib.AllowInlineToolTipEnum.exInlineToolTipWordWrap) Or Integer(EXEDITLib.AllowInlineToolTipEnum.exInlineToolTip); set_Background(EXEDITLib.BackgroundPartEnum.exInlineToolTipForeColor,$808080); Refresh(); end
Delphi (standard)
with Edit1 do begin LineNumberWidth := -1; LineNumberBackColor := RGB(240,240,240); AddKeyword('<b>class</b>','a set or category of things having some property or attribute in common and differentiated from others by kind, type, or quality' + '.',Null,Null); AllowInlineToolTip := Integer(EXEDITLib_TLB.exInlineToolTipWordWrap) Or Integer(EXEDITLib_TLB.exInlineToolTip); Background[EXEDITLib_TLB.exInlineToolTipForeColor] := $808080; Refresh(); end
VFP
with thisform.Edit1 .LineNumberWidth = -1 .LineNumberBackColor = RGB(240,240,240) var_s = "a set or category of things having some property or attribute in common and differentiated from others by kind, type, or quality" var_s = var_s + "." .AddKeyword("<b>class</b>",var_s) .AllowInlineToolTip = 513 && AllowInlineToolTipEnum.exInlineToolTipWordWrap Or AllowInlineToolTipEnum.exInlineToolTip .Object.Background(159) = RGB(128,128,128) .Refresh endwith
dBASE Plus
local oEdit oEdit = form.EXEDITACTIVEXCONTROL1.nativeObject oEdit.LineNumberWidth = -1 oEdit.LineNumberBackColor = 0xf0f0f0 oEdit.AddKeyword("<b>class</b>","a set or category of things having some property or attribute in common and differentiated from others by kind, type, or quality.") oEdit.AllowInlineToolTip = 513 /*exInlineToolTipWordWrap | exInlineToolTip*/ oEdit.Template = [Background(159) = 8421504] // oEdit.Background(159) = 0x808080 oEdit.Refresh()
XBasic (Alpha Five)
Dim oEdit as P oEdit = topparent:CONTROL_ACTIVEX1.activex oEdit.LineNumberWidth = -1 oEdit.LineNumberBackColor = 15790320 oEdit.AddKeyword("<b>class</b>","a set or category of things having some property or attribute in common and differentiated from others by kind, type, or quality.") oEdit.AllowInlineToolTip = 513 'exInlineToolTipWordWrap + exInlineToolTip oEdit.Template = "Background(159) = 8421504" // oEdit.Background(159) = 8421504 oEdit.Refresh()
Visual Objects
oDCOCX_Exontrol1:LineNumberWidth := -1 oDCOCX_Exontrol1:LineNumberBackColor := RGB(240,240,240) oDCOCX_Exontrol1:AddKeyword("<b>class</b>","a set or category of things having some property or attribute in common and differentiated from others by kind, type, or quality.",nil,nil) oDCOCX_Exontrol1:AllowInlineToolTip := exInlineToolTipWordWrap | exInlineToolTip oDCOCX_Exontrol1:[Background,exInlineToolTipForeColor] := RGB(128,128,128) oDCOCX_Exontrol1:Refresh()
PowerBuilder
OleObject oEdit oEdit = ole_1.Object oEdit.LineNumberWidth = -1 oEdit.LineNumberBackColor = RGB(240,240,240) oEdit.AddKeyword("<b>class</b>","a set or category of things having some property or attribute in common and differentiated from others by kind, type, or quality.") oEdit.AllowInlineToolTip = 513 /*exInlineToolTipWordWrap | exInlineToolTip*/ oEdit.Background(159,RGB(128,128,128)) oEdit.Refresh()
Visual DataFlex
Procedure OnCreate Forward Send OnCreate Set ComLineNumberWidth to -1 Set ComLineNumberBackColor to (RGB(240,240,240)) Send ComAddKeyword "<b>class</b>" "a set or category of things having some property or attribute in common and differentiated from others by kind, type, or quality." Nothing Nothing Set ComAllowInlineToolTip to (OLEexInlineToolTipWordWrap + OLEexInlineToolTip) Set ComBackground OLEexInlineToolTipForeColor to (RGB(128,128,128)) 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 oEdit oForm := XbpDialog():new( AppDesktop() ) oForm:drawingArea:clipChildren := .T. oForm:create( ,,{100,100}, {640,480},, .F. ) oForm:close := {|| PostAppEvent( xbeP_Quit )} oEdit := XbpActiveXControl():new( oForm:drawingArea ) oEdit:CLSID := "Exontrol.Edit.1" /*{39136531-DD0F-4281-B445-E36FC2CDDBC5}*/ oEdit:create(,, {10,60},{610,370} ) oEdit:LineNumberWidth := -1 oEdit:SetProperty("LineNumberBackColor",AutomationTranslateColor( GraMakeRGBColor ( { 240,240,240 } ) , .F. )) oEdit:AddKeyword("<b>class</b>","a set or category of things having some property or attribute in common and differentiated from others by kind, type, or quality.") oEdit:AllowInlineToolTip := 513/*exInlineToolTipWordWrap+exInlineToolTip*/ oEdit:SetProperty("Background",159/*exInlineToolTipForeColor*/,AutomationTranslateColor( GraMakeRGBColor ( { 128,128,128 } ) , .F. )) oEdit:Refresh() oForm:Show() DO WHILE nEvent != xbeP_Quit nEvent := AppEvent( @mp1, @mp2, @oXbp ) oXbp:handleEvent( nEvent, mp1, mp2 ) ENDDO RETURN