HISE Logo Forum
    • Categories
    • Register
    • Login

    Preset Browser Dialog text input position

    Scheduled Pinned Locked Moved General Questions
    3 Posts 2 Posters 241 Views
    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.
    • alhugA
      alhug
      last edited by

      Hey guys, is there a way to change the position of the text input field in a preset browser pop up dialog? I know that I can use obj.labelArea to draw a rectangle in the place where it sits but how can I change its actual position?

      Also, am I assuming correctly that there is no way using LAF to have each of the three dialog popups (Add, Rename, Delete) be styled differently?

      Thanks :)

      "HISE is for software developers. If you're not one you must become one." - David Healy

      d.healeyD 1 Reply Last reply Reply Quote 0
      • d.healeyD
        d.healey @alhug
        last edited by

        @alhug I don't think you can change the text position but you can style them differently, use the "title" property of the obj to know which popup window is being displayed.

        Libre Wave - Freedom respecting instruments and effects
        My Patreon - HISE tutorials
        YouTube Channel - Public HISE tutorials

        alhugA 1 Reply Last reply Reply Quote 1
        • alhugA
          alhug @d.healey
          last edited by

          @d-healey works like a charm!

          laf.registerFunction("drawPresetBrowserDialog", function(g, obj)
          {
          	if (obj.title == "Delete User Preset")
          	{
          		//draw delete dialog
          	}
          	
          	else if (obj.title == "Rename User Preset")
          	{
          		//draw rename dialog  
          	}
          	
          	else if (obj.title == "Add new User Preset")
          	{
          		//draw add dialog
          	}
           
          });
          

          "HISE is for software developers. If you're not one you must become one." - David Healy

          1 Reply Last reply Reply Quote 0
          • First post
            Last post

          33

          Online

          1.7k

          Users

          11.8k

          Topics

          102.4k

          Posts