# SftButton/OCX 4.0 — Guide > SftButton/OCX is an ActiveX button control for the Windows™ operating system, offering many enhancements not found in the standard Windows button control. Index of the SftButton/OCX 4.0 guide, which is split into 3 files in reading order. Each entry links one file and lists its topics; read only the files you need. Online documentation: https://softelvdm.com/Documentation/SftButton%20OCX%204%200 API reference (index of the reference files): https://softelvdm.com/Vault/Softelvdm.com/llms/SftButton-OCX-4.0-reference.txt ## Introduction, Features https://softelvdm.com/Vault/Softelvdm.com/llms/SftButton-OCX-4.0-guide-1.txt - SftButton/OCX 4.0 Product Documentation: SftButton/OCX is an ActiveX button control for the Windows™ operating system, offering many enhancements not found in the standard Windows button control. - New Features: SftButton/OCX 4.0 is virtually 100% upward compatible from version 3.0 and older versions. - Upgrading To Version 4.0: Only a minimal conversion is required when upgrading from SftButton/OCX 3.0 to SftButton/OCX 4.0. - Installing SftButton/OCX: SftButton/OCX 4.0 has the following system requirements: - Button: SftButton/OCX provides basic button control features and extends these by offering a multitude of configuration options, events and methods. - DropDown Button: SftButton/OCX offers an optional drop down button. - Button Label: A button displays a button label, which consists of an optional text component and two optional picture components. - Toggle Button: In addition to simple button functionality, a SftButton/OCX control can also operate as a toggle button, i.e., a button that can not only be clicked, but provides an on and an off position. - Using Themes: Windows themes can be selected by the user using the Windows settings. - Default Button: SftButton/OCX can be used as a default button as it implements the necessary functionality. - Accelerator Keys: The Text property defines the control's caption. - Keyboard & Mouse Interface: If the button control has the input focus, pressing the space bar will fire the Click event. - GDI+: If GDI+ is available, the button control supports additional features not otherwise available. - Bitmap Transparency: SftButton/OCX automatically uses bitmap transparency for all bitmaps used throughout a control. - OLE Drag & Drop: SftButton/OCX supports OLE drag & drop, based on the OLEDragMode and OLEDropMode settings. - Dark Mode: SftButton/OCX 4.0 supports dark mode. - High Contrast: Windows High Contrast is an accessibility setting, not a visual preference. - Accessibility (Screen Readers): SftButton/OCX 4.0 includes built-in Windows UI Automation (UIA) support. - Per-Monitor DPI and Scaling: SftButton/OCX 4.0 is fully Per-Monitor v2 DPI-aware. ## Using SftButton/OCX https://softelvdm.com/Vault/Softelvdm.com/llms/SftButton-OCX-4.0-guide-2.txt - Using SftButton/OCX: SftButton/OCX can be used with most development tools that support ActiveX controls. - Using SftButton/OCX with .NET: Adding SftButton/OCX To The Toolbox Adding SftButton/OCX To A Project Adding The SftHelperComponent To A Project Preparing a Project Special Considerations - Picture Properties - Color Properties Object vs. - Adding Controls To The Visual Studio Toolbox: The controls are automatically added to the Visual Studio Toolbox during installation of SftButton/OCX and are located in the toolbox group "Softel vdm, Inc.". - Using SftButton/OCX with Visual Studio (Unmanaged C/C++): Adding SftButton/OCX To The Toolbox Adding SftButton/OCX To A Project Special Considerations - Picture Properties - Font Properties - Color Properties - Using SftButton/OCX with Visual Basic 6: Adding SftButton/OCX To A Project Special Considerations - Color Properties - Using SftButton/OCX with Other Development Tools: SftButton/OCX is designed according to the latest ActiveX standards and can be used with a wide variety of development tools. - Property Dialogs: Depending on the development environment used, the steps necessary to modify the control properties vary. - Attributes - Property Page: Defines the main attributes of the control. - QuickSetup - Property Page: Provides quick setup of frequently used button styles. - Load/Save Settings - Property Page: The Load/Save buttons are used to load or save the settings for the currently selected control. - Options - Property Page: The Options dialog allows you to change defaults of the property dialogs. - Updates - Property Page: Click on the "Free Updates..." button to download free product maintenance and updates from our web site. - Demo Application: During the installation of SftButton/OCX, an icon for the demo application "Demo" is installed in the program group SftButton OCX 4.0. - Samples: SftButton/OCX includes sample code for C#, VB.NET, C++/MFC and VB6. ## Samples, Distributing SftButton/OCX https://softelvdm.com/Vault/Softelvdm.com/llms/SftButton-OCX-4.0-guide-3.txt - Animations Sample (C#): This sample illustrates AVI animations with AVIPlay method. - Images Sample (C#): This sample illustrates button states and images. - Label Sample (C#): This sample illustrates various button labels, text, images. - Popup Sample (C#): This sample illustrates drop down buttons and popup menus. - Special Sample (C#): This sample illustrates special effects. - Toggle Sample (C#): This sample illustrates toggle buttons. - Animations Sample (VB6): This sample illustrates AVI animations with AVIPlay method. - Images Sample (VB6): This sample illustrates button states and images. - Label Sample (VB6): This sample illustrates various button labels, text, images. - Popup Sample (VB6): This sample illustrates drop down buttons and popup menus. - Special Sample (VB6): This sample illustrates special effects. - Toggle Sample (VB6): This sample illustrates toggle buttons. - Animations Sample (VB.NET): This sample illustrates AVI animations with AVIPlay method. - Images Sample (VB.NET): This sample illustrates button states and images. - Label Sample (VB.NET): This sample illustrates various button labels, text, images. - Popup Sample (VB.NET): This sample illustrates drop down buttons and popup menus. - Special Sample (VB.NET): This sample illustrates special effects. - Toggle Sample (VB.NET): This sample illustrates toggle buttons. - Animations Sample (C++): This sample illustrates AVI animations with AVIPlay method. - Images Sample (C++): This sample illustrates button states and images. - Label Sample (C++): This sample illustrates various button labels, text, images. - Popup Sample (C++): This sample illustrates drop down buttons and popup menus. - Special Sample (C++): This sample illustrates special effects. - Toggle Sample (C++): This sample illustrates toggle buttons. - Distributing SftButton/OCX: This section describes the preferred distribution method when shipping SftButton/OCX with your application. - Technical Support: New major versions and product maintenance are available with an active support subscription.