# SftMask/DLL 7.0 — Guide > SftMask/DLL is a DLL-based masked edit control for the Windows™ operating system, offering easy to use data entry with edit masks, date input with a dropdown calendar, numeric input with a dropdown calculator, spin buttons and autocomplete. Index of the SftMask/DLL 7.0 guide, which is split into 5 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/SftMask%20DLL%207%200 API reference (index of the reference files): https://softelvdm.com/Vault/Softelvdm.com/llms/SftMask-DLL-7.0-reference.txt ## Introduction https://softelvdm.com/Vault/Softelvdm.com/llms/SftMask-DLL-7.0-guide-1.txt - SftMask/DLL - Masked Edit Control: SftMask/DLL is a DLL-based masked edit control for the Windows™ operating system, offering easy to use data entry with edit masks, date input with a dropdown calendar, numeric input with a dropdown calculator, spin buttons and autocomplete. - Installing SftMask/DLL: When you are ready to install SftMask/DLL: ## Features (1 of 3) https://softelvdm.com/Vault/Softelvdm.com/llms/SftMask-DLL-7.0-guide-2.txt - Components: A SftMask control is composed of several areas. - Masked Edit Control: By defining an edit mask (lpszMask field of the SFTMASK_CONTROL structure), extensive input validation and formatting is available. - Edit Masks: The edit mask, defined using the lpszMask field of the SFTMASK_CONTROL structure, controls input validation and formatting. - Simple Edit Control: SftMask/DLL can be used as a simple edit control. - Built-In Formatting: Fields defined in a masked edit control are automatically formatted based on the defined edit mask (lpszMask field of the SFTMASK_CONTROL structure). - Built-In Caption: SftMask/DLL provides an easy to use built-in caption which is displayed at a user-definable position, relative to the edit area (see the captioniPosition field of the SFTMASK_CONTROL structure). - Label: In addition to the built-in caption, SftMask/DLL can display a label inside the edit area, at its left or right end. - Default Text: The masked edit control can automatically fill an empty control with a default value, defined using the lpszDefaultText field of the SFTMASK_CONTROL structure. - Input Validation: Input validation is an important part of any application as data entered by the user must be verified and validated. - Error Image: The control supports an automatic error indicator in the form of an image next to the control, which provides visual feedback to the user that the data is required, invalid or missing. - Popup Calendar: Date input fields can optionally display a popup calendar, based on the iEditStyle field of the SFTMASK_CONTROL structure (SFTMASK_EDITCALENDARDROPDOWN). - Popup Calculator: The popup calculator is automatically available for numeric input if the edit mask (lpszMask field of the SFTMASK_CONTROL structure) has been defined using the C subtoken (see Edit Masks). ## Features (2 of 3) https://softelvdm.com/Vault/Softelvdm.com/llms/SftMask-DLL-7.0-guide-3.txt - AutoComplete: SftMask/DLL supports three autocomplete methods, which are intended to assist the user in entering data, by recalling previously entered data or by displaying a list of files/directories. - Up/Down Buttons: A numeric input field can be defined to accept up/down button clicks. - Ellipse Buttons: A masked edit control can be defined to accept ellipse button clicks. - Auto-Advance: When defining input masks with multiple numeric fields (or date/time components), the fAutoAdvance field of the SFTMASK_CONTROL structure can be used to automatically move the caret location to the next available input position once a … - Auto-Tabbing: Using the fAutoTab field of the SFTMASK_CONTROL structure, the input focus can automatically be set to the next control on the dialog once valid input data has been entered and the entire contents are valid. - Tabbing Within The Control: Depending on the input mask, it may be desirable to allow the user to tab between different input fields within one masked edit control. - Insert/Overtype Mode: SftMask/DLL supports both insert and overtype mode. - Undo: The masked edit control can undo previous user actions (such as entering text). - Selection: Various fields and functions are available to manipulate the selection (highlighted) text. - Hit-Testing: A number of functions are available to determine the exact position of components of the masked edit control: - Drag & Drop: The masked edit control can participate in application-implemented drag & drop of its selected text. - Display Attributes: Various fields of the SFTMASK_CONTROL structure are available to define the visual appearance of the masked edit control: - Keyboard & Mouse Interface - GDI+: The masked edit control uses GDI+ for additional image features not otherwise available: - Using Themes: If a Windows theme is selected, the display of user interface controls, such as SftMask/DLL, adapts to the current display theme. - Dark Mode: SftMask/DLL 7.0 supports dark mode. - High Contrast: Windows High Contrast is an accessibility setting, not a visual preference. - Accessibility (Screen Readers): SftMask/DLL 7.0 ships with built-in Windows UI Automation (UIA) support. ## Features (3 of 3) https://softelvdm.com/Vault/Softelvdm.com/llms/SftMask-DLL-7.0-guide-4.txt - Per-Monitor DPI and Scaling: SftMask/DLL 7.0 is fully Per-Monitor v2 DPI-aware. ## Programming, Demo Application https://softelvdm.com/Vault/Softelvdm.com/llms/SftMask-DLL-7.0-guide-5.txt - Building Applications: This section describes how to prepare an application using the C or C++ programming language to successfully use SftMask/DLL. - Creating a Dialog Resource: This section describes how to add a masked edit control to a dialog using Visual Studio. - Using C: This section describes how to use SftMask/DLL in an application written using the C programming language. - Using C++/MFC: This section describes how to use SftMask/DLL in an application written using C++ and the Microsoft Foundation Class library (MFC). - MFC and Notifications: Notifications can be handled by a masked edit control's parent window or directly by the masked edit control itself (in a derived class). - Demo Application: During the installation of SftMask/DLL, an icon for the demo application "Demo" is installed in the program group SftMask DLL 7.0. - Samples: SftMask/DLL includes sample code for C and C++/MFC. - Calculator Sample (C): This sample illustrates currency amount input with the dropdown calculator in a dialog. - DateTime Sample (C): This sample illustrates date input with a dropdown calendar (defaulting to today's date using the =Today default text) and date/time input with up-down buttons and tabbing between fields. - DataEntry Sample (C): This sample illustrates several common data entry controls: IP address input with up-down buttons and auto advance, password input with a hidden display character, a US phone number mask, and a path field with file/folder autocomplete where … - Calculator Sample (C++/MFC): This sample illustrates currency amount input with the dropdown calculator, hosted in an MFC dialog through CSftMask and DDX_Control. - DateTime Sample (C++/MFC): This sample illustrates date input with a dropdown calendar (defaulting to today's date using the =Today default text) and date/time input with up-down buttons, hosted in an MFC dialog through CSftMask and DDX_Control. - DataEntry Sample (C++/MFC): This sample illustrates several common data entry controls hosted in an MFC dialog through CSftMask and DDX_Control: IP address input with up-down buttons and auto advance, password input with a hidden display character, a US phone number … - SftMask/DLL Wizard: During the installation of SftMask/DLL, an icon for the application "Wizard" is installed in the program group SftMask DLL 7.0. - SftMask/DLL Wizard Help: The SftMask/DLL Wizard is used to define a new masked edit control or to edit an existing definition. - SftMask/DLL Wizard - Design Pages: The SftMask/DLL Wizard uses several design tab pages to define the look and behavior of a masked edit control. - C, C++/MFC - Generated Source Code: The source code generated using the C or C++/MFC tabs can be used to implement a masked edit control in an application. - Distributing the Dlls: Distributing the DLLs included with SftMask DLL 7.0 is only possible in accordance with the licensing agreement. - Technical Support: New major versions and product maintenance are available with an active support subscription.