HISE Logo Forum
    • Categories
    • Register
    • Login

    How to draw the rename secondary confirmation window in PresetBrowserDialog?

    Scheduled Pinned Locked Moved General Questions
    3 Posts 2 Posters 408 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.
    • CatABCC
      CatABC
      last edited by

      How to draw the rename secondary confirmation window in PresetBrowserDialog?

      	     if	(obj.text == "Are you sure you want to replace the file ?")
      		  	{
      				obj.text = "replace the file";
      			 	g.fillAll(0x88000000);	    	   	    
      			    if(obj.over)
      			      g.fillAll(0x22000000);	    	           
      			    if(obj.down)
      			      g.fillAll(0x22000000);	    	          
      			   g.setFont("myhtw17", 25.0);	    	           
      			   g.setColour(Colours.white);
      			   g.drawAlignedText(obj.text, obj.area, "centred");	
      		   }
      

      This hasn't changed anything

      //I am a new student at HISE._
      //Windows11 & MacOS Ventura 13.6.7_

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

        @CatABC said in How to draw the rename secondary confirmation window in PresetBrowserDialog?:

        "Are you sure you want to replace the file ?"

        Try if (obj.text.contains("Are you sure you want to replace the file"))

        Which LAF function are you using?

        Free HISE Bootcamp Full Course for beginners.
        YouTube Channel - Public HISE tutorials
        My Patreon - HISE tutorials

        CatABCC 1 Reply Last reply Reply Quote 0
        • CatABCC
          CatABC @d.healey
          last edited by

          @d-healey I am using Content.createLocalLookAndFeel();
          Tried your method and it worked, thank you very much😘 😘 😘

          //I am a new student at HISE._
          //Windows11 & MacOS Ventura 13.6.7_

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

          19

          Online

          2.0k

          Users

          12.6k

          Topics

          109.7k

          Posts