Two column dialog

Is it possible to have a two vertical column dialog with Shane’s Dialog Toolkit Plus?

Cheers

Yes, you just have to set the coordinates accordingly, so they don’t overlap.

Awesome thanks Shane couldn’t work out the syntax but the extra motivation of knowing it was possible was enough to work it out.

Would you mind sharing your solution?

Here is a fragment from one of my scripts:

set theTopCol2 to theTop
-- "Album will have name of form Bach: Cello Suite No. 4: Rostropovich 1995"
set {albumFieldLabel, theTop} to create label albumFieldLabel bottom theTop + sectionSpaceDepth left inset 0 max width exampleAlign aligns right aligned control size small size without multiline
set {albumExampleLabel, theTop} to create label albumExampleLabel bottom theTopCol2 + sectionSpaceDepth left inset exampleAlign max width accViewWidth - exampleAlign aligns left aligned control size small size without multiline

Here is an example of how I created a two column view. Probably not the best solution but it seems to work.

use scripting additions
use script "Dialog Toolkit Plus" version "1.1.0"

set accViewWidth to 650
set {theButtons, minWidth} to create buttons {"Cancel", "OK"} button keys {"", "2", "1", ""} default button 1 cancel button 2
if minWidth > accViewWidth then set accViewWidth to minWidth -- make sure buttons fit
set {rightField, theTop} to create field "" placeholder text "Enter your right text here" bottom 0 field width accViewWidth / 2 extra height 60 left inset accViewWidth / 2 + 10 with accepts linebreak and tab
set {leftField, theTop} to create field "" placeholder text "Enter your left text here" bottom 0 field width accViewWidth / 2 extra height 60 with accepts linebreak and tab
set {boldLabel, theTop} to create label "Here is the top bold label" bottom theTop + 20 max width accViewWidth control size regular size
set {buttonName, controlsResults} to display enhanced window "Two-column" acc view width accViewWidth + 10 acc view height theTop acc view controls {leftField, rightField, boldLabel} buttons theButtons active field leftField initial position {0, 0} with align cancel button