Own GUI buttons with menu functions

Results 1 to 15 of 15

Thread: Own GUI buttons with menu functions

  1. #1
    Member tantemay's Avatar
    Join Date
    Nov 2015
    Location
    Warendorf
    Posts
    257
    Downloads
    0
    Uploads
    0

    Default Own GUI buttons with menu functions

    Hello.

    I have a touchscreen and would like to add my own buttons to the GUI, with which menu functions such as "measure / corner" can be activated.

    Is that possible, and if so how?

    Similar Threads:


  2. #2
    Member ScorpionTDL's Avatar
    Join Date
    Aug 2020
    Posts
    131
    Downloads
    0
    Uploads
    0

    Default Re: Own GUI buttons with menu functions

    A Description can be found at
    https://planet-cnc.com/adding-user-t...-tng-software/

    Add the following to the txt for the toolbar you want to add the button to and you get a Inside Corner button
    Code:
    cmd: "Machine.Measure.Inside_Corner" "Inside"

    Klaus



  3. #3
    Member tantemay's Avatar
    Join Date
    Nov 2015
    Location
    Warendorf
    Posts
    257
    Downloads
    0
    Uploads
    0

    Default Re: Own GUI buttons with menu functions

    OK. That worked.
    Now I would like to make small drawings for the buttons in the SVG. What resolution is needed there?



  4. #4
    Member PlanetCNC's Avatar
    Join Date
    Mar 2017
    Location
    Slovenia
    Posts
    1295
    Downloads
    0
    Uploads
    0

    Default Re: Own GUI buttons with menu functions

    SVG is vector file. Resolution does not apply.



  5. #5
    Member tantemay's Avatar
    Join Date
    Nov 2015
    Location
    Warendorf
    Posts
    257
    Downloads
    0
    Uploads
    0

    Default Re: Own GUI buttons with menu functions

    Yes, I thought so too.
    But then QCAD does something wrong when exporting to SVG. The .svg from QCAD are very small as buttons.



  6. #6
    Member PlanetCNC's Avatar
    Join Date
    Mar 2017
    Location
    Slovenia
    Posts
    1295
    Downloads
    0
    Uploads
    0

    Default Re: Own GUI buttons with menu functions

    Send SVG to my email and I'll examine it.
    and include your profile zip file.



  7. #7
    Member theRat's Avatar
    Join Date
    Jun 2017
    Location
    Australia
    Posts
    143
    Downloads
    0
    Uploads
    0

    Default Re: Own GUI buttons with menu functions

    When using Inkscape I found that I had to set a custom document size of 50px by 50px for it to display properly in TNG. I found this by looking at the svg files provided and that was the page size used in those.



  8. #8
    Member tantemay's Avatar
    Join Date
    Nov 2015
    Location
    Warendorf
    Posts
    257
    Downloads
    0
    Uploads
    0

    Default Re: Own GUI buttons with menu functions

    Quote Originally Posted by PlanetCNC View Post
    Send SVG to my email and I'll examine it.
    and include your profile zip file.
    Thanks.
    I also tried inkscape. The buttons are not centered there.
    I also downloaded some from the Internet, they are too small or not centered, or both.

    Attached Files Attached Files
    Last edited by tantemay; 10-20-2020 at 05:31 AM.


  9. #9
    Member PlanetCNC's Avatar
    Join Date
    Mar 2017
    Location
    Slovenia
    Posts
    1295
    Downloads
    0
    Uploads
    0

    Default Re: Own GUI buttons with menu functions

    Please export and send me your profile zip so that I can test with your configuration.



  10. #10
    Member tantemay's Avatar
    Join Date
    Nov 2015
    Location
    Warendorf
    Posts
    257
    Downloads
    0
    Uploads
    0

    Default Re: Own GUI buttons with menu functions

    Thank you for the effort. I've got it now with QCAD.
    I had to enlarge the objects exorbitantly.
    I can live with the current situation.



  11. #11
    Member tantemay's Avatar
    Join Date
    Nov 2015
    Location
    Warendorf
    Posts
    257
    Downloads
    0
    Uploads
    0

    Default Re: Own GUI buttons with menu functions

    Hello

    Code:
    -->  work fine:  cmd: "Program.Edit_..." "Edit" imagechange="true" stroke=1.1
    
    --> do not work:  cmd: "Machine.Start_Options.Start_From_Selected_Line" "SFSL" imagechange="true" stroke=1.1
    What am I doing wrong?



  12. #12
    Member PlanetCNC's Avatar
    Join Date
    Mar 2017
    Location
    Slovenia
    Posts
    1295
    Downloads
    0
    Uploads
    0

    Default Re: Own GUI buttons with menu functions

    Nothing, it is my error. I used incorrect name:
    cmd: "Machine.Advanced.Start_From_Selected_Line"
    but I fixed it and in next version it will be:
    cmd: "Machine.Start_Option.Start_From_Selected_Line "



  13. #13
    Member tantemay's Avatar
    Join Date
    Nov 2015
    Location
    Warendorf
    Posts
    257
    Downloads
    0
    Uploads
    0

    Default

    Quote Originally Posted by PlanetCNC View Post
    Nothing, it is my error. I used incorrect name:
    cmd: "Machine.Advanced.Start_From_Selected_Line"
    but I fixed it and in next version it will be:
    cmd: "Machine.Start_Option.Start_From_Selected_Line "
    Yes, I have now found out. I looked in the language-text files.



  14. #14
    Member tantemay's Avatar
    Join Date
    Nov 2015
    Location
    Warendorf
    Posts
    257
    Downloads
    0
    Uploads
    0

    Default Re: Own GUI buttons with menu functions

    How can I make a separator line.



  15. #15
    Member PlanetCNC's Avatar
    Join Date
    Mar 2017
    Location
    Slovenia
    Posts
    1295
    Downloads
    0
    Uploads
    0

    Default Re: Own GUI buttons with menu functions

    ---
    +++
    or
    ***

    test which one works best for you



Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


About CNCzone.com

    We are the largest and most active discussion forum for manufacturing industry. The site is 100% free to join and use, so join today!

Follow us on


Our Brands

Own GUI buttons with menu functions

Own GUI buttons with menu functions