Skip to main content
27shutterclicks
Inspiring
September 29, 2022
Answered

SDK: Window size and fitting text for LrDialogs.message

  • September 29, 2022
  • 1 reply
  • 479 views

In my plugin, most of the output happens in a dialog box. For the main output, I have a simple custom view for presentFloatingDialog(), with one row and one edit_field,  but even that requires about 10 lines of code.

 

For other features, I just need to display one line of text and I do so with LrDialogs.message(). The problem is, the text doesn't fit the window. See screenshot below:

 

The API reference for  does not seem to have any parameters for LrDialogs.message or even LrDialogs.messageWithDoNotShow that could affect the size, and yet the window called with LrDialogs.messageWithDoNotShow looks bigger:

 

 

I am wondering if it is at all possible to get the look and size of the LrDialogs.messageWithDoNotShow window, but without the "Don't show again" checkbox?

 

Otherwise, am I missing anything, is there no way to adjust the width or make the text fit without breaking in a simple modal window, without buidling an entire custom view?

 

Thanks.

This topic has been closed for replies.
Correct answer johnrellis

[This post contains formatting and embedded images that don't appear in email. View the post in your Web browser.]

 

I don't know of any way to adjust the appearance of LrDialogs.message() -- it picks the window size and it wraps lines as necessary.  The Mac version is worse than the Windows version, being much narrower:

 

 

 

I think your only option is to use presentModalDialog().

 

1 reply

johnrellis
johnrellisCorrect answer
Genius
September 29, 2022

[This post contains formatting and embedded images that don't appear in email. View the post in your Web browser.]

 

I don't know of any way to adjust the appearance of LrDialogs.message() -- it picks the window size and it wraps lines as necessary.  The Mac version is worse than the Windows version, being much narrower:

 

 

 

I think your only option is to use presentModalDialog().

 

27shutterclicks
Inspiring
September 29, 2022

What I was afraid of, thanks.