How to draw the rename secondary confirmation window in PresetBrowserDialog?
-
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
-
@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?
-
@d-healey I am using Content.createLocalLookAndFeel();
Tried your method and it worked, thank you very much