User Tools

Site Tools


mycnc:mycnc_screen_configuration

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Next revisionBoth sides next revision
mycnc:mycnc_screen_configuration [2020/02/06 10:17] ivanmycnc:mycnc_screen_configuration [2020/02/24 10:35] ivan
Line 26: Line 26:
  
 ==== MyCNC GUI elements ==== ==== MyCNC GUI elements ====
 +
 +^ Element ^ Use ^
 +| **Label** | Unchanging text element |
 +| **Display** | Changing value | 
 +| **BDisplay** | Changing value - can be clicked by the user to enter a new value |
 +| **KDisplay** | Changing value - can be clicked by the user to enter a new value |
 +| **RadioDisplay** | Changing value - preset from a list of choices |
 +| **Radio2Display** | Changing value - preset from a list of choices (update of RadioDisplay) |
 +| **KSpinBox** | Changing value - changed by pressing the arrows to increase/decrease | 
 +| **KSpinBox2** | Changing value - changed by pressing the arrows to increase/decrease, can be clicked to enter new value | 
 +| **LED** | LED display to show some status (can be on/off) | 
 +| **SVG Display** | Set of images to change depending on input |
 +| **MyItems** | Container element which can contain other elements | 
 +| **Border** | Frame element which can contain other elements |
 +| **Button** | Button | 
 +| **XButton** | Button with an LED indicator |
 +| **GLView** | 3D Visualization | 
 +| **NCView** | 2D Visualization |
 +| **Logview** | Program log window |
 +| **Statusbar** | Progress and status bar |
 +| **NCList** | Program G-code commands list |
 +| **Myscope** | Time graphs |
 +| **CentringView** | Centering widget (built-in) |
 +| **Rotation2View** | Full program rotation widget (built-in) | 
 +
 +The following table outlines the parameters that define the on-screen elements within myCNC: 
 +
 +^ Parameter ^ Example ^ Use ^
 +| **type** | type="label" | Element type | 
 +| **skin** | skin="gantry/gantry" | Background for the element | 
 +| **where** | where="oil-change" | Which container element is the current element in |
 +| **position** | position="0;0" | XY position (in pixels) within the container element |
 +| **width** | width="490" | Width, in pixels |
 +| **height** | height="200" | Height, in pixels | 
 +| **labelWidth** | labelWidth="490" | Label width, in pixels (if the element is, or contains, a label | 
 +| **displayWidth** | displayWidth="90" | Width of the display element, in pixels |
 +| **labelFgColor** | labelFgColor="##f-title" | Foreground colour for the label | 
 +| **labelBgColor** | labelBgColor="##b-title" | Background colour for the label | 
 +| **labelFontSize** | labelFontSize="18" | Label font size | 
 +| **labelFontStyle** | labelFontStyle="normal" | Label font style (normal, bold, etc) | 
 +| **message** | <message>Mileage/Oil Change</message> | Static text being displayed | 
 +| **name** | name="display-cnc-gvariable-6090" | Name of the variable or input being displayed | 
 +| **bgColor** | bgColor="##b-display" | Background colour of the element (other than label) |
 +| **fgColor** | fgColor="##f-display" | Foreground colour of the element (other than label) |
 +| **fontStyle** | fontStyle="bold" | Font style (normal, bold, etc) |
 +| **format** | format="%6.3f" | Format of presentation for a value (number of digits, number of decimal places, float/integer), or format of the list for a RadioDisplay type element | 
 +| **displayAlignment** | displayAlignment="right;bottom" | Alignment of the element (right, left, center, bottom, etc) | 
 +| **fontFamily** | fontFamily="Open Sans" | Font used for the element | 
 +| **deviation** | deviation="0.0005" | Minimum necessary change in the value to display a new value for the user | 
 +| **action** | action="direct-run:G90 G92 X %v" | Action that will be executed after the element has been clicked | 
 +| **orientation** | orientation="horizontal" | Orientation of the element (vertical/horizontal) | 
  
 ++++Label| ++++Label|
Line 435: Line 486:
     * **both** - there are separate actions (";" semicolon separated) for **pressed** and **released** events     * **both** - there are separate actions (";" semicolon separated) for **pressed** and **released** events
   * **skinbase** - besides the Image file for each button there is a common **skin** SVG file for all the buttons. For selected buttons skin file can be redefined with **skinbase** attribute which specifies the border/mask which the button will be used with. This SVG file will be used as a bottom layer for the button image.   * **skinbase** - besides the Image file for each button there is a common **skin** SVG file for all the buttons. For selected buttons skin file can be redefined with **skinbase** attribute which specifies the border/mask which the button will be used with. This SVG file will be used as a bottom layer for the button image.
 +    * A skinbase set equal to "transparent" will remove the border around a button or an on-screen element.
 ++++ ++++
  
Line 448: Line 500:
 <gitem where="x-mill"  <gitem where="x-mill" 
  xattr="3;3;16;16;led;red;round"   xattr="3;3;16;16;led;red;round" 
- address="outputs" number="#OUTPUT_SPINDLE".+ address="outputs" number="#OUTPUT_SPINDLE"
  position="720;10" width="70" height="70"   position="720;10" width="70" height="70" 
  image="M/button-m03" action="plc-run:M03/#5524"   image="M/button-m03" action="plc-run:M03/#5524" 
Line 934: Line 986:
 | item: | See [[mycnc:item_list|Common Item List]] for more information. | | item: | See [[mycnc:item_list|Common Item List]] for more information. |
  
-| fake | Empty Handler Action. Nothing happens when you run this action |+| fake | Empty Handler Action. Nothing happens when you run this action|
  
 | myitem-value-inc, myitem-value-dec | Increement/Decrement XML item value by name | | myitem-value-inc, myitem-value-dec | Increement/Decrement XML item value by name |
mycnc/mycnc_screen_configuration.txt · Last modified: 2023/07/25 11:26 by ivan

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki