Feature request: option to not have an action button in the dialog box

As is, the dialog box requires you to have an "OK" button and a "Cancel" button (the name can be changed...) - which will remove the dialog box. Buttons more than that and you must define an incidental view or place in points of view buttons - what is very good, except when a dialog box serves more as a framework, in which case it would be better if only one button dismissed the dialog box (for example "made").

Rob

Here's a way without papers to create a dialogue with just one 'fact' button.  Not sure you want to rely on this good:.

local LrDialogs = import "LrDialogs".
local LrFunctionContext = import "LrFunctionContext".
local LrTasks = import "LrTasks".
local LrView = import "LrView".

function search local button (x, label, visited)
If visited == nil then went = {} end

If type (x) ~ = 'table' or visited [x] then return nil end
visited [x] = true
   
If x._WinClassName == 'AgViewWinPushButton' and

x.title == tag can
Return x;
end
       
for k, v in pairs (x) is
local result = button Search (v, label, visited)
If the result then end result
end
   
Return to zero
end
   
local f = LrView.osFactory)

local command = {f: column}
f: static_text {title = "Look Ma! Not OK or cancel. »},
f: edit_field {value = "fields"},
{f: push_button {title = "Do It"}}

LrTasks.startAsyncTask (function)
While true
local okButton = button Search (controls, 'OK')
If okButton then
okButton.enabled = false
okButton.visible = false
return
end
LrTasks.sleep (0.1)
end
end)

{LrDialogs.presentModalDialog}
{title = 'Test', content = speed control, cancelVerb = "Done"}

Tags: Photoshop Lightroom

Similar Questions

Maybe you are looking for

  • Lenovo Z570 - how to disable automatic brightness adjustment?

    It's driving me absolutely crazy! This only happens when I run the laptop out of the battery. And when I go to a website with a dark background, the display automatically dims down. Then when I'm on a brighter site, then screen lights back up again.

  • The actual voltage of a physical channel of a DAQmx device display

    Hello! Quick question: is there a way to read the voltage of a physical channel of a DAQmx device, when there is no task that is running? I want this information after that I ran several tasks. It is important to know the real tension before you star

  • digital analog in a queue

    I want to create a queue for analog and digital data. The attached vi has two. How would you do different data type 2 feed to a queue? Should a digital waveform and an analog wave form to enter data in a queue. Any ideas? I use cDAQ-9172 and NI 9401

  • The collection of accurate data of visa format read

    Hello I'm new in labview. I do a labview software to control and collect data for the ASL F900 Thermo Bridge. But I don't know how to get the correct visa read data format. Example: The Correct data format is: +0.123456789E\r\n (15 bytes) but sometim

  • SEE SLIDE SHOW DOES NOT

    The 'View as slideshow' feature no longer works.  A picture back but does not go to the next image. He's not going to the next image, even when I click on the arrow to the front foot.  When I click on the down arrow I get error "drawing failed".  Rec