Copy link to clipboard
Copied
So I have a modal dialogue where I would like to include a button to "Copy to Clipboard"
I think I have the coding, and I can change the label with otherVerb, but how do I add the function to the button?
[This post contains embedded images and formatting that don't appear in email. View the post in your Web browser to see the images and formatting.]
LrDialogs.presetModalDialog() will return "other" if the user clicks the third button (whose label is specified by "otherVerb"). So the code looks like:
local result = LrDialogs.presentModalDialog ()
if result == "other" then
...logic for Copy To Clipboard...
[Use the blue reply button under the first post to ensure replies sort properly.
...Copy link to clipboard
Copied
[This post contains embedded images and formatting that don't appear in email. View the post in your Web browser to see the images and formatting.]
LrDialogs.presetModalDialog() will return "other" if the user clicks the third button (whose label is specified by "otherVerb"). So the code looks like:
local result = LrDialogs.presentModalDialog ()
if result == "other" then
...logic for Copy To Clipboard...
[Use the blue reply button under the first post to ensure replies sort properly.]
Copy link to clipboard
Copied
OK, I read that but it just did not 'click'.
Pretty straight forward.