Type | Description | |||
State as StateEnum | A StateEnum expression that indicates the state skin being changed. | |||
Skin as Variant | A byte[] or safe arrays of VT_I1 or VT_UI1 expression that indicates the content of the EBN file or a String expression that indicates the BASE64 encoded string that holds a skin file (*.ebn ), or a path to the skin file (*.ebn ). The skin file must be created using the Exontrol's ExButton Builder. Use the Exontrol's exImages tool to build BASE 64 encoded strings on the skin file you have created. If the File parameter is an empty string the skin is erased, so your button displays only the Image and the Caption of the button without a visual appearance ( skin ). |
There are several options to provide EBN files in your project as follows:
(path) The path to the EBN file. This option is useful when your application installs files on the client's machine so you can provide the path to EBN files.
With Button1 .FocusSkinV exNormal, "C:\Program Files\Exontrol\EBN\vistasel.ebn" End With
(string) The BASE64 encoded string that holds the EBN file. This option is useful if you provide EBN objects in the control's Template page or in code. The Exontrol's exImages tool generates BASE64 encoded strings from EBN files.
With Button1 Dim s As String s = "gBFLBCJwBAEHhEJAEGg4BHQDg6AADACAxRDAMgBQKAAzQFAYahyGCGAAGEaBQgmFgAQhFcZQSKUOQTDKMIziYBYfgkMIgSbJUgDGAkRRdDSOYDmGQYDiCIoRShOMIjHLUXxtDaIZwhEAoJa0HAkABRVIRNLoARTAaeJKoSboJBGGwUQjQUB1HRNDy7JasY4GURYRDKY4RDSMFiQTZNVypAaIYqqa4JPrWNYqXhAdLgAKcSTtF6ZZjkCb4apqTpNVDeWCRPkDYYDBLJNZ0LT1FYZPLDZzlCrJCiCcwAY5AdYZBiQAS5SzLIqsWx7Cq4AJtWhaVwxXIEI5CADPchveTqNrvCaZW7FdAwTq+dw1XqVczuXLsPADI6gcZNeq6Xo7GEbJZEaa4bF4bh/guUZSuUEISgGJJGHQOocgyIwZAKKhaAAIQTH2MYhjQJBRAmZ5uiQIYIjmU5dlECQBkONJ8DsTIznSYQok+Ux4hmAhgjgKgMgOYJoEYDYEmECBSA6AZPmOPJNgAIAjjiTA/E4YpIn0PJOBOdJ1DmYhoiIJ4KSyLgugqIwIjYMYKmIQ54mcLJPCOEJCSuIoSCMOBPkORJbD8DpzFYRIRiQWQeEqEhkkkIhOhKZJ5CYQg/g8Q4IncNwJmgPJ2DoJBDFoXYXk6eR6GGGAmCmFhkhmZg5iSVlLHOJJ5DaCRZGiaYRA0eZSHYO5nFmYh3h4Z5Jm4foeigAxeGwOomnmRgOD2DojnCcA2iiKgyguIxpAoPo" s = s + "SiOKRKEaFYkmiWYwmuIRliOLhBDcKZ6gSl4qDqCokimahqiaJYqk2SYwmyJwgmOYJsD8DwjHqNItisWpejqLhrkqYo+i6a56naNw/g+E42jCApPgOOJ8gkLI5ALGpsmsRpNjSbQLFKUo0CwQ4+kcP2TEIIw5C2e4EnOOAuDu345m4a4mmWOpOEsEJxjaT4TkYJg5i8O5UnWPQvHuWp4j6b4rnaeY/k4Y54noPIvAOSJ9hacBziMCZCnCDA3AqQ4wysEpEHCHAInPqgjk8Bw6jGPB2giR4xkwfwikgchMgMJoiA+Y5snSRlLnSdw7DKbJDC+TBzEyTw2xqDJXDmTZzByJJ186axwm+UI0EOYxDlGNBdB8SpSHSTQjE4O5yhOXpbD6dAbHaXI3jUbRnFiVp1H0dxaleNZNGifg/DUKZCAaAgsy8eZGg+A5EnsPZ1guSxtjcNwtlcdJdncPZneedo7GSO4NokxYAcAUHMCwMQYjGD8OoTgRhBjEHiJwL4HRihyA4G8EYxxPCnA4GwLIHgjgZEGA4JAJhcj6DkJUaArwigJDoHAW4TQDj0AOPEcwbBhiIAQQE" .FocusSkinV exNormal, s End WithIn order to generate the BASE64 encoded string from your EBN file do the following:
Run the eXImages tool
Run the Windows Explorer and select or locate the EBN file. Press the CTRL + C or drop the EBN file in the middle panel ( Drag here files such of .bmp, .gif, .ebn, ... )
The clipboard contains the generated BASE64 string, or you can copy it from the right panel of the eXImages tool. Generally, the string is long, so you can use the s definition to insert it to your code.
(array) A byte[] or safe arrays of VT_I1 or VT_UI1 expression that indicates the content of the EBN file. This option is useful if you want to provide the EBN files in the project resources. The idea is that you have to provide a safe array of bytes to the Skin parameter of the FocusSkinV method. For instance, the VB6 provides the LoadResData function, the VB/NET or C# provides an internal class Resources where all items in the resources can be accessed through public properties.
VB6
With Button1 .FocusSkinV exNormal, LoadResData(101, "CUSTOM") End WithIn order to insert the EBN file to the project resources do the following:
Click the VB Resource Editor button in the toolbox.
Once the VB Resource Editor tool is opened, click the Add Custom Resource ... button in the toolbox
Locate, Select the EBN file in the opened file/folder dialog, and press Open button
The "CUSTOM"\101 item should be inserted in the resource file.
Click the Save button, so the RES file is being associated with your project.
VB/NET
With Exbutton1 .FocusSkinV(exNormal, WindowsApplication1.My.Resources.vistasel) End WithIn order to insert the EBN file to the project resources do the following:
Select the Project\Properties... from the VS menu
Click the Resources page
Click the Add Resource and then Add Existing File...
Locate, Select the EBN file in the opened file/folder dialog, and press Open button
The vistasel item is being generated and so it can be accessed in code using: WindowsApplication1.My.Resources.vistasel
C#
exbutton1.FocusSkinV(exNormal, WindowsApplication1.Properties.Resources.vistasel);In order to insert the EBN file to the project resources do the following:
Select the Project\Properties... from the VS menu
Click the Resources page
Click the Add Resource and then Add Existing File...
Locate, Select the EBN file in the opened file/folder dialog, and press Open button
The vistasel item is being generated and so it can be accessed in code using: WindowsApplication1.Properties.Resources.vistasel