mycnc:mycnc_screen_configuration
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
mycnc:mycnc_screen_configuration [2018/04/24 23:36] – skirillov | mycnc:mycnc_screen_configuration [2018/10/01 10:46] – skirillov | ||
---|---|---|---|
Line 14: | Line 14: | ||
=== Myitems Widget === | === Myitems Widget === | ||
=== Button === | === Button === | ||
+ | |||
+ | A PushButton screen item can be used on myCNC screen. A typical button definition is shown below | ||
+ | |||
+ | <code XML > | ||
+ | < | ||
+ | | ||
+ | | ||
+ | </ | ||
+ | |||
+ | |||
+ | Attributes description | ||
+ | * **where** - parent widget name the button placed to | ||
+ | * **position** - X and Y position of the button inside a parent widget | ||
+ | * **width** - button width in pixels | ||
+ | * **height** - button height in pixels | ||
+ | * **type** - type definitionof the item (should be type=" | ||
+ | * **image** - a image (icon) file in SVG format for the button | ||
+ | * **action** - action for the button (which procedure will be executed if event triggered) | ||
+ | * **event** - event type the button is sensitive to. Event can be | ||
+ | * **pressed** - action is executed if the button pressed | ||
+ | * **released** - action is executed if the button released | ||
+ | * **both** - there are separate actions (";" | ||
+ | * **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. This SVG file will be used as a bottom layer for the button image. | ||
+ | |||
+ | |||
=== XButton === | === XButton === | ||
+ | |||
+ | XButton is a Push Button with built in Light indicator. Light is mostly used to show a current state of CNC controller input, output pin, CNC global variable register value etc. | ||
+ | |||
+ | A XButton XML definition example is shown below | ||
+ | <code XML> | ||
+ | <gitem where=" | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | </ | ||
+ | |||
+ | |||
+ | Attributes description | ||
+ | * **where** - parent widget name the button placed to | ||
+ | * **position** - X and Y position of the button inside a parent widget | ||
+ | * **width** - button width in pixels | ||
+ | * **height** - button height in pixels | ||
+ | * **type** - type definitionof the item (should be type=" | ||
+ | * **image** - a image (icon) file in SVG format for the button | ||
+ | * **action** - action for the button (which procedure will be executed if event triggered) | ||
+ | * **event** - event type the button is sensitive to. Event can be | ||
+ | * **pressed** - action is executed if the button pressed | ||
+ | * **released** - action is executed if the button released | ||
+ | * **both** - there are separate actions (";" | ||
+ | * **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. This SVG file will be used as a bottom layer for the button image. | ||
+ | * **xattr** - defines light positionm size and attributes - semicolon separated | ||
+ | * X,Y position of the led/light inside the button | ||
+ | * width and height of the led | ||
+ | * type of light (actually this field is always " | ||
+ | * shape of the standard led light. A standard shape can be " | ||
+ | * **address** - defines CNC controller hardware the light attached to | ||
+ | * " | ||
+ | * " | ||
+ | * " | ||
+ | |||
+ | |||
=== GLView === | === GLView === | ||
=== NCView === | === NCView === |
mycnc/mycnc_screen_configuration.txt · Last modified: 2023/07/25 11:26 by ivan