Navigation

    Duet3D Logo

    Duet3D

    • Register
    • Login
    • Search
    • Categories
    • Tags
    • Documentation
    • Order

    How to add custom tab

    PanelDue
    2
    5
    540
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • patakopecek
      patakopecek last edited by

      Hi, I would like to have the filament capability on the PanelDue, so I was wondering, how to add a tab to the menu (ofc in the code, was looking in the UserInterface.cpp but I am not sure about how to do it)

      1 Reply Last reply Reply Quote 0
      • dc42
        dc42 administrators last edited by

        Function CreateCommonFields creates the tabs along the bottom, and function ChangePage handles switching between tabs.

        Duet WiFi hardware designer and firmware engineer
        Please do not ask me for Duet support via PM or email, use the forum
        http://www.escher3d.com, https://miscsolutions.wordpress.com

        1 Reply Last reply Reply Quote 0
        • patakopecek
          patakopecek last edited by

          I got the tab to show up, but I am unable to create my own page, what should I do next?

          1 Reply Last reply Reply Quote 0
          • dc42
            dc42 administrators last edited by

            Function CreateMainPages contains this:

            // Create the pages
            CreateControlTabFields(colours);
            CreatePrintingTabFields(colours);
            CreateMessageTabFields(colours);
            CreateSetupTabFields(language, colours);
            

            You will need to add a call to your own function to create the 5th page.

            Duet WiFi hardware designer and firmware engineer
            Please do not ask me for Duet support via PM or email, use the forum
            http://www.escher3d.com, https://miscsolutions.wordpress.com

            1 Reply Last reply Reply Quote 0
            • patakopecek
              patakopecek last edited by

              I know, but where to add them?

              1 Reply Last reply Reply Quote 0
              • First post
                Last post
              Unless otherwise noted, all forum content is licensed under CC-BY-SA