Skip to main content
Participant
May 29, 2019
Question

Is it possible to add custom sections to the LrDialogs.presentModalDialog?

  • May 29, 2019
  • 1 reply
  • 342 views

Hi guys,

As far as I see, we can just add custom sections to the Export or Publishing Manager dialog using sectionsForTopOfDialog and sectionsForBottomOfDialog.

I just wonder do we have a chance to add sections into the LrDialogs.presentModalDialog.

Thanks in advance.

This topic has been closed for replies.

1 reply

johnrellis
Legend
May 29, 2019

I'm not sure what you mean by adding sections to LrDialogs.presentModalDialog?  You can add whatever controls you want to the modal dialog. The only control that is always present is the OK button (but you can change the label).

Here's an example from one of my plugins:

My plugin added everything except the Cancel and Apply buttons.

Micheal83Author
Participant
May 29, 2019

Hi johnrellis

Thanks for your answer and sorry for my missing information.

I meant the below controls as "sections" ("Status" and "Plugin Author Tools" expandable and collapsible sections )

We can add these into the  Export or Publishing Manager dialog but they are not a LrView control. That's why I was thinking we don't have a chance to create it. Is that correct?

johnrellis
Legend
May 29, 2019

Ah, got it. See page 34 of the Lightroom Classic CC Programmers Guide: