Skip to main content
Participating Frequently
February 27, 2020
Answered

LR Plugin programming alligment of GUI objects question

  • February 27, 2020
  • 1 reply
  • 760 views

Hello

I have a question regarding the horizontal and vertical allignment of several GUI objects in the export dialog.
At the moment I have three rows but it looks ugly because the objects are shifted in each line because of the different text length at the beginning of each line.

 

I have tried tree colums and then tree rows in each column. But this does not work too. The allignment in horizontal direction is ok but the vertical alligment is broken because of the different hight of text, textbox and button.

In HTML I would use a table but this does not exist in LR LUA

 

Any ideas someone? Thnax for help

This topic has been closed for replies.
Correct answer john beardsworth

Set the three static boxes' width to LrView.share('column1').  The column1 can be any word that you want, and it forces all the items with that parameter to have the same width.  Another group of boxes might have "column2" or whatever.

1 reply

john beardsworth
Community Expert
john beardsworthCommunity ExpertCorrect answer
Community Expert
February 27, 2020

Set the three static boxes' width to LrView.share('column1').  The column1 can be any word that you want, and it forces all the items with that parameter to have the same width.  Another group of boxes might have "column2" or whatever.

Participating Frequently
February 28, 2020

Hello John

 

Thank you! LrView.share did the job.