Added minimal functionality for Robot teaching

- Added minimal HMI
- Added possibility to open and close all chamber doors
This commit is contained in:
2026-01-17 09:20:39 +01:00
parent 9f058db2a3
commit 2d11c43579
2274 changed files with 912690 additions and 162 deletions

View File

@@ -0,0 +1,428 @@
{
"$schema": "../../TcHmiFramework/Schema/ControlDescription.Schema.json",
"apiVersion": 1,
"name": "TcHmiTextblock",
"namespace": "TcHmi.Controls.Beckhoff",
"displayName": "Textblock",
"version": {
"full": "14.4.1.0",
"major": 14,
"minor": 4,
"build": 1,
"revision": 0
},
"visible": true,
"themeable": "Standard",
"base": "TcHmi.Controls.System.TcHmiControl",
"description": "A Control to display Text.",
"defaultDesignerEvent": "",
"properties": {
"containerControl": false,
"geometry": {
"width": 150,
"height": 26
}
},
"icons": [
{
"name": "Icons/16x16.png",
"width": 16,
"height": 16
}
],
"template": "Template.html",
"dependencyFiles": [
{
"name": "Style.css",
"type": "Stylesheet",
"description": ""
},
{
"name": "../dist/TcHmiTextblock/TcHmiTextblock.esm.js",
"type": "EsModule",
"description": "Contains all the main logic as ES module."
}
],
"themes": {
"Base": {
"resources": [
{
"name": "Themes/Base/Style.css",
"type": "Stylesheet",
"description": ""
}
]
},
"Base-Dark": {
"resources": [
{
"name": "Themes/Base-Dark/Style.css",
"type": "Stylesheet",
"description": ""
}
]
}
},
"attributes": [
{
"name": "data-tchmi-text-color",
"propertyName": "TextColor",
"propertySetterName": "setTextColor",
"propertyGetterName": "getTextColor",
"displayName": "Text Color",
"visible": true,
"themeable": "Standard",
"displayPriority": 10,
"type": "tchmi:framework#/definitions/SolidColor",
"category": "Colors",
"description": "The color of the displayed text",
"readOnly": false,
"bindable": true,
"defaultBindingMode": "OneWay",
"heritable": true,
"allowSymbolExpressionsInObject": true,
"defaultValue": null,
"defaultValueInternal": null
},
{
"name": "data-tchmi-width-mode",
"propertyName": "WidthMode",
"propertySetterName": "setWidthMode",
"propertyGetterName": "getWidthMode",
"displayName": "Width Mode",
"visible": true,
"themeable": "Advanced",
"displayPriority": 40,
"type": "tchmi:framework#/definitions/SizeModeWithContent",
"category": "Layout",
"description": "Defines if the width is taken from the width value, calculated from left and right (parent) or calculated from the text length.",
"readOnly": false,
"bindable": true,
"defaultBindingMode": "OneWay",
"heritable": true,
"defaultValue": null,
"defaultValueInternal": "Value"
},
{
"name": "data-tchmi-height-mode",
"propertyName": "HeightMode",
"propertySetterName": "setHeightMode",
"propertyGetterName": "getHeightMode",
"displayName": "Height Mode",
"visible": true,
"themeable": "Advanced",
"displayPriority": 40,
"type": "tchmi:framework#/definitions/SizeModeWithContent",
"category": "Layout",
"description": "Defines if the height is taken from the height value, calculated from top and bottom (parent) or calculated from the text length.",
"readOnly": false,
"bindable": true,
"defaultBindingMode": "OneWay",
"heritable": true,
"defaultValue": null,
"defaultValueInternal": "Value"
},
{
"name": "data-tchmi-text",
"propertyName": "Text",
"propertySetterName": "setText",
"propertyGetterName": "getText",
"displayName": "Text",
"visible": true,
"themeable": "Standard",
"displayPriority": 10,
"type": "tchmi:general#/definitions/String",
"category": "Common",
"description": "Content of the textbox.",
"readOnly": false,
"bindable": true,
"defaultBindingMode": "OneWay",
"heritable": true,
"defaultValue": null,
"defaultValueInternal": ""
},
{
"name": "data-tchmi-ignore-escape-sequences",
"propertyName": "IgnoreEscapeSequences",
"propertySetterName": "setIgnoreEscapeSequences",
"propertyGetterName": "getIgnoreEscapeSequences",
"displayName": "Ignore Escape Sequences",
"visible": true,
"themeable": "Advanced",
"displayPriority": 100,
"type": "tchmi:general#/definitions/Boolean",
"category": "Text",
"description": "When set to true a backslash in a text will be shown verbatim in the HMI.",
"readOnly": false,
"bindable": true,
"defaultBindingMode": "OneWay",
"heritable": true,
"defaultValue": null,
"defaultValueInternal": false
},
{
"name": "data-tchmi-text-horizontal-alignment",
"propertyName": "TextHorizontalAlignment",
"propertySetterName": "setTextHorizontalAlignment",
"propertyGetterName": "getTextHorizontalAlignment",
"displayName": "Text Horizontal Alignment",
"visible": true,
"themeable": "Standard",
"displayPriority": 20,
"type": "tchmi:framework#/definitions/HorizontalAlignment",
"category": "Text",
"description": "The horizontal alignment of the text",
"readOnly": false,
"bindable": true,
"defaultBindingMode": "OneWay",
"heritable": true,
"defaultValue": null,
"defaultValueInternal": null
},
{
"name": "data-tchmi-text-vertical-alignment",
"propertyName": "TextVerticalAlignment",
"propertySetterName": "setTextVerticalAlignment",
"propertyGetterName": "getTextVerticalAlignment",
"displayName": "Text Vertical Alignment",
"visible": true,
"themeable": "Standard",
"displayPriority": 20,
"type": "tchmi:framework#/definitions/VerticalAlignment",
"category": "Text",
"description": "The vertical alignment of the text",
"readOnly": false,
"bindable": true,
"defaultBindingMode": "OneWay",
"heritable": true,
"defaultValue": null,
"defaultValueInternal": null
},
{
"name": "data-tchmi-content-padding",
"propertyName": "ContentPadding",
"propertySetterName": "setContentPadding",
"propertyGetterName": "getContentPadding",
"displayName": "Content Padding",
"visible": true,
"themeable": "Standard",
"displayPriority": 55,
"type": "tchmi:framework#/definitions/Padding",
"category": "Text",
"description": "The distance of the text to the border.",
"readOnly": false,
"bindable": true,
"defaultBindingMode": "OneWay",
"heritable": true,
"allowSymbolExpressionsInObject": true,
"defaultValue": null,
"defaultValueInternal": null
},
{
"name": "data-tchmi-text-font-family",
"propertyName": "TextFontFamily",
"propertySetterName": "setTextFontFamily",
"propertyGetterName": "getTextFontFamily",
"displayName": "Text Font Family",
"visible": true,
"themeable": "Standard",
"displayPriority": 60,
"type": "tchmi:framework#/definitions/FontFamily",
"category": "Text",
"description": "Comma separated list of family name or keyword: 'serif', 'sans-serif', 'monospace'.",
"readOnly": false,
"bindable": true,
"defaultBindingMode": "OneWay",
"heritable": true,
"defaultValue": null,
"defaultValueInternal": null
},
{
"name": "data-tchmi-text-font-size",
"propertyName": "TextFontSize",
"propertySetterName": "setTextFontSize",
"propertyGetterName": "getTextFontSize",
"displayName": "Text Font Size",
"visible": true,
"themeable": "Standard",
"displayPriority": 20,
"type": "tchmi:framework#/definitions/MeasurementValue",
"category": "Text",
"description": "The size of the font. Percent values are relative to the parent elements font size.",
"readOnly": false,
"bindable": true,
"defaultBindingMode": "OneWay",
"heritable": true,
"defaultValue": null,
"defaultValueInternal": null
},
{
"name": "data-tchmi-text-font-size-unit",
"propertyName": "TextFontSizeUnit",
"propertySetterName": "setTextFontSizeUnit",
"propertyGetterName": "getTextFontSizeUnit",
"refTo": "TextFontSize",
"displayName": "Text Font Size Unit",
"visible": true,
"themeable": "Advanced",
"displayPriority": 20,
"type": "tchmi:framework#/definitions/MeasurementUnit",
"category": "Text",
"description": "Could be 'px' or for relative sizing '%'.",
"readOnly": false,
"bindable": true,
"defaultBindingMode": "OneWay",
"heritable": true,
"defaultValue": null,
"defaultValueInternal": "px"
},
{
"name": "data-tchmi-horizontal-scroll",
"propertyName": "HorizontalScroll",
"propertySetterName": "setHorizontalScroll",
"propertyGetterName": "getHorizontalScroll",
"displayName": "Horizontal Scroll",
"visible": true,
"themeable": "Advanced",
"displayPriority": 40,
"type": "tchmi:framework#/definitions/TcHmi.Controls.Beckhoff.TcHmiTextblock.ScrollMode",
"category": "Text",
"description": "Whether to display horizontal scrollbars. Word Wrap has to be deactivated.",
"readOnly": false,
"bindable": true,
"defaultBindingMode": "OneWay",
"heritable": true,
"defaultValue": null,
"defaultValueInternal": "Never"
},
{
"name": "data-tchmi-vertical-scroll",
"propertyName": "VerticalScroll",
"propertySetterName": "setVerticalScroll",
"propertyGetterName": "getVerticalScroll",
"displayName": "Vertical Scroll",
"visible": true,
"themeable": "Advanced",
"displayPriority": 41,
"type": "tchmi:framework#/definitions/TcHmi.Controls.Beckhoff.TcHmiTextblock.ScrollMode",
"category": "Text",
"description": "Whether to display vertical scrollbars.",
"readOnly": false,
"bindable": true,
"defaultBindingMode": "OneWay",
"heritable": true,
"defaultValue": null,
"defaultValueInternal": "Never"
},
{
"name": "data-tchmi-horizontal-scroll-position",
"propertyName": "HorizontalScrollPosition",
"propertySetterName": "setHorizontalScrollPosition",
"propertyGetterName": "getHorizontalScrollPosition",
"displayName": "Horizontal Scroll Position",
"visible": true,
"themeable": "Advanced",
"displayPriority": 42,
"type": "tchmi:framework#/definitions/PositiveNumber",
"category": "Text",
"description": "Scroll position of the horizontal scrollbar.",
"readOnly": false,
"bindable": true,
"defaultBindingMode": "OneWay",
"heritable": true,
"defaultValue": null,
"defaultValueInternal": 0
},
{
"name": "data-tchmi-vertical-scroll-position",
"propertyName": "VerticalScrollPosition",
"propertySetterName": "setVerticalScrollPosition",
"propertyGetterName": "getVerticalScrollPosition",
"displayName": "Vertical Scroll Position",
"visible": true,
"themeable": "Advanced",
"displayPriority": 43,
"type": "tchmi:framework#/definitions/PositiveNumber",
"category": "Text",
"description": "Scroll position of the vertical scrollbar.",
"readOnly": false,
"bindable": true,
"defaultBindingMode": "OneWay",
"heritable": true,
"defaultValue": null,
"defaultValueInternal": 0
},
{
"name": "data-tchmi-text-font-style",
"propertyName": "TextFontStyle",
"propertySetterName": "setTextFontStyle",
"propertyGetterName": "getTextFontStyle",
"displayName": "Text Font Style",
"visible": true,
"themeable": "Standard",
"displayPriority": 60,
"type": "tchmi:framework#/definitions/FontStyle",
"category": "Text",
"description": "'Normal', 'Italic' (slanted with special glyphs), 'Oblique' (slanted normal glyphs) or 'Auto' for inherited.",
"readOnly": false,
"bindable": true,
"defaultBindingMode": "OneWay",
"heritable": true,
"defaultValue": null,
"defaultValueInternal": "Auto"
},
{
"name": "data-tchmi-text-font-weight",
"propertyName": "TextFontWeight",
"propertySetterName": "setTextFontWeight",
"propertyGetterName": "getTextFontWeight",
"displayName": "Text Font Weight",
"visible": true,
"themeable": "Standard",
"displayPriority": 60,
"type": "tchmi:framework#/definitions/FontWeight",
"category": "Text",
"description": "'Normal', 'Bold' (glyphs with more weight) or 'Auto' for inherited.",
"readOnly": false,
"bindable": true,
"defaultBindingMode": "OneWay",
"heritable": true,
"defaultValue": null,
"defaultValueInternal": "Auto"
},
{
"name": "data-tchmi-word-wrap",
"propertyName": "WordWrap",
"propertySetterName": "setWordWrap",
"propertyGetterName": "getWordWrap",
"displayName": "Word Wrap",
"visible": true,
"themeable": "Advanced",
"displayPriority": 55,
"type": "tchmi:general#/definitions/Boolean",
"category": "Text",
"description": "Wrap text that is too long to fit in a single line.",
"readOnly": false,
"bindable": true,
"defaultBindingMode": "OneWay",
"heritable": true,
"defaultValue": true,
"defaultValueInternal": false
}
],
"attributeCategories": [
{
"name": "Text",
"displayPriority": 500,
"defaultCollapsed": true,
"description": "Attributes defining the text of the control."
}
],
"functions": [],
"events": [],
"dataTypes": [
{
"schema": "Schema/Types.Schema.json"
}
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 247 B

View File

@@ -0,0 +1,19 @@
{
"$schema": "http://json-schema.org/draft-04/schema",
"definitions": {
"TcHmi.Controls.Beckhoff.TcHmiTextblock": {
"$schema": "http://json-schema.org/draft-04/schema",
"type": "object",
"frameworkInstanceOf": "TcHmi.Controls.System.TcHmiControl",
"frameworkControlType": "TcHmiTextblock",
"frameworkControlNamespace": "TcHmi.Controls.Beckhoff"
},
"TcHmiTextblock": {
"$ref": "tchmi:framework#/definitions/TcHmi.Controls.Beckhoff.TcHmiTextblock"
},
"TcHmi.Controls.Beckhoff.TcHmiTextblock.ScrollMode": {
"type": "string",
"enum": ["Never", "Always", "Auto"]
}
}
}

View File

@@ -0,0 +1,27 @@
/** Styles for all themes */
/* Style for the main element */
.TcHmi_Controls_Beckhoff_TcHmiTextblock,
.tchmi-textblock {
/* Prevent overflow if the border radius is huge */
overflow: hidden;
display: flex;
align-items: flex-start;
justify-content: flex-start;
text-align: left;
}
.TcHmi_Controls_Beckhoff_TcHmiTextblock-template,
.tchmi-textblock-template {
display: grid;
cursor: default;
height: 100%;
width: 100%;
}
.TcHmi_Controls_Beckhoff_TcHmiTextblock-template-text-container,
.tchmi-textblock-template-text-container {
align-self: start;
justify-self: start;
text-align: left;
}

View File

@@ -0,0 +1,372 @@
// Compatibility file for non-module typescript compiles without adjustments.
// Use the following line for modern code (needs adjustments to tsconfig.json#configOptions/paths)
// import { TcHmiControl } from "Beckhoff.TwinCAT.HMI.Framework/index.esm.js";
// ***************************************************************************
export declare enum ScrollMode {
Never = 0,
Always = 1,
Auto = 2
}
declare class TcHmiTextblock extends TcHmi.Controls.System.TcHmiControl {
#private;
constructor(element: JQuery, pcElement: JQuery, attrs: TcHmi.Controls.ControlAttributeList);
/** Reference to the root dom element of the current control template as jquery object. */
protected __elementTemplateRoot: JQuery;
protected __elementTextContainer: JQuery;
/**
* Internal reference to the attribute "data-tchmi-horizontal-text-alignment"
*/
protected __textHorizontalAlignment: TcHmi.HorizontalAlignment | null | undefined;
/**
* Internal reference to the attribute "data-tchmi-vertical-text-alignment"
*/
protected __textVerticalAlignment: TcHmi.VerticalAlignment | null | undefined;
/**
* Internal reference to the attribute "data-tchmi-text-font-size"
*/
protected __textFontSize: number | undefined;
/**
* Internal reference to the attribute "data-tchmi-text-font-size-unit"
*/
protected __textFontSizeUnit: TcHmi.FontSizeUnit | undefined;
/**
* Internal reference to the attribute "data-tchmi-text-font-family"
*/
protected __textFontFamily: TcHmi.FontFamily | null | undefined;
/**
* Internal reference to the attribute "data-tchmi-text-font-style"
*/
protected __textFontStyle: TcHmi.FontStyle | undefined;
/**
* Internal reference to the attribute "data-tchmi-text-font-style"
*/
protected __textFontWeight: TcHmi.FontWeight | undefined;
/**
* Internal reference to the attribute "data-tchmi-text-color"
*/
protected __textColor: TcHmi.SolidColor | null | undefined;
/** Internal reference to the attribute "data-tchmi-text" */
protected __text: string | undefined;
/** Internal reference to the attribute "data-tchmi-ignore-escape-sequences" */
protected __ignoreEscapeSequences: boolean | undefined;
/**
* Internal reference to the attribute "data-tchmi-word-wrap"
*/
protected __wordWrap: boolean | undefined;
/**
* Internal reference to the attribute "data-tchmi-horizontal-scroll"
*/
protected __horizontalScroll: ScrollMode | undefined;
/**
* Internal reference to the attribute "data-tchmi-vertical-scroll"
*/
protected __verticalScroll: ScrollMode | undefined;
/**
* Internal reference to the attribute "data-tchmi-horizontal-scroll-position"
*/
protected __horizontalScrollPosition: number | null | undefined;
/**
* Internal reference to the attribute "data-tchmi-vertical-scroll-position"
*/
protected __verticalScrollPosition: number | null | undefined;
protected __scrollEventDestroyer: TcHmi.DestroyFunction | null;
/**
* Internal reference to the attribute "data-tchmi-content-padding"
*/
protected __contentPadding: TcHmi.FourSidedCss | null | undefined;
protected __asyncWorkData: IControlSpecificData;
/**
* If raised, the control object exists in control cache and constructor of each inheritation level was called.
* This function is only to be used by the System. Other function calls are not intended.
*/
__previnit(): void;
/**
* If raised, all attributes have been set to it's default or dom values.
* This function is only to be used by the System. Other function calls are not intended.
*/
__init(): void;
/**
* Is called by the system after the control instance gets part of the current DOM.
* This function is only to be used by the System. Other function calls are not intended.
*/
__attach(): void;
/**
* Is called by the system after the control instance is no longer part of the current DOM.
* This function is only to be used by the System. Other function calls are not intended.
*/
__detach(): void;
/**
* Destroy the current control instance.
* Will be called automatically if system destroys control!
*/
destroy(): void;
/**
* Sets the value of the width mode attribute.
* @param valueNew The new width mode value..
*/
setWidthMode(valueNew: TcHmi.SizeModeWithContent | null): void;
/**
* Processes the current width and width unit.
*/
__processWidth(): void;
/**
* Returns the calculated width in pixel if self defined (not percent based) or based on the children.
*/
__getContentWidth(): number | null;
/**
* Sets the value of the height mode attribute.
* @param valueNew The new height mode value..
*/
setHeightMode(valueNew: TcHmi.SizeModeWithContent | null): void;
/**
* Processes the current height and height unit.
*/
__processHeight(): void;
/**
* Returns the calculated height in pixel if self defined (not percent based) or based on the children.
*/
__getContentHeight(): number | null;
/**
* Sets the value of the member variable "text" if the new value is not equal to the current value
* or the current control instance is locked and calls the associated process function (processText) after that.
* @param valueNew The new value for text.
*/
setText(valueNew: string | null): void;
/**
* Returns the current value of the member variable text.
*/
getText(): string | undefined;
/**
* Processes the current value of text.
* The current value of text is only forwarded if it is no binding expression.
*/
protected __processText(): void;
/**
* Sets the value of the member variable IgnoreEscapeSequences.
* @param valueNew The new value for IgnoreEscapeSequences
*/
setIgnoreEscapeSequences(valueNew: boolean | null | undefined): void;
/**
* Returns the current value of IgnoreEscapeSequences.
* @returns The current value of IgnoreEscapeSequences.
*/
getIgnoreEscapeSequences(): boolean | undefined;
/**
* Sets the textHorizontalAlignment value and calls the associated process function (processTextHorizontalAlignment).
* @param valueNew The new value for textHorizontalAlignment.
*/
setTextHorizontalAlignment(valueNew: TcHmi.HorizontalAlignment | null): void;
/**
* Returns the current value of horizontalTextAligment.
*/
getTextHorizontalAlignment(): TcHmi.HorizontalAlignment | null | undefined;
/**
* Processes the current textHorizontalAlignment attribute value.
*/
protected __processTextHorizontalAlignment(): void;
/**
* Sets the textVerticalAlignment value and calls the associated process function (processTextVerticalAlignment).
* @param valueNew The new value for textVerticalAlignment.
*/
setTextVerticalAlignment(valueNew: TcHmi.VerticalAlignment | null): void;
/**
* Returns the current value of textVerticalAlignment.
*/
getTextVerticalAlignment(): TcHmi.VerticalAlignment | null | undefined;
/**
* Processes the current textVerticalAlignment attribute value.
*/
protected __processTextVerticalAlignment(): void;
/**
* Sets the font size and calls the associated process function (processTextFontSize).
* @param valueNew The new value for textFontSize.
*/
setTextFontSize(valueNew: number | null): void;
/**
* Returns the current value of textFontSize.
*/
getTextFontSize(): number | undefined;
/**
* Processes the current textFontSize attribute value.
*/
protected __processTextFontSize(): void;
/**
* Sets the font size and calls the associated process function (processTextFontSizeUnit).
* @param valueNew The new value for textFontSizeUnit.
*/
setTextFontSizeUnit(valueNew: TcHmi.FontSizeUnit | null): void;
/**
* Returns the current value of textFontSizeUnit.
*/
getTextFontSizeUnit(): TcHmi.FontSizeUnit | undefined;
/**
* Processes the current textFontSizeUnit attribute value.
*/
protected __processTextFontSizeUnit(): void;
/**
* Sets the font family and calls the associated process function (processTextFontFamily).
* @param valueNew The new value for textFontFamily.
*/
setTextFontFamily(valueNew: TcHmi.FontFamily | null): void;
/**
* Returns the current value of textFontFamily.
*/
getTextFontFamily(): string | null | undefined;
/**
* Processes the current textFontFamily attribute value.
*/
protected __processTextFontFamily(): void;
/**
* Sets the font style and calls the associated process function (processTextFontStyle).
* @param valueNew The new value for textFontStyle.
*/
setTextFontStyle(valueNew: TcHmi.FontStyle | null): void;
/**
* Returns the current value of textFontStyle.
*/
getTextFontStyle(): TcHmi.FontStyle | undefined;
/**
* Processes the current textFontStyle attribute value.
*/
protected __processTextFontStyle(): void;
/**
* Sets the font weight and calls the associated process function (processTextFontWeight).
* @param valueNew The new value for textFontWeight.
*/
setTextFontWeight(valueNew: TcHmi.FontWeight | null): void;
/**
* Returns the current value of textFontWeight.
*/
getTextFontWeight(): TcHmi.FontWeight | undefined;
/**
* Processes the current textFontWeight attribute value.
*/
protected __processTextFontWeight(): void;
/**
* Sets the contentPadding value and calls the associated process function (processContentPadding) after it.
* @param valueNew The new value for the contentPadding attribute as object.
*/
setContentPadding(valueNew: TcHmi.FourSidedCss | null): void;
/**
* The watch callback for the contentPadding object resolver.
*/
protected __onResolverForContentPaddingWatchCallback(data: TcHmi.Symbol.ObjectResolver.IWatchResultObject<TcHmi.FourSidedCss>): void;
/**
* Returns the current contentPadding value.
* @returns The current value of the contentPadding member variable as json in string format.
*/
getContentPadding(): TcHmi.FourSidedCss | null | undefined;
/**
* Processes the current contentPadding attribute.
*/
protected __processContentPadding(): void;
/**
* Sets the text color and calls the associated process function (processTextColor).
* @param valueNew The new value for textFColor.
*/
setTextColor(valueNew: TcHmi.SolidColor | null): void;
/**
* The watch callback for the textColor object resolver.
*/
protected __onResolverForTextColorWatchCallback(data: TcHmi.Symbol.ObjectResolver.IWatchResultObject<TcHmi.SolidColor>): void;
/**
* Returns the current value of textColor.
* @returns The current value of textColor.
*/
getTextColor(): TcHmi.SolidColor | null | undefined;
/**
* Processes the current textColor attribute value.
*/
protected __processTextColor(): void;
/**
* Sets the wordWrap value and calls the associated process function (processWordWrap).
* @param valueNew The new value for wordWrap.
*/
setWordWrap(valueNew: boolean | null): void;
/**
* Returns the current value of wordWrap.
* @returns The current value of wordWrap.
*/
getWordWrap(): boolean | undefined;
/**
* Processes the current wordWrap attribute value.
*/
protected __processWordWrap(): void;
/**
* On scroll event callback.
*/
protected __onScroll(): void;
/**
* Sets the horizontal scroll attribute and calls the associated process function (processHorizontalScroll).
* @param valueNew The new value for horizontalScroll.
*/
setHorizontalScroll(valueNew: ScrollMode | keyof typeof ScrollMode | null): void;
/**
* Returns the current value of horizontalScroll.
* @returns The current value of horizontalScroll.
*/
getHorizontalScroll(): "Auto" | "Never" | "Always" | undefined;
/**
* Processes the current horizontalScroll attribute value.
*/
protected __processHorizontalScroll(): void;
/**
* Sets the vertical scroll attribute and calls the associated process function (processVerticalScroll).
* @param valueNew The new value for verticalScroll.
*/
setVerticalScroll(valueNew: ScrollMode | keyof typeof ScrollMode | null): void;
/**
* Returns the current value of verticalScroll.
* @returns The current value of verticalScroll.
*/
getVerticalScroll(): "Auto" | "Never" | "Always" | undefined;
/**
* Processes the current verticalScroll attribute value.
*/
protected __processVerticalScroll(): void;
/**
* Check if the scroll evnent is needed and add/remove it.
*/
protected __checkScrollEvent(): void;
/**
* Sets the horiizontal scroll position attribute and calls the associated process function (processHorizontalScrollPosition).
* @param valueNew The new value for horizontalScrollPosition.
*/
setHorizontalScrollPosition(valueNew: number | null): void;
/**
* Return the current horizontal scroll position.
*/
getHorizontalScrollPosition(): number | null | undefined;
protected __processHorizontalScrollPosition(): void;
/**
* Sets the vertical scroll position attribute and calls the associated process function (processVerticalScrollPosition).
* @param valueNew The new value for verticalScrollPosition.
*/
setVerticalScrollPosition(valueNew: number | null): void;
/**
* Return the current vertical scroll position.
*/
getVerticalScrollPosition(): number | null | undefined;
protected __processVerticalScrollPosition(): void;
static ScrollMode: typeof ScrollMode;
}
export interface IControlSpecificData extends TcHmi.Controls.System.TcHmiControl.IControlSpecificData {
'Beckhoff.TcHmiTextblock.triggerRebuildHeight': boolean;
'Beckhoff.TcHmiTextblock.triggerRebuildWidth': boolean;
}
export { TcHmiTextblock as Control };
declare const _TcHmiTextblock: typeof TcHmiTextblock;
type tTcHmiTextblock = TcHmiTextblock;
type tScrollMode = ScrollMode;
type tIControlSpecificData = IControlSpecificData;
declare global {
namespace TcHmi.Controls.Beckhoff {
const TcHmiTextblock: typeof _TcHmiTextblock;
type TcHmiTextblock = tTcHmiTextblock;
namespace TcHmiTextblock {
type ScrollMode = tScrollMode;
type IControlSpecificData = tIControlSpecificData;
}
}
}

View File

@@ -0,0 +1,5 @@
<div class="TcHmi_Controls_Beckhoff_TcHmiTextblock-template tchmi-textblock-template tchmi-box">
<div
class="TcHmi_Controls_Beckhoff_TcHmiTextblock-template-text-container tchmi-textblock-template-text-container"
></div>
</div>

View File

@@ -0,0 +1,8 @@
/** Styles for the theme: Base-Dark */
/* Style for the main element */
.TcHmi_Controls_Beckhoff_TcHmiTextblock,
.tchmi-textblock {
--tchmi-color: var(--tchmi-foreground-color-1);
color: var(--tchmi-color);
}

View File

@@ -0,0 +1,8 @@
/** Styles for the theme: Base */
/* Style for the main element */
.TcHmi_Controls_Beckhoff_TcHmiTextblock,
.tchmi-textblock {
--tchmi-color: var(--tchmi-foreground-color-4);
color: var(--tchmi-color);
}