Table
This widget allows you to use a table in your Frontend design. You can define the content of the table by writing your own texts or by connecting cells of the table to parameters of your MERLIC Vision App to display its values. In addition you can also adjust the style of the table according to your requirements.
Style
X, Y:
Adjust the position of the widget by typing the desired coordinate values of the upper left corner into the input field.
Z-Order:
Adjust the z-order of the widget by typing the desired value into the input field. This defines which widget is displayed on top if several widgets are positioned at the same place, for example, if widget "A" has "Z-Order" "0" and widget "B" has "Z-Order" "1", widget "B" will be displayed on top of widget "A".
Number of Rows:
Adjust the number of rows of the table by typing the desired value directly into the input field.
Number of Columns:
Adjust the number of columns of the table by typing the desired value directly into the input field.
Hide Top-Left Cell:
Activate or deactivate the visualization of the top-left cell of the table. By default the property is set to "false", i.e., the top-left cell is displayed. To hide the cell in the table, select "true" in the drop-down menu.
Width:
Adjust the width of the table. The width is defined in pixels and set to 360 by default. To change the value, type the new width into the input field.It must be at least 60 and not be bigger than 2147483647.
Height:
Adjust the height of the table. The height is defined in pixels and set to 100 by default. To change the value, type the new height into the input field. It must be at least 20 and not be bigger than 2147483647.
Cell Width:
Adjust the width of the cells in the table. The width is defined in pixels and set to 177 by default. To change the value, type the new width into the input field. It must be at least 1.
Cell Height:
Adjust the height of the cells in the table. The height is defined in pixels and set to 47 by default. To change the value, type the new height into the input field. It must be at least 1.
Cell Frame Width:
Adjust the width of the cell frames. The width is defined in pixels and set to 1 by default. To change the value, type the new width into the input field. It must be at least 0.
Cell Spacing:
Adjust the spacing between the cells. It is defined in pixels and set to 2 by default. To change the value, type the new cell spacing into the input field. It must be at least 0.
Background Color:
Adjust the background color of the table. To change the color, click into the color field and select a new color in the color selection dialog or enter the color code manually.
Cell Frame Color:
Adjust the color of the cell frames. To change the color, click into the color field and select a new color in the color selection dialog or enter the color code manually.
Arrangement:
Choose between a vertical and horizontal arrangement of the table cells to display parameters with multiple values. By default the cells are arranged horizontally. To change the alignment to a vertical arrangement, select "vertical" from the drop-down menu. For more information about displaying parameter data see the section Data.
Sliders:
Activate or deactivate the use of sliders. By default no sliders are used in the table. If you want to use sliders in the table, select 'true' in the drop-down menu. This is useful if you want a fixed cell size and table size. You can adjust the size of the table without adjusting the cell size. The sliders enable you to scroll to all cells of the table. If the sliders are not used, the size of the cells are adjusted automatically when a new table size is defined. The size of the table is also adjusted automatically when a new cell width or cell height is defined.
Subcontrols
The following properties listed in the sections below enable you to adjust properties of individual cells in the table. To adjust the settings for a specific cell, select the respective cell in the widget and make the changes at the following properties. You may also adjust multiple cells simultaneously. For this simply select all cells you want to adjust in the widget using the Ctrl key. The changes are applied to all cells that are currently marked in the table widget within the workspace.
Style
Background Color:
Adjust the background color of the selected cells. To change the color, click into the color field and select a new color in the color selection dialog or enter the color code manually.
Font Color:
Adjust the color of the text in the selected cells. To change the color, click into the color field and select a new color in the color selection dialog or enter the color code manually.
Font Size:
Adjust the size of the text in the selected cells. Adjust the size of the displayed font. Select the font size from the combo box or type the value directly into the input field.
Font Family:
Select the font family of the text in the selected cells in the drop-down menu of this property.
Font Weight:
Adjust the font weight of the text in the selected cells from the drop-down menu. It is set to 50 by default.
Horizontal Text Alignment:
Adjust the horizontal alignment of the text or value that is displayed in the selected cells. It is set to "left" by default. You can also select "center" and "right" for the alignment at the drop-down menu.
Text:
Define the text to be displayed in the selected cells by typing the text directly into the text field. If a cell contains text and is also connected to valid tool parameters via the Data property, only the data will be displayed. Use this to label individual cells for internal use or to display a message in case no valid data can be displayed.
Data
Use the "Data" property to display the tool parameter from a tool in your MERLIC Vision App. Data will be displayed starting in the cell you selected and continuing to the next cell on the right or below, depending on the setting of the property "Arrangement". For optimal performance ensure to add a "Number of Columns" or "Number of Rows" large enough to display all desired data but not any larger. Numerical data will be displayed with two decimal places. If "Cell Width" is not big enough to display the value in the chosen Font Size the data will be represented by three dots.
Connected Tool:
Connect to a tool from your MERLIC Vision App by selecting the desired tool from the drop-down menu. You can only select tools that are used in your MERLIC Vision App. At the property "Connected Parameter" you may then select the tool parameter or result whose value you want to display in the selected cell.
Connected Parameter:
Select the tool parameter or result of the connected tool whose value you want to display from the drop-down menu. The list shows only the tool parameters and results of the tool that is selected in the property "Connected Tool". Therefore, you have to make sure that the widget is connected to a tool before selecting a parameter.
Application Example
This widget is used in the following MERLIC Vision App examples:
- check_correct_filling_on_3d_height_images.mvapp
- evaluate_ecc_200_print_quality.mvapp
- find_and_count_screw_types.mvapp
- read_text_in_3d_height_image.mvapp