Lightroom SDK: simple_list() doesn't obey "size" or "font"

  • 1
  • Problem
  • Updated 4 years ago
  • Acknowledged
viewFactory:simple_list() doesn't let you change the font with the "size" or "font" attributes, contrary to the documentation. For example:


local LrDialogs = import 'LrDialogs'
local LrView = import 'LrView'
local f = LrView.osFactory()
local font = "<system/small>"
LrDialogs.presentModalDialog {title = "Test",
contents = f:column {
f:static_text {title = "Hello world", font = font},
f:simple_list {font = font,
items = {{title = "Hello", value = 1}, {title = "Hello", value = 2},
{title = "Hello", value = 3}}}}}

--------------------------------------------------

local LrDialogs = import 'LrDialogs'
local LrView = import 'LrView'
local f = LrView.osFactory()
local size = "small"
LrDialogs.presentModalDialog {title = "Test",
contents = f:column {
f:static_text {title = "Hello world", size = size},
f:simple_list {size = size,
items = {{title = "Hello", value = 1}, {title = "Hello", value = 2},
{title = "Hello", value = 3}}}}}
Photo of John R. Ellis

John R. Ellis, Champion

  • 3895 Posts
  • 1035 Reply Likes

Posted 4 years ago

  • 1
Photo of Paul Kleczka

Paul Kleczka, Employee

  • 44 Posts
  • 5 Reply Likes
"simple_list" does not support the font properties. The docs will explicitly state this in the next SDK release.
Photo of John R. Ellis

John R. Ellis, Champion

  • 3894 Posts
  • 1035 Reply Likes
Thanks. Perhaps you could convert this topic into an "idea", then. simple_list() is the only control that doesn't obey those two attributes.