Type | Description | |||
Part as BackgroundPartEnum | A BackgroundPartEnum expression that indicates a part in the control. | |||
Color | A Color expression that indicates the background color for a specified part. The last 7 bits in the high significant byte of the color to indicates the identifier of the skin being used. Use the Add method to add new skins to the control. If you need to remove the skin appearance from a part of the control you need to reset the last 7 bits in the high significant byte of the color being applied to the background's part. |
The following screen shot shows the control's tooltip with a new visual apperance:
The following sample shows how you can change the tooltip's visual appearance:
VBA (MS Access, Excell...)
With MaskEdit1 .VisualAppearance.Add 1,"c:\exontrol\images\normal.ebn" .Background(64) = &H1000000 .Warning = "Invalid character" .Mask = "`Time: ` 00:00:00" End With
VB6
With MaskEdit1 .VisualAppearance.Add 1,"c:\exontrol\images\normal.ebn" .Background(exToolTipAppearance) = &H1000000 .Warning = "Invalid character" .Mask = "`Time: ` 00:00:00" End With
VB.NET
With Exmaskedit1 .VisualAppearance.Add(1,"c:\exontrol\images\normal.ebn") .set_Background32(exontrol.EXMASKEDITLib.BackgroundPartEnum.exToolTipAppearance,&H1000000) .Warning = "Invalid character" .Mask = "`Time: ` 00:00:00" End With
VB.NET for /COM
With AxMaskEdit1 .VisualAppearance.Add(1,"c:\exontrol\images\normal.ebn") .set_Background(EXMASKEDITLib.BackgroundPartEnum.exToolTipAppearance,16777216) .Warning = "Invalid character" .Mask = "`Time: ` 00:00:00" End With
C++
/* Copy and paste the following directives to your header file as it defines the namespace 'EXMASKEDITLib' for the library: 'ExMaskEdit 7.1 Control Library' #import <MaskEdit.dll> using namespace EXMASKEDITLib; */ EXMASKEDITLib::IMaskEditPtr spMaskEdit1 = GetDlgItem(IDC_MASKEDIT1)->GetControlUnknown(); spMaskEdit1->GetVisualAppearance()->Add(1,"c:\\exontrol\\images\\normal.ebn"); spMaskEdit1->PutBackground(EXMASKEDITLib::exToolTipAppearance,0x1000000); spMaskEdit1->PutWarning(L"Invalid character"); spMaskEdit1->PutMask(L"`Time: ` 00:00:00");
C++ Builder
MaskEdit1->VisualAppearance->Add(1,TVariant("c:\\exontrol\\images\\normal.ebn")); MaskEdit1->Background[Exmaskeditlib_tlb::BackgroundPartEnum::exToolTipAppearance] = 0x1000000; MaskEdit1->Warning = L"Invalid character"; MaskEdit1->Mask = L"`Time: ` 00:00:00";
C#
exmaskedit1.VisualAppearance.Add(1,"c:\\exontrol\\images\\normal.ebn"); exmaskedit1.set_Background32(exontrol.EXMASKEDITLib.BackgroundPartEnum.exToolTipAppearance,0x1000000); exmaskedit1.Warning = "Invalid character"; exmaskedit1.Mask = "`Time: ` 00:00:00";
JavaScript
<OBJECT classid="clsid:43F80262-F652-11D3-AD39-00C0DFC59237" id="MaskEdit1"></OBJECT> <SCRIPT LANGUAGE="JScript"> MaskEdit1.VisualAppearance.Add(1,"c:\\exontrol\\images\\normal.ebn"); MaskEdit1.Background(64) = 16777216; MaskEdit1.Warning = "Invalid character"; MaskEdit1.Mask = "`Time: ` 00:00:00"; </SCRIPT>
C# for /COM
axMaskEdit1.VisualAppearance.Add(1,"c:\\exontrol\\images\\normal.ebn"); axMaskEdit1.set_Background(EXMASKEDITLib.BackgroundPartEnum.exToolTipAppearance,0x1000000); axMaskEdit1.Warning = "Invalid character"; axMaskEdit1.Mask = "`Time: ` 00:00:00";
X++ (Dynamics Ax 2009)
public void init() { ; super(); exmaskedit1.VisualAppearance().Add(1,"c:\\exontrol\\images\\normal.ebn"); exmaskedit1.Background(64/*exToolTipAppearance*/,0x1000000); exmaskedit1.Warning("Invalid character"); exmaskedit1.Mask("`Time: ` 00:00:00"); }
Delphi 8 (.NET only)
with AxMaskEdit1 do begin VisualAppearance.Add(1,'c:\exontrol\images\normal.ebn'); set_Background(EXMASKEDITLib.BackgroundPartEnum.exToolTipAppearance,$1000000); Warning := 'Invalid character'; Mask := '`Time: ` 00:00:00'; end
Delphi (standard)
with MaskEdit1 do begin VisualAppearance.Add(1,'c:\exontrol\images\normal.ebn'); Background[EXMASKEDITLib_TLB.exToolTipAppearance] := $1000000; Warning := 'Invalid character'; Mask := '`Time: ` 00:00:00'; end
VFP
with thisform.MaskEdit1 .VisualAppearance.Add(1,"c:\exontrol\images\normal.ebn") .Object.Background(64) = 0x1000000 .Warning = "Invalid character" .Mask = "`Time: ` 00:00:00" endwith
dBASE Plus
local oMaskEdit oMaskEdit = form.Activex1.nativeObject oMaskEdit.VisualAppearance.Add(1,"c:\exontrol\images\normal.ebn") oMaskEdit.Template = [Background(64) = 0x1000000] // oMaskEdit.Background(64) = 0x1000000 oMaskEdit.Warning = "Invalid character" oMaskEdit.Mask = "`Time: ` 00:00:00"
XBasic (Alpha Five)
Dim oMaskEdit as P oMaskEdit = topparent:CONTROL_ACTIVEX1.activex oMaskEdit.VisualAppearance.Add(1,"c:\exontrol\images\normal.ebn") oMaskEdit.Template = "Background(64) = 16777216" ' oMaskEdit.Background(64) = 16777216 oMaskEdit.Warning = "Invalid character" oMaskEdit.Mask = "`Time: ` 00:00:00"
Visual Objects
oDCOCX_Exontrol1:VisualAppearance:Add(1,"c:\exontrol\images\normal.ebn") oDCOCX_Exontrol1:[Background,exToolTipAppearance] := 0x1000000 oDCOCX_Exontrol1:Warning := "Invalid character" oDCOCX_Exontrol1:Mask := "`Time: ` 00:00:00"
PowerBuilder
OleObject oMaskEdit oMaskEdit = ole_1.Object oMaskEdit.VisualAppearance.Add(1,"c:\exontrol\images\normal.ebn") oMaskEdit.Background(64,16777216 /*0x1000000*/) oMaskEdit.Warning = "Invalid character" oMaskEdit.Mask = "`Time: ` 00:00:00"
Visual DataFlex
Procedure OnCreate Forward Send OnCreate Variant voAppearance Get ComVisualAppearance to voAppearance Handle hoAppearance Get Create (RefClass(cComAppearance)) to hoAppearance Set pvComObject of hoAppearance to voAppearance Get ComAdd of hoAppearance 1 "c:\exontrol\images\normal.ebn" to Nothing Send Destroy to hoAppearance Set ComBackground OLEexToolTipAppearance to |CI$1000000 Set ComWarning to "Invalid character" Set ComMask to "`Time: ` 00:00:00" End_Procedure