TABS



  • How do you implement some tabs (like to switch from one option to the other)

    thanks in advance.



  • @jay Use panels to group your controls, then when you want to switch "tabs" just hide one panel and show another.



  • @d-healey When using tabs and refresh the template if goes to the 3rd option tab instead of the 1st.



  • @jay You'll have to post a HISE snippet or some code for me to be able to help you.



  • @jay You can see the BasicSynth HISE tutorial. There are several tabs in GUI.

    https://github.com/christophhart/hise_tutorial

    Cheers 😉



  • @d-healey

    Content.makeFrontInterface(1160, 670);

    include("VuMeter.js");

    include("UserPresetWidgets.js");

    // Set the position on the VuMeter by x, y
    const var v = VuMeter.createVuMeter("VuMeter", 1001, 442);

    // Get a reference to the master container
    VuMeter.setModule(v, Synth.getChildSynth("TiNES EP+"));

    // [/JSON Label] for Presets

    const var UpButton = UserPresetWidgets.createPresetButton("UpButton", 662, 88, true);
    const var DownButton = UserPresetWidgets.createPresetButton("DownButton", 461, 88, false);

    const var PresetDisplay = UserPresetWidgets.createPresetDisplay("PresetDisplay", 490, 85);

    //! =============================================================== Page Handling

    // Get these lines by selecting all controls and choose "Create Script Definition for selection"
    const var SynthPageButton = Content.getComponent("SynthPageButton");
    const var SettingsButton = Content.getComponent("SettingsButton");
    const var FXPageButton = Content.getComponent("FXPageButton");

    const var SynthPage = Content.getComponent("SynthPage");
    const var FXPage = Content.getComponent("FXPage");
    const var SettingsPage = Content.getComponent("SettingsPage");

    // Put them all in an array for better iterating.
    const var pages = [FXPage, SynthPage, SettingsPage];

    /** This function iterates the array, hides all pages and only shows the given page.
    *

    • pageToShow is a reference to the control. Check the onControl callback to see what's going on.
      */
      inline function handlePages(pageToShow)
      {
      for(p in pages)
      p.set("visible", pageToShow == p);
      }

    // This page will be shown as default
    // If you're working on another page, just pass this is temporarily
    // so it doesn't switch back when compiling.
    handlePages(SynthPage);



  • Boop, i'm trying to make tabs too for my plugin
    -PlayTab
    -FxTab
    -TheoryTab
    -PressetsTab

    i have followed used the onInit script from the Basic synth (same as the post on top of me)
    also the onControl from basic synth

    I'm having an error when compiling: "Unkown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tuzus0NF7dAsPvw21MWc2VC5PcecMcid5ZJxA8U.19c6hM4w8XInGZaS1EgWKuasCwpXIKemc+e+9Z6ongkLC5BLU7hBo9tcLV406IxPWDIJ.5ZUhDy3dQR7TPHISVcBB+C7dD4QNEFO1B9vcbfvK8.2+1Ac+6bBLBJXfHnNqIcNX4Zy4HZ+g6Urd7NhN2jnmKoXM8MsTrN8NClNpyf2Vrgt5Plo8NJp1N4UMqH6gBi3ZmUPXGS7e2.rlrOm627mp8wNOTa0U+SaDTmYwZe7.XytA4zapXnqJYNQRgSus+slPUkennGQgtZ7Xm4TYtW7J1b+w8d7K3L20dl5yVCdtyUi4NQQEciYGf+YhN1.Hht2MG79Nhe70Kj0wm1cbRvw4KlikBVnOzI98XentdetMqANt9u2v8qJjy.v6KumqtYdu4au19u13SCVAxWsAHUweAlydhd5.yL84kYwg5CHEnycmXhv10X0RheSaSQ1HH647t2xYMwZsoOPpXlSmEb2gGoyBtcxykmiwkcqcOg85967b0fu8r.9WBTce93Ib2uo7b4.Wio7crm9IMfEjX1vGB5wJQZUXqZ66sMUJr9ufCdUzapBkQamx1NFhduVcM2ox7hzs1hHUg4pBUuLjcxtSEPaN+NKn5z9EccJUNeKzebey.SIlhhjE7.MmPBcTeRmq0IivnupJP16U60EH60EH6rTfLx+nW75Jh85Jh4WQrhWxUD6adwqqH14YEwV8JdKxivyyqqH10qW53qyl96cYSeYfk8kjM0+bm+oqffqyPaAvRMmOXp8IOi7tI1Ib29PL7OWVlXF7y.9a7PTL0PrZpgnTpgXsTCQ4TCQkTCQ0Q.AIgoGNvVuOyoHzPisYJRY1l6ag4+GLtIBnB
    


  • You have a more interesting error Clip Clop Keys:! Component with name TheoryPage wasn't found.

    Seems something is corrupted in your UI data.



  • You also have a typo PressetsPage



  • @d-healey Aw, didn't seen the typo, well i have no more errors, thanks you!


Log in to reply
 

10
Online

1.2k
Users

3.8k
Topics

33.6k
Posts