Use WPS ActiveX Controls through 4 topics, including inserting controls, reviewing common control types, setting control properties, and writing code for controls.
How-to Index
| No. | Topic | Membership |
|---|---|---|
| 1 | 1. Insert ActiveX Controls | Free |
| 2 | 2. Review Common ActiveX Control Types | Free |
| 3 | 3. Set ActiveX Control Properties | Free |
| 4 | 4. Write Code for Controls | Free |
How-to Guide
1. Insert ActiveX Controls
Entry: Developer Tools tab → ActiveX Controls
- Open the document you want to edit and make sure you are in Design Mode.
- Click the Developer Tools tab.
- In the ActiveX Controls group, select the control you need, such as a command button or check box.
- Click the target position in the document to insert the control.
Success Criteria
- Interface result: The selected control appears in the document.
- Next action available: You can continue to edit properties or open code for the control.
Tips While Using
- Common mistake: If Design Mode is not enabled, insertion or editing may not work as expected.
- Environment note: If the Developer Tools tab is not visible, check your current installation and interface settings.
2. Review Common ActiveX Control Types
Entry: Developer Tools tab → ActiveX Controls
- Click the Developer Tools tab.
- Open the ActiveX Controls list.
- Review the available control types, including command button, text box, check box, option button, list box, combo box, toggle button, scroll bar, label, and spin button.
- Choose the control that matches your document interaction needs.
Success Criteria
- Interface result: Multiple control types are visible in the list.
- Next action available: You can select one of them and insert it into the document.
Tips While Using
- Common mistake: If single-choice, multi-choice, and list-style controls are not distinguished clearly, the form structure may not match the intended use.
3. Set ActiveX Control Properties
Entry: Developer Tools tab → Control Properties
- Enter Design Mode.
- Click the ActiveX control you want to configure in the document.
- Click Control Properties.
- Adjust the control parameters in the properties window.
Success Criteria
- Interface result: The properties window opens and shows the current control settings.
- Next action available: After editing, you can return to the document and test the control.
Tips While Using
- Common mistake: If the target control is not selected first, the wrong object may be edited or the properties window may not show the expected settings.
4. Write Code for Controls
Entry: Double-click the control, or select the control and click Developer Tools tab → View Code
- Enter Design Mode.
- Double-click the ActiveX control, or select it first and click View Code.
- Wait for WPS Macro Editor to open.
- Write code in the corresponding event location.
Success Criteria
- Interface result: The macro editor opens successfully.
- Next action available: You can add logic for button clicks, input changes, and other events.
Tips While Using
- Common mistake: If you are not in Design Mode, you may not be able to open the code editor directly.
- Environment note: Control code depends on macro-related capability, so confirm that the current document environment allows it before use.