Bug: combo_box doesn't support min, max, precision, or validate


combo boxes don't support min, max, precision, or validate properties, contrary documentation states in "lightroom sdk 3.0\api reference\modules\lrview edit view properties.html".

 

here's test program shows problems:

 

local lrdialogs = import 'lrdialogs'
local lrview = import 'lrview'
local f = lrview.osfactory()

local text = f:static_text {}

local function validate (view, value)
    text.title = "validate called " .. view.label
    return true, value, nil
    end

lrdialogs.presentmodaldialog {
    title = "test", contents = f:column {
        text,
        f:row {
            f:static_text {title = "numeric:"},
            f:edit_field {min = 1, max = 10, precision = 0}},
        f:row {
            f:static_text {title = "numeric:"},
            f:combo_box {min = 1, max = 10, precision = 0,
                items = {1, 2, 3}}},
        f:row {
            f:static_text {title = "validate:"},
            f:edit_field {validate = validate,
                label = "edit_field"}},
        f:row {
            f:static_text {title = "validate:"},
            f:combo_box {validate = validate,
                label = "combo_box", items = {1, 2, 3}}}}}

i've reported via web form.



More discussions in Lightroom SDK


adobe

Comments

Popular posts from this blog

localhost/joomla15/administrator doesnt work - Joomla! Forum - community, help and support

Using Arduino Uno R3 to bootload the atmega328-PU (non pico)

cf_sql_integer vs cf_sql_bigint vs cf_sql_int??