JB.TcHmiDynamicPopup 2.0.0

dotnet add package JB.TcHmiDynamicPopup --version 2.0.0
                    
NuGet\Install-Package JB.TcHmiDynamicPopup -Version 2.0.0
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="JB.TcHmiDynamicPopup" Version="2.0.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="JB.TcHmiDynamicPopup" Version="2.0.0" />
                    
Directory.Packages.props
<PackageReference Include="JB.TcHmiDynamicPopup" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add JB.TcHmiDynamicPopup --version 2.0.0
                    
#r "nuget: JB.TcHmiDynamicPopup, 2.0.0"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package JB.TcHmiDynamicPopup@2.0.0
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=JB.TcHmiDynamicPopup&version=2.0.0
                    
Install as a Cake Addin
#tool nuget:?package=JB.TcHmiDynamicPopup&version=2.0.0
                    
Install as a Cake Tool

Disclaimer

This is a personal guide not a peer reviewed journal or a sponsored publication. We make no representations as to accuracy, completeness, correctness, suitability, or validity of any information and will not be liable for any errors, omissions, or delays in this information or any losses injuries, or damages arising from its display or use. All information is provided on an as is basis. It is the reader’s responsibility to verify their own facts.

The views and opinions expressed in this guide are those of the authors and do not necessarily reflect the official policy or position of any other agency, organization, employer or company. Assumptions made in the analysis are not reflective of the position of any entity other than the author(s) and, since we are critically thinking human beings, these views are always subject to change, revision, and rethinking at any time. Please do not hold us to them in perpetuity.

JB.TcHmiDynamicPopup for TwinCAT HMI

Nuget package created for version 1.14.3.8

In version 1.12.760.x a new TcHmiPopup control was added to TwinCAT HMI.

Instead of having to add the Popup manually to the view/content this nuget package is dynamically creating a usercontrol/content by calling a javascript function and it will have the same look & feel as the new TcHmiPopup that you can find in the toolbox.

Usage

The nuget package consists of only one function: enter image description here

Use the function in any event (for example .onPressed in a button): enter image description here

Parameters in the function:

  • popupId: unique id for the popup (this is used so you dont accidentally open the same popup with the same data-bindings twice)
  • targetFile: choose .usercontrol or .content and also link the parameters if it's an .usercontrol file
  • popupHeader: header text for the popup
  • buttons: additional buttons (such as close-button or other custom ones)
  • modal: this will center the popup in the screen and add a darkened background, also not movable
  • movable: make the popup draggable
  • destination: where the popup should be added. If you are using the Desktop.view just type Desktop
  • width: size in px
  • height: size in px
  • left: position in px
  • top: position in px

Screenshots

Without modal: enter image description here

With modal: enter image description here

Installation

Easiest way to install this package is inside your TwinCAT HMI Project. Right click References and click "Manage NuGet Packages.." then browse for the file and install it!

enter image description here

There are no supported framework assets in this package.

Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
2.0.0 237 4/17/2025
1.0.0 726 6/26/2023

Updated to add new features that was introduced with HMI version 14.x.