showYesNoWindow - Customise button text?
-
Can I customise the text of the buttons in a YesNo window?
Engine.showYesNoWindow("SELECT FOLDER", "SELECT", function(response)
Currently they display 'OK' and 'Cancel'... LAF maybe?
-
@DanH Pretty sure you can do it in LAF, there's an alert dialog button function or something similar.
-
@d-healey can’t see anything related to the buttons in the docs tho… I’m using the other laf functions for the alertWindow in my project already.
As a slight aside is there a way to centralise the text in an alert window? Currently all lines are fixed to the left. I see a ** makes the text bold. I should probably brush up on my markdown!
-
@DanH Autocomplete has more up to date info than the docs
Markdown doesn't have any text justification unfortunately. I asked about this a few weeks ago.
-
@d-healey Thanks. How can I use drawDialogue button for the alertWindow do you know? I don't want to change all of them, just for a specific window...
-
@DanH You'd have to filter by the text
if (text == "ok")
// change the text to something else... I'm just guessing here :) -
@d-healey that was my first idea but then it will change the other ‘ok’ buttons. All good I can work around it. Thanks!