develop

Developing Custom Display Widget Plugins for DewesoftX Using C++

Learn how to build custom display widget plugins for DewesoftX using C++. Visualize data your way with fully customizable widgets and C++ plugin tools.

0 participants

Updated July 2025

What You’ll Learn 🧩

  • Understand the C++ Widget Plugin framework and how custom widgets integrate with DewesoftX’s interface

  • Set up the development environment: install Visual Studio, DewesoftX widget plugin template (VSIX), and configure DEWESOFT_EXE path

  • Create your first widget plugin using the wizard: configure project metadata, base class, and example template

  • Build example widgets like a digital meter: implement drawCanvasData, define visuals, and test live data display

  • Develop advanced widget rendering: use VisualProperties, handle updateVisualProperties, visualPropertyChanged, and button events

  • Import and export .vc plugin bundles for easy deployment across DewesoftX installations

  • Structure projects with test support: use separate test projects and unit tests (gtest) for widget logic validation

  • Transition from sample templates to fully custom visuals: modify and extend templates, remove sample code, and iterate on unique widget behavior

Course overview

The Custom Display Widget Plugins course empowers developers to extend DewesoftX’s visualization capabilities with fully custom, C++-based interface components. It starts by introducing the C++ Widget Plugin framework, which abstracts DewesoftX internals accessed via DCOM and enables seamless integration of new visual instruments.

You’ll then walk through setting up your development environment: installing Visual Studio, the DewesoftX widget plugin template (via VSIX), and configuring environment variables (DEWESOFT_EXE_X64 or X86) so your new widget can be automatically detected by DewesoftX.

Next, the course guides you in creating and customizing your first plugin. Using the Visual Studio wizard, you’ll generate boilerplate code and metadata before building a simple digital meter that renders channel values in real-time using drawCanvasData. Along the way, you’ll explore project structure, clean up sample code, and add configurable visual properties.

Advanced sessions dive into rich UI features: handling property changes, drawing performance on canvas, reacting to button clicks, and defining VisualProperties through methods like updateVisualProperties and visualPropertyChanged. You’ll also package your finished widget into a .vc bundle, ready for import into other DewesoftX setups .

Additionally, the course encourages best practices by demonstrating how to structure projects to include unit tests (via Google Test) to validate widget logic before deployment.

By course end, you’ll be proficient in designing, implementing, packaging, and deploying custom display widgets for DewesoftX—enabling powerful, application-specific visual tools tailored to your measurement needs.

Page 1 of 15

Rate this course

Reviews

No reviews yet. Be the first to leave a review!